I am trying to align RNA-Seq data using STAR. However, STAR does not start the alignment, but exits with the following error:
EXITING because of FATAL ERROR: could not create output file: /home/c479e/ANTCoN_analysis/STAR/65312-RNA-FFPE_L001_Log.out
Check if the path /home/c479e/ANTCoN_analysis/STAR/65312-RNA-FFPE_L001_ exists and you have permissions to write there
However, I do have permissions for writing in the directory.
My command was the following:
STAR --genomeDir hg_GRCh38/indexes/STAR/STAR_2.5.3a_Gencode32_100bp_completep \
--sjdbGTFfile hg_GRCh38/gencode32/gencode.v32.annotation.gtf \
--readFilesIn 65312-RNA-FFPE_S12_L001_R1_001_trimmed.fastq.gz 65312-RNA-FFPE_S12_L001_R1_001_trimmed.fastq.gz\
--outFileNamePrefix /home/c479e/ANTCoN_analysis/STAR/65312-RNA-FFPE_L001_ \
--runThreadN 12 --outSAMtype BAM SortedByCoordinate --outSAMstrandField intronMotif \
--readFilesCommand zcat --outTmpDir /home/c479e/ANTCoN_analysis
I already tried lowering --runThreadN
to 6, and setting ulimit -n
to even 100k, but I still get the same error.
Does anybody know what could be going wrong here?
This solved it! I changed the
--outFileNamePrefix
to/home/c479e/ANTCoN_analysis/STAR/65312-RNA-FFPE/
as you suggested, and now it runs fine. I thought it was also possible to specify the first bit of the file name with--outFileNamePrefix
. The R2 was a spelling error in the post, it is correct in my code. Thank you!