Skip to content

Commit

Permalink
add skip report threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
ggabernet committed Jul 29, 2023
1 parent 9828750 commit f738e5b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ params {
singlecell = 'single_cell'
clonal_threshold = 'auto'
skip_all_clones_report = false
skip_report_threshold = false

// tree lineage options
igphyml="/usr/local/bin/igphyml"
Expand Down
5 changes: 5 additions & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,11 @@
"type": "boolean",
"description": "Skip report of EnchantR DefineClones for all samples together.",
"fa_icon": "fas fa-angle-double-right"
},
"skip_report_threshold": {
"type": "boolean",
"description": "Skip report of EnchantR FindThreshold for all samples together.",
"fa_icon": "fas fa-angle-double-right"
}
},
"help_text": "By default, the pipeline will define clones for each of the samples, as two sequences having the same V-gene assignment, C-gene assignment, J-gene assignment, and junction length. Additionally, the similarity of the CDR3 sequences will be assessed by Hamming distances. \n\nA distance threshold for determining if two sequences come from the same clone or not is automatically determined by the process find threshold. Alternatively, a hamming distance threshold can be manually set by setting the `--clonal_threshold` parameter.",
Expand Down
15 changes: 8 additions & 7 deletions subworkflows/local/clonal_analysis.nf
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@ workflow CLONAL_ANALYSIS {
.dump(tag: 'ch_find_threshold_samplesheet')
.collectFile(name: 'find_threshold_samplesheet.txt', newLine: true)

REPORT_THRESHOLD (
ch_find_threshold,
ch_logo,
ch_find_threshold_samplesheet
)
ch_versions = ch_versions.mix(REPORT_THRESHOLD.out.versions)

if !(params.skip_report_threshold){
REPORT_THRESHOLD (
ch_find_threshold,
ch_logo,
ch_find_threshold_samplesheet
)
ch_versions = ch_versions.mix(REPORT_THRESHOLD.out.versions)
}
}

// prepare ch for define clones
Expand Down

0 comments on commit f738e5b

Please sign in to comment.