Skip to content

Commit

Permalink
feat: Getting close to making the config on the head node
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Nov 14, 2024
1 parent b8c363c commit d021ed0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 34 deletions.
20 changes: 9 additions & 11 deletions modules/nf-core/fastqscreen/fastqscreen/main.nf

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

37 changes: 14 additions & 23 deletions workflows/seqinspector.nf
Original file line number Diff line number Diff line change
Expand Up @@ -79,33 +79,24 @@ workflow SEQINSPECTOR {
//
ch_databases = Channel
.fromList(samplesheetToList(ch_fastqscreen_databasesheet, "${projectDir}/assets/schema_database.json"))

FASTQSCREEN_FASTQSCREEN (
ch_samplesheet.combine(ch_databases)
)
// Group by sample
FASTQSCREEN_FASTQSCREEN.out.txt
.groupTuple(by: [0])
ch_fastqscreen_config = ch_databases
.collectFile(
keepHeader: true,
skip: 1,
newLine: false,
newLine: true,
name: 'fastq_screen.conf',
storeDir: "${params.outdir}/fastqscreen/",
)
{ meta, file ->
filename = "${meta.id}_screen.txt"
[filename, file.text]
}
// TODO Add % Not hit
.map { path ->
meta = [
id:path.getSimpleName(),
]
[meta, file(path)]
}
.set { ch_fastqscreen_clean }
{
meta, db ->
"DATABASE ${meta.database_name} ./${db}/genome ${meta.database_notes}"
}
ch_database_files = ch_databases.collect { meta, db -> db}

ch_multiqc_files = ch_multiqc_files.mix(ch_fastqscreen_clean)
FASTQSCREEN_FASTQSCREEN (
ch_samplesheet,
ch_fastqscreen_config,
ch_database_files,
)
ch_multiqc_files = ch_multiqc_files.mix(FASTQSCREEN_FASTQSCREEN.out.txt)
ch_versions = ch_versions.mix(FASTQSCREEN_FASTQSCREEN.out.versions.first())

//
Expand Down

0 comments on commit d021ed0

Please sign in to comment.