Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update samshee #275

Merged
merged 12 commits into from
Oct 22, 2024
Merged
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" : "" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can put all that in a ext.args and not ressort to creating non standard ext

Copy link
Contributor Author

@nschcolnicov nschcolnicov Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree, this is still a draft

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for checking in on a draft, just working on a PR on this repo too, and I saw this one appeared and was curious

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha no worries! 😄 .Don't want you to waste your time reviewing something that might change regardless, but any help is always appreciated!

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
Loading