Skip to content

Commit

Permalink
Tidy up new bits of fastq_align_star (nf-core#4939)
Browse files Browse the repository at this point in the history
* Tidy up new bits of fastq_align_star

* Fix snapshot
  • Loading branch information
pinin4fjords authored Feb 19, 2024
1 parent 85b12bc commit 4cef5bd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions subworkflows/nf-core/fastq_align_star/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ workflow FASTQ_ALIGN_STAR {
val_seq_platform // string : sequencing platform
val_seq_center // string : sequencing center
ch_fasta // channel: [ val(meta), path(fasta) ]
ch_transcripts_fasta // channel: [ path(fasta) ]
ch_transcripts_fasta // channel: [ val(meta), path(fasta) ]

main:

Expand All @@ -38,7 +38,7 @@ workflow FASTQ_ALIGN_STAR {
// STAR_ALIGN.out.bam_transcript is populated
//

BAM_SORT_STATS_SAMTOOLS_TRANSCRIPTOME ( STAR_ALIGN.out.bam_transcript, ch_transcripts_fasta.map{[[:], it]} )
BAM_SORT_STATS_SAMTOOLS_TRANSCRIPTOME ( STAR_ALIGN.out.bam_transcript, ch_transcripts_fasta )

emit:

Expand Down
16 changes: 8 additions & 8 deletions subworkflows/nf-core/fastq_align_star/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ nextflow_workflow {
"""
}
}
}
}

test("homo_sapiens - fastq - single_end") {
config "./nextflow.config"
config "./nextflow.config"
when {
workflow {
"""
Expand All @@ -51,7 +51,7 @@ nextflow_workflow {
[ id:'test_fasta' ], // meta map
[ file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkIfExists: true) ]
])
input[7] = Channel.of([])
input[7] = Channel.of([[:], []])
"""
}
}
Expand Down Expand Up @@ -106,7 +106,7 @@ nextflow_workflow {
[ id:'test_fasta' ], // meta map
[ file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkIfExists: true) ]
])
input[7] = Channel.of([])
input[7] = Channel.of([[:], []])
"""
}
}
Expand Down Expand Up @@ -145,7 +145,7 @@ nextflow_workflow {
script "../../../../modules/nf-core/rsem/preparereference/main.nf"
process {
"""
input[0] = channel.of(file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkifexists: true))
input[0] = channel.of(file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkifexists: true))
input[1] = channel.of(file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.gtf', checkifexists: true))
"""
}
Expand Down Expand Up @@ -173,7 +173,7 @@ nextflow_workflow {
[ id:'test_fasta' ], // meta map
[ file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkIfExists: true) ]
])
input[7] = Channel.of([])
input[7] = RSEM_PREPAREREFERENCE.out.transcript_fasta.map{[[:], it]}
"""
}
}
Expand Down Expand Up @@ -203,7 +203,7 @@ nextflow_workflow {
)
}
}

test("homo_sapiens - fastq - paired_end - transcripts - no_transcriptome") {
config "./with_transcripts.config"

Expand All @@ -229,7 +229,7 @@ nextflow_workflow {
[ id:'test_fasta' ], // meta map
[ file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkIfExists: true) ]
])
input[7] = Channel.of([])
input[7] = Channel.of([[:], []])
"""
}
}
Expand Down
4 changes: 2 additions & 2 deletions subworkflows/nf-core/fastq_align_star/tests/main.nf.test.snap

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

0 comments on commit 4cef5bd

Please sign in to comment.