Skip to content

Commit

Permalink
added aligner check in main.nf
Browse files Browse the repository at this point in the history
  • Loading branch information
Furentsu committed Oct 29, 2024
1 parent 5cbc66a commit b6f0f12
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions workflows/sarek/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ workflow SAREK {
reads_for_fastp = input_fastq
}

params.aligner = 'parabricks' ? params.split_fastq = 0 : params.split_fastq

// Trimming and/or splitting
if (params.trim_fastq || params.split_fastq > 0) {

Expand All @@ -257,12 +259,6 @@ workflow SAREK {
reports = reports.mix(FASTP.out.json.collect{ meta, json -> json })
reports = reports.mix(FASTP.out.html.collect{ meta, html -> html })

if (params.aligner = 'parabricks') {

params.split_fastq = 0

}

if (params.split_fastq) {
reads_for_alignment = FASTP.out.reads.map{ meta, reads ->
read_files = reads.sort(false) { a,b -> a.getName().tokenize('.')[0] <=> b.getName().tokenize('.')[0] }.collate(2)
Expand Down

0 comments on commit b6f0f12

Please sign in to comment.