Skip to content

Commit

Permalink
Expose low depth cutoff parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
veghp committed Aug 22, 2023
1 parent cbd1fc4 commit b7b972f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bin/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
params_projectname = sys.argv[2]
pdf_file = sys.argv[3]
results_csv_file = sys.argv[4]
low_depth_value = sys.argv[5]

import pandas as pd
from Bio import SeqIO
Expand Down Expand Up @@ -75,7 +76,8 @@


# Create PDF report
sequencinggroup = edi.SequencingGroup(comparatorgroups, name=params_projectname)
sequencinggroup = edi.SequencingGroup(comparatorgroups, name=params_projectname,
low_depth_cutoff=low_depth_value)
sequencinggroup.perform_all_comparisons_in_sequencinggroup()
edi.write_sequencinggroup_report(target=pdf_file, sequencinggroup=sequencinggroup)

Expand Down
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ params {
quality_cutoff = 10 // For NanoFilt
min_length = 500 // nucleotides
freebayes.args = '--ploidy 1 --min-alternate-fraction 0.1 --min-alternate-count 2 --min-base-quality 20'
low_depth_value = 30 // cutoff for low-depth samples


// Review pipeline
Expand Down
2 changes: 1 addition & 1 deletion nextflow/sequeduct_analysis.nf
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ process runEdiacara {
pdf_file = "Ediacara_report.pdf"
results_csv_file = "results.csv"
"""
analysis.py $samplesheet_csv "$params.projectname" $pdf_file $results_csv_file
analysis.py $samplesheet_csv "$params.projectname" $pdf_file $results_csv_file $params.low_depth_value
"""
}

Expand Down

0 comments on commit b7b972f

Please sign in to comment.