Skip to content

Commit

Permalink
fix issues template update
Browse files Browse the repository at this point in the history
  • Loading branch information
ggabernet committed Oct 14, 2024
1 parent 1461dd3 commit 8fd8a04
Show file tree
Hide file tree
Showing 21 changed files with 26 additions and 104 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- [#344](https://github.com/nf-core/airrflow/pull/344) Added option to remove V and C primer region when sequence is unknown.
- [#344](https://github.com/nf-core/airrflow/pull/344) Added option to save non-productive sequences
- [#344](https://github.com/nf-core/airrflow/pull/344) Allow for maskprimers align with UMI on both V gene and C gene primers.
- [#344](https://github.com/nf-core/airrflow/pull/344) Update pipeline template to nf-core tools v3.0.2.

### `Fixed`

Expand Down
20 changes: 20 additions & 0 deletions assets/schema_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,26 @@
"type": "boolean",
"pattern": "^\\S+$",
"errorMessage": "Single cell must be provided as a TRUE/FALSE value."
},
"filename_R1": {
"type": "string",
"pattern": "^\\S+$",
"errorMessage": "Filename for R1 cannot contain spaces."
},
"filename_R2": {
"type": "string",
"pattern": "^\\S+$",
"errorMessage": "Filename for R2 cannot contain spaces."
},
"filename_I1": {
"type": "string",
"pattern": "^\\S+$",
"errorMessage": "Filename for I1 cannot contain spaces."
},
"filename": {
"type": "string",
"pattern": "^\\S+$",
"errorMessage": "Filename cannot contain spaces."
}
},
"required": [
Expand Down
2 changes: 0 additions & 2 deletions assets/tutorial/airrflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ nextflow run nf-core/airrflow -r 4.1.0 \
--input samplesheet.tsv \
--outdir results \
-w work \
--max_cpus 12 \
--max_memory 12.GB \
--skip_multiqc
6 changes: 3 additions & 3 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ process {
maxRetries = 2
}
withLabel:process_long_parallelized {
time = { 30.h * task.attempt, 'time' }
cpus = { 16 * task.attempt, 'cpus' }
memory = { 72.GB * task.attempt, 'memory'}
time = { 30.h * task.attempt }
cpus = { 16 * task.attempt }
memory = { 72.GB * task.attempt }
}
}
5 changes: 0 additions & 5 deletions conf/test_10x_sc.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ params {
config_profile_name = 'Test 10xGenomics single cell data'
config_profile_description = 'Minimal test dataset to check pipeline function with raw single cell data from 10xGenomics'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = 6.GB
max_time = 48.h

// params
mode = 'fastq'
library_generation_method = 'sc_10x_genomics'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_assembled_hs.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ params {
config_profile_name = 'Test assembled mode'
config_profile_description = 'Minimal test dataset to test assembled mode'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = 6.GB
max_time = 6.h

// Input data
mode = 'assembled'
input = pipelines_testdata_base_path + 'testdata-reveal/test_assembled_metadata_hs.tsv'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_assembled_immcantation_devel_hs.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ params {
config_profile_name = 'Test assembled mode with Immcantation custom_container'
config_profile_description = 'Minimal human test dataset to check pipeline function on assembled mode with Immcantation custom_container'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = 6.GB
max_time = 6.h

// Input data
mode = 'assembled'
input = pipelines_testdata_base_path + 'testdata-reveal/test_assembled_metadata_hs.tsv'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_assembled_immcantation_devel_mm.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ params {
config_profile_name = 'Test assembled mode with Immcantation custom_container'
config_profile_description = 'Minimal mouse test dataset to check pipeline function on assembled mode with Immcantation custom_container'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = 6.GB
max_time = 6.h

// Input data
mode = 'assembled'
input = pipelines_testdata_base_path + 'testdata-reveal/test_assembled_metadata_mm.tsv'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_assembled_mm.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ params {
config_profile_name = 'Test assembled mode'
config_profile_description = 'Minimal mouse test dataset to test assembled mode'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = 6.GB
max_time = 6.h

// Input data
mode = 'assembled'
input = pipelines_testdata_base_path + 'testdata-reveal/test_assembled_metadata_mm.tsv'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_clontech_umi.config
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ params {
config_profile_name = 'Test profile for TAKARA protocol'
config_profile_description = 'Minimal test dataset to check pipeline function'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = '6.GB'
max_time = '6.h'

// Input data
input = pipelines_testdata_base_path +'testdata-clontech/samplesheet.tsv'

Expand Down
5 changes: 0 additions & 5 deletions conf/test_fetchimgt.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ params {
config_profile_name = 'Test IMGTdb fetch'
config_profile_description = 'Test pipeline when fetching the latest version of the IMGT references.'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = '6.GB'
max_time = '6.h'

// Input data
input = pipelines_testdata_base_path + 'testdata-bcr/Metadata_test_airr.tsv'
cprimers = pipelines_testdata_base_path + 'testdata-bcr/C_primers.fasta'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_maskprimers_align.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ params {
config_profile_name = 'Test profile'
config_profile_description = 'Minimal test dataset to check pipeline function'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = '6.GB'
max_time = '6.h'

// Input data
input = pipelines_testdata_base_path + 'testdata-bcr/Metadata_test_airr.tsv'
cprimers = pipelines_testdata_base_path + 'testdata-bcr/C_primers.fasta'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_maskprimers_extract.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ params {
config_profile_name = 'Test extract primers profile'
config_profile_description = 'Minimal test dataset to check pipeline function'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = '6.GB'
max_time = '6.h'

// Input data
input = pipelines_testdata_base_path + 'testdata-bcr/Metadata_test_airr.tsv'
reference_fasta = pipelines_testdata_base_path + 'database-cache/imgtdb_base.zip'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_nebnext_umi.config
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ params {
config_profile_name = 'Test profile for NEBNext protocol'
config_profile_description = 'Minimal test dataset to check pipeline function'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = '6.GB'
max_time = '6.h'

// Input data
input = pipelines_testdata_base_path + 'testdata-neb/samplesheet.tsv'

Expand Down
5 changes: 0 additions & 5 deletions conf/test_no_umi.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ params {
config_profile_name = 'Test profile without UMIs'
config_profile_description = 'Test dataset without UMIs to check pipeline function.'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = 6.GB
max_time = 6.h

mode = 'fastq'

cprimer_position = 'R1'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_nocluster.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ params {
config_profile_name = 'Test profile no cluster sets'
config_profile_description = 'Test pipeline without the cluster sets process'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = '6.GB'
max_time = '6.h'

// Input data
input = pipelines_testdata_base_path + 'testdata-bcr/Metadata_test_airr.tsv'
cprimers = pipelines_testdata_base_path + 'testdata-bcr/C_primers.fasta'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_raw_immcantation_devel.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ params {
config_profile_name = 'Test immcantation raw profile'
config_profile_description = 'Minimal test dataset to check pipeline function with the immcantation container'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = '6.GB'
max_time = '6.h'

// Input data
input = pipelines_testdata_base_path + 'testdata-bcr/Metadata_test_airr.tsv'
cprimers = pipelines_testdata_base_path + 'testdata-bcr/C_primers.fasta'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_rnaseq_bulk.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ params {
config_profile_name = 'Test bulk RNA-seq based workflow using TRUST4'
config_profile_description = 'Minimal test dataset to check pipeline function with raw bulk RNA-seq data'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = 6.GB
max_time = 48.h

// params
mode = 'fastq'
library_generation_method = 'trust4'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_rnaseq_sc.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ params {
config_profile_name = 'Test single-cell RNA-seq based workflow using TRUST4'
config_profile_description = 'Minimal test dataset to check pipeline function with raw single-cell RNA-seq data'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = 6.GB
max_time = 48.h

// params
mode = 'fastq'
library_generation_method = 'trust4'
Expand Down
5 changes: 0 additions & 5 deletions conf/test_tcr.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ params {
config_profile_name = 'Test TCR'
config_profile_description = 'Minimal test dataset to check pipeline function with TCR data'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = 6.GB
max_time = 48.h

// params
mode = 'fastq'
umi_length = 12
Expand Down
21 changes: 2 additions & 19 deletions subworkflows/local/utils_nfcore_airrflow_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -71,26 +71,9 @@ workflow PIPELINE_INITIALISATION {
//
// Create channel from input file provided through params.input
//
Channel.fromList(samplesheetToList(input, "${projectDir}/assets/schema_input.json"))

Channel
.fromList(samplesheetToList(params.input, "${projectDir}/assets/schema_input.json"))
.map {
meta, fastq_1, fastq_2 ->
if (!fastq_2) {
return [ meta.id, meta + [ single_end:true ], [ fastq_1 ] ]
} else {
return [ meta.id, meta + [ single_end:false ], [ fastq_1, fastq_2 ] ]
}
}
.groupTuple()
.map { samplesheet ->
validateInputSamplesheet(samplesheet)
}
.map {
meta, fastqs ->
return [ meta, fastqs.flatten() ]
}
.set { ch_samplesheet }
Channel.fromPath(input).set{ch_samplesheet}

emit:
samplesheet = ch_samplesheet
Expand Down

0 comments on commit 8fd8a04

Please sign in to comment.