Skip to content

Commit

Permalink
switch to cleaner file and variable names, remove fastqscreen .csv as…
Browse files Browse the repository at this point in the history
… main workflow input
  • Loading branch information
kedhammar committed Dec 5, 2024
1 parent 5aeb8d1 commit a31a392
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 16 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/nf-core/seqinspector/master/assets/schema_database.json",
"title": "nf-core/seqinspector pipeline - params.fastqscreen_databasesheet schema",
"description": "Schema for the file provided with params.fastq_screen_databasesheet",
"$id": "https://raw.githubusercontent.com/nf-core/seqinspector/master/assets/schema_fastq_screen_references.json",
"title": "nf-core/seqinspector pipeline - params.fastq_screen_references schema",
"description": "Schema for the file provided with params.fastq_screen_references",
"type": "array",
"items": {
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ params {
// TODO nf-core: Specify the paths to your test data on nf-core/test-datasets
// TODO nf-core: Give any required params for the test so that command line flags are not needed
input = params.pipelines_testdata_base_path + 'seqinspector/testdata/NovaSeq6000/samplesheet.csv'
fastqscreen_database_sheet = "${projectDir}/assets/databasesheet.csv"
fastq_screen_references = "${projectDir}/assets/example_fastq_screen_references.csv"

// Genome references
genome = 'R64-1-1'
Expand Down
7 changes: 2 additions & 5 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,14 @@ workflow NFCORE_SEQINSPECTOR {

take:
samplesheet // channel: samplesheet read in from --input
database_sheet

main:

//
// WORKFLOW: Run pipeline
//
SEQINSPECTOR (
samplesheet,
database_sheet,
samplesheet
)
emit:
global_report = SEQINSPECTOR.out.global_report // channel: /path/to/multiqc_report.html
Expand Down Expand Up @@ -85,8 +83,7 @@ workflow {
// WORKFLOW: Run main workflow
//
NFCORE_SEQINSPECTOR (
PIPELINE_INITIALISATION.out.samplesheet,
params.fastqscreen_database_sheet,
PIPELINE_INITIALISATION.out.samplesheet
)
//
// SUBWORKFLOW: Run completion tasks
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ params {
igenomes_ignore = false

// Fastqscreen options
fastqscreen_database_sheet = './assets/databasesheet.csv'
fastq_screen_references = './assets/example_fastq_screen_references.csv'

// MultiQC options
multiqc_config = null
Expand Down
6 changes: 3 additions & 3 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@
"hidden": true,
"default": "s3://ngi-igenomes/igenomes/"
},
"fastqscreen_database_sheet": {
"fastq_screen_references": {
"type": "string",
"default": "./assets/databasesheet.csv",
"default": "./assets/example_fastq_screen_references.csv",
"fa_icon": "fas fa-search",
"description": "list of reference genomes (databases) to be mapped against in fastqscreen"
"description": "A .csv of reference genomes to be mapped against by FastQ Screen"
}
}
},
Expand Down
6 changes: 3 additions & 3 deletions workflows/seqinspector.nf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ workflow SEQINSPECTOR {

take:
ch_samplesheet // channel: samplesheet read in from --input
ch_fastqscreen_databasesheet // channel: database sheet read in from --fastqscreen_database_sheet

main:

Expand Down Expand Up @@ -80,10 +79,11 @@ workflow SEQINSPECTOR {

// Parse the reference info needed to create a FastQ Screen config file
// and transpose it into a tuple containing lists for each property

ch_fastqscreen_refs = Channel
.fromList(samplesheetToList(
"${projectDir}/assets/databasesheet.csv",
"${projectDir}/assets/schema_database.json"
"${projectDir}/assets/example_fastq_screen_references.csv",
"${projectDir}/assets/schema_fastq_screen_references.json"
))
.toList()
.transpose()
Expand Down

0 comments on commit a31a392

Please sign in to comment.