STAR alignment error: Genome_genomeGenerate.cpp:208:genomeGenerate: exiting because of *OUTPUT FILE* error: could not create output file ./GenomeDir/
2
0
Entering edit mode
5.8 years ago
salamandra ▴ 550

I'm trying to run STAR alignment software on macOS Sierra to index the genome. The command is:

STAR --runThreadN 4 --runMode genomeGenerate --genomeFastaFiles $GENOME --sjdbGTFfile $ANOTATION --sjdbOverhang 99

And it gives the error:

Jun 28 15:21:51 ..... started STAR run
Jun 28 15:21:51 ... starting to generate Genome files
Genome_genomeGenerate.cpp:208:genomeGenerate: exiting because of *OUTPUT FILE* error: could not create output file ./GenomeDir//chrName.txt
Solution: check that the path exists and you have write permission for this file

I have 'read and write' permissions for both input files. As suggested somewhere, I have tried to reduce the number of threads, and to increase the limit number of files that can be open at the same time with:

ulimit 10000000
ulimit -n

Nothing worked. Any ideas?

RNA-Seq STAR • 6.1k views
ADD COMMENT
2
Entering edit mode
5.8 years ago
GenoMax 141k

At a minimum add --genomeDir some_dir that you actually have write permissions to write to, so a specific location is available to store the indexes.

ADD COMMENT
0
Entering edit mode

you were right. it was missing

ADD REPLY
0
Entering edit mode
23 months ago

It occurred to me, too. I specified --genomeDir some_dir, but did not create the directory prior to executing the command, and it still through the same error. it turns out you need to have an existing directory. The command can not create the directory for you!

ADD COMMENT

Login before adding your answer.

Traffic: 2330 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6