Skip to content

Commit

Permalink
add stranded option for bambu in param
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Le Bars committed Jan 10, 2024
1 parent 0073721 commit 33755d9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/run_bambu.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ genomeseq <- strsplit(grep('--fasta*', args, value = TRUE), split = '=')[[1
genomeSequence <- Rsamtools::FaFile(genomeseq)
Rsamtools::indexFa(genomeseq)
annot_gtf <- strsplit(grep('--annotation*', args, value = TRUE), split = '=')[[1]][[2]]
readlist <- args[5:length(args)]
bambu_strand <- strsplit(grep('--bambu_strand*', args, value = TRUE), split = '=')[[1]][[2]]
if (bambu_strand=="true"){
bambu_strand=TRUE
} else {
bambu_strand=FALSE
}
readlist <- args[6:length(args)]

print("BAMs:")
readlist
Expand All @@ -30,6 +36,7 @@ se <- bambu(
ncore = ncore,
verbose = TRUE,
NDR = 1,
stranded = bambu_strand,
opt.discovery = list(min.txScore.singleExon = 0)
)

Expand Down
1 change: 1 addition & 0 deletions modules/bambu/bambu.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ process BAMBU {
--ncore=${params.maxCpu} \
--annotation=${ref} \
--fasta=${fa} \
--bambu_strand=${params.bambu_strand} \
*.bam
sed -i 's/*/./g' extended_annotations.gtf
Expand Down
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ params {
operation = "intersection"
tfkmers_model = null
tfkmers_tokenizer = null
bambu_strand = true
}

process {
Expand Down

0 comments on commit 33755d9

Please sign in to comment.