Marton Horvath
02/27/2026, 12:36 PMJonathan Manning
02/27/2026, 1:50 PMChimeric.out.junction file is only produced by STAR when chimeric detection is enabled via specific args (like --chimOutType Junctions). The pipeline doesn't pass those by default, so the file won't exist in the working directory to publish.
You need two things in a custom config, and neither requires modifying the pipeline source:
1. Tell STAR to produce the file using the extra_star_align_args param:
params {
extra_star_align_args = '--chimOutType Junctions --chimSegmentMin 10'
}
(Adjust the chimeric args to your needs - --chimSegmentMin is required to activate chimeric detection.)
2. Tell Nextflow to publish it by extending the existing publishDir. This will depend on what version you have, but for example, for latest dev:
process {
withName: '.*ALIGN_STAR:STAR_ALIGN' {
publishDir = [
[
path: { "${params.outdir}/${params.aligner}/log" },
mode: params.publish_dir_mode,
pattern: '*.{out,tab}'
],
[
path: { "${params.outdir}/${params.aligner}/chimeric" },
mode: params.publish_dir_mode,
pattern: '*.out.junction'
],
[
path: { params.save_align_intermeds ? "${params.outdir}/${params.aligner}" : params.outdir },
mode: params.publish_dir_mode,
pattern: '*.bam',
saveAs: { filename -> params.save_align_intermeds ? filename : null }
],
[
path: { params.save_unaligned ? "${params.outdir}/${params.aligner}/unmapped" : params.outdir },
mode: params.publish_dir_mode,
pattern: '*.fastq.gz',
saveAs: { filename -> params.save_unaligned ? filename : null }
]
]
}
}
Note that publishDir is set as a whole (not appended), so you need to repeat the existing entries from the pipeline to avoid losing the log/bam/fastq publishing. The block above is a copy of the pipeline's existing config with the *.out.junction entry added.
Save this as e.g. custom.config and pass it with -c custom.config.
If you're actually after the splice junction file (SJ.out.tab) rather than the chimeric junction file, that's already published by default to <outdir>/<aligner>/log/ in the current dev.Marton Horvath
02/27/2026, 2:13 PMmodule load bioinfo-tools Nextflow/latest nf-core-pipelines/latest
export NXF_HOME="/proj/..."
nextflow run $NF_CORE_PIPELINES/rnaseq/3.22.2/workflow -resume \
--input samplesheet.csv \
--outdir results \
-profile uppmax \
--project '...' \
--fasta refs/ctat/ref_genome.fa \
--gtf refs/ctat/ref_annot.gtf \
--gff refs/ctat/ref_annot.gff \
--bed refs/ctat/ref_annot.bed \
--transcript_fasta refs/ctat/ref_annot.cdna.fa \
--star_index refs/ctat/ref_genome.fa.star.idx \
--salmon_index refs/ctat/ref_genome.fa.salmon.idx \
--gencode \
--trimmer trimgalore \
--extra_trimgalore_args "-q 20 --length 36 --illumina" \
--skip_bbsplit \
--skip_umi_extract \
--aligner star_salmon \
--speudo_aligner salmon \
--star_ignore_sjdbgtf \
--extra_star_align_args "--twopassMode Basic --chimOutType Junctions --chimSegmentMin 12 --chimJunctionOverhangMin 8 --chimOutJunctionFormat 1 --outSAMtype BAM SortedByCoordinate --outBAMcompression 6 --outSAMstrandField intronMotif --outSAMunmapped Within --outReadsUnmapped None --outFilterScoreMinOverLread 0 --outFilterMatchNminOverLread 0 --outFilterMatchNmin 0 --outFilterMismatchNmax 2 --alignIntronMin 10 --alignIntronMax 100000 --alignMatesGapMax 100000" \
--salmon_quant_libtype 'ISR' \
--skip_bigwig \
--skip_stringtie
I have also noticed that SJ.out file in the log output folder. My idea initially was to run the rnavar, rnafusion and rnasplice pipelines next, skipping the same STAR alignment every time, but I am still figuring out if it is feasible.Jonathan Manning
02/27/2026, 2:15 PMRike Hanssen
02/27/2026, 2:55 PMMarton Horvath
02/27/2026, 4:15 PMMarton Horvath
03/03/2026, 8:59 AM