Skip to content

Commit

Permalink
add sample plan
Browse files Browse the repository at this point in the history
  • Loading branch information
David Feldman committed Feb 5, 2024
1 parent b28e7e2 commit 5062a54
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ examples/paired_reads/*
!examples/paired_reads/config.yaml
!examples/paired_reads/reference_dna.csv
!examples/paired_reads/samples.csv
!examples/paired_reads/sample_plan.csv
!examples/paired_reads/planned_dna.csv
!examples/paired_reads/pattern*.png
!examples/paired_reads/paired_read_example.ipynb
Expand Down
6 changes: 6 additions & 0 deletions examples/paired_reads/sample_plan.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sample,source,coverage
sample_A,pool1,50
sample_B,pool2,50
sample_C,pool1,50
sample_C,pool2,20
sample_D,pool3,50
3 changes: 3 additions & 0 deletions src/ngs_analysis/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def dna_to_designs():
"""
df_reference = load_reference_dna()
config = load_config()
config['left_adapter'] = config.get('left_adapter_reference', config['left_adapter'])
config['right_adapter'] = config.get('right_adapter_reference', config['right_adapter'])

parsed = (parse_sequences(config, df_reference['reference_dna'])
.drop('read_index', axis=1))
m, n = len(parsed), len(df_reference)
Expand Down

0 comments on commit 5062a54

Please sign in to comment.