Skip to content

Commit

Permalink
PR comments on module
Browse files Browse the repository at this point in the history
  • Loading branch information
nschcolnicov committed Oct 15, 2024
1 parent 6e615b9 commit 9b33143
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 23 deletions.
3 changes: 3 additions & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ process {
}

withName: SAMSHEE {
ext.json_schema_validator = { params.json_schema_validator ? "--schema '${params.json_schema_validator}'" : "" }
ext.name_schema_validator = { params.name_schema_validator ? "--schema '${params.name_schema_validator}'" : "" }
ext.v1 = { params.v1_schema ? "--output-format sectioned" : "" }
errorStrategy = "terminate"
publishDir = [
path: { "${params.outdir}/" },
Expand Down
2 changes: 1 addition & 1 deletion conf/test_full.config
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ params {
// Input data
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/demultiplex/samplesheet/1.3.0/samplesheet_full.csv'
demultiplexer = 'bcl2fastq'
skip_tools = 'samshee'
v1_schema = true
}
20 changes: 9 additions & 11 deletions modules/nf-core/samshee/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions modules/nf-core/samshee/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions workflows/demultiplex.nf
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ workflow DEMULTIPLEX {
ch_multiqc_files = Channel.empty()
ch_multiqc_reports = Channel.empty()
checkqc_config = params.checkqc_config ? Channel.fromPath(params.checkqc_config, checkIfExists: true) : [] // file checkqc_config.yaml
ch_json_schema_validator = params.json_schema_validator ? Channel.value(params.json_schema_validator) : [] // string schema in json format
ch_name_schema_validator = params.name_schema_validator ? Channel.value(params.name_schema_validator) : [] // string schema name
ch_file_schema_validator = params.file_schema_validator ? Channel.fromPath(params.file_schema_validator, checkIfExists: true) : [] // file schema.json

// Remove adapter from Illumina samplesheet to avoid adapter trimming in demultiplexer tools
Expand Down Expand Up @@ -94,8 +92,6 @@ workflow DEMULTIPLEX {
if (!("samshee" in skip_tools) && (params.demultiplexer in ["bcl2fastq", "bclconvert", "mkfastq"])){
SAMSHEE (
ch_samplesheet.map{ meta, samplesheet, flowcell, lane -> [meta,samplesheet] },
ch_json_schema_validator,
ch_name_schema_validator,
ch_file_schema_validator
)
ch_versions = ch_versions.mix(SAMSHEE.out.versions)
Expand Down

0 comments on commit 9b33143

Please sign in to comment.