Skip to content

Commit

Permalink
Merge pull request #9 from IGDRion/dev
Browse files Browse the repository at this point in the history
add stranded option for bambu in param
  • Loading branch information
vlebars authored Jan 10, 2024
2 parents 96dc659 + 33755d9 commit a6d83e1
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 a6d83e1

Please sign in to comment.