Rose Peterson
12/31/2025, 2:49 PMParsing gtf File is done!
"rsem-extract-reference-transcripts rsem/genome 0 Homo_sapiens.GRCh38.110.gtf None 0 rsem/custom_fasta.fasta" failed! Plase check if you provide correct parameters/options for the pipeline!
Here is the code sbatch scripts I have tried all with the three different gtf files stated above. If anyone has any insight on how to properly create the gtf file for a custom genome please let me! Thanks so much for your help!
#! /bin/bash
#SBATCH --job-name=nextflow-main
#SBATCH --cpus-per-task=16
#SBATCH --mem=200G
#SBATCH --gres=lscratch:200
#SBATCH --time=40:00:00
module load nextflow
export NXF_SINGULARITY_CACHEDIR=/data/$USER/nxf_singularity_cache;
export SINGULARITY_CACHEDIR=/data/$USER/.singularity;
export TMPDIR=/lscratch/$SLURM_JOB_ID
export NXF_JVM_ARGS="-Xms2g -Xmx4g"
nextflow run nf-core/rnaseq \
-profile biowulflocal \
--input samplesheet_RNA.csv \
--outdir rnaseq_out \
--fasta /data/LBD/1000genomes/SRA_downloads/RNA_Test/Ref/Sample_HG00176_.nfcore.fasta \
--gtf /fdb/igenomes_nf/Homo_sapiens/Ensembl/pub/release-110/gtf/Homo_sapiens.GRCh38.110.gtf \
-resume
#! /bin/bash
#SBATCH --job-name=nextflow-main
#SBATCH --cpus-per-task=16
#SBATCH --mem=200G
#SBATCH --gres=lscratch:200
#SBATCH --time=40:00:00
module load nextflow
export NXF_SINGULARITY_CACHEDIR=/data/$USER/nxf_singularity_cache;
export SINGULARITY_CACHEDIR=/data/$USER/.singularity;
export TMPDIR=/lscratch/$SLURM_JOB_ID
export NXF_JVM_ARGS="-Xms2g -Xmx4g"
nextflow run nf-core/rnaseq \
-profile biowulflocal \
--input samplesheet_RNA.csv \
--outdir rnaseq_out \
--fasta /data/LBD/1000genomes/SRA_downloads/RNA_Test/Ref/Sample_HG00176_.nfcore.fasta \
--gtf /fdb/igenomes_nf/Homo_sapiens/Ensembl/pub/release-110/gtf/Homo_sapiens.GRCh38.110.gtf \
--aligner hisat2 \
--skip_gtf_filter \
--skip_gtf_transcript_filter \
-resume
#! /bin/bash
#SBATCH --job-name=nextflow-main
#SBATCH --cpus-per-task=16
#SBATCH --mem=200G
#SBATCH --gres=lscratch:200
#SBATCH --time=40:00:00
module load nextflow
export NXF_SINGULARITY_CACHEDIR=/data/$USER/nxf_singularity_cache;
export SINGULARITY_CACHEDIR=/data/$USER/.singularity;
export TMPDIR=/lscratch/$SLURM_JOB_ID
export NXF_JVM_ARGS="-Xms2g -Xmx4g"
nextflow run nf-core/rnaseq \
-profile biowulflocal \
--input samplesheet_RNA.csv \
--outdir rnaseq_out \
--fasta /data/LBD/1000genomes/SRA_downloads/RNA_Test/Ref/Sample_HG00176_.nfcore.fasta \
--gtf /fdb/igenomes_nf/Homo_sapiens/Ensembl/pub/release-110/gtf/Homo_sapiens.GRCh38.110.gtf \
--skip_gtf_filter \
--skip_gtf_transcript_filter \
-resumenovelvirus
01/01/2026, 1:55 PMThomas Danhorn
01/02/2026, 11:15 PMRose Peterson
01/05/2026, 2:44 PMThomas Danhorn
01/05/2026, 8:45 PMParsing gtf File is done! is at the end of the function. It is not clear to me what the actual problem was, since there is no specific error message, we just know the program rsem-extract-reference-transcripts returned a non-zero exit code.
What I would do is make a minimal GTF (maybe one gene) from the one you have and provide the FASTA (maybe just the contig on which that gene is) and run rsem-extract-reference-transcripts manually. (You should have everything needed in the work directory of the failed process.) If that succeeds, you can add more genes slowly until you find one that fails (maybe start with the genes that have been modified from the original). (If it fails, you are already at that point.) Then you can take a hard look at that gene in the GTF and the FASTA and see if there are any obvious mistakes. You can change things to see if you can make it work to diagnose the issue.
Random idea: Look at your reference files with less -U to see if there are any inappropriate control characters in there, e.g. ^M from Windows line endings.
Probably unrelated to your immediate issue, but I noticed
#SBATCH --cpus-per-task=16
#SBATCH --mem=200G
in your script(s). If your config is set up in a sane, efficient way, this makes no sense -- the script you are firing off just starts the nextflow process itself, which needs one CPU and maybe 4-8 GB of memory. This process then submits the processes doing actual work (parsing GTFs, mapping reads to the genome, etc.) as SLURM jobs to your cluster (I assume that is the case for you, since you have a SLURM script).
I suggest investing a bit of time getting a reasonable config together, it will pay off multiple times over. Here are some tips. 🤞Rose Peterson
01/06/2026, 3:49 PMrsem-extract-reference-transcripts and looking into my config file! Thanks again for the suggestions!