Skip to content

Commit 4694cef

Browse files
committed
fix kallisto issue in main workflow
1 parent f9bd6d4 commit 4694cef

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nanoporeModule.nf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,14 @@ workflow modWorkflow {
264264
bamFiles = doradoTask(pod5FilesChannel, modelPath, modelDirectory, theModel).collectFile()
265265
fileCount = bamFiles.map { it.size() }.first()
266266
unmappedbam = mergeBamsTask(fileCount)
267+
268+
if (params.readType == 'RNA' || params.readType == 'CDNA') {
269+
// Run extractFastq
270+
fastqFile = extractfastqTask(unmappedbam)
271+
// Run kallistoTask using the extracted FASTQ file
272+
kallistoResults = kallistoTask(fastqFile)
273+
}
274+
267275
def genomeAnnotChannel = Channel.fromList(params.genome_annot_refs)
268276
unmappedBams = unmappedbam.combine(genomeAnnotChannel).map { bam, ref ->
269277
tuple(bam, ref.genome, ref.annot, ref.name)
@@ -293,6 +301,7 @@ workflow modWorkflow {
293301
generateReport(launchDir, splitResults)
294302
}
295303
}
304+
296305
workflow remapWorkflow {
297306
take:
298307
theVersion

0 commit comments

Comments
 (0)