Thanks,
However after changing this, I obtain the following:
Dec 04 14:43:26 ... starting to generate Genome files terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted
Dear all,
I want to use STAR to align my reads to a small reference genome (~12.500 UTRs). Although I have created a .fa-file of my library STAR is not able to generate a genome, as it is unable to read the file. I was wondering if anyone else has experienced the same problem? Or whether anyone has a solution to this problem?
Best, Bram Verhagen
Code:
./STAR --runMode genomeGenerate --genomeDir home/hub_tanenbaum/bverhagen/star-genome/ --genomeFastaFiles home/hub_tanenbaum/bverhagen/star-genome/sequence.fa
You are likely missing a / before home/hub_tanenbaum/bverhagen/star-genome/ (in both places) unless the path is relative to whereever you are running this from and there is a home directory in there.
Thanks,
However after changing this, I obtain the following:
Dec 04 14:43:26 ... starting to generate Genome files terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted
See my comment above. Also, how much RAM memory do you have? And what is the size of the reference?
I am running the script on a HPC server using a mobile terminal (5GB RAM on server). The library is not very big though, roughly 8000 sequences.
If you got that error then allocate more RAM for the job. Use 20G if possible. Sometimes it is hard to predict what star may need. Take into consideration @h.mon's comment on your original question.
Log in to answer this question.
As you are building an index with thousands of sequences, you will have to play with the value of
--genomeChrBinNbitsparameter - check STAR manual on how to set a proper value.Now I wrote the following script script.sh):
And submitted it with the following command:
I get the following error, although a folder with the name STARtemp is made:
Moreover if I schange the script to:
With $STAR being: /home/hub_tanenbaum/bverhagen /STAR/source/STAR
I receive an error stating that the path is not found. Do I need to specify the path in another way? In the script?
Please use the
codebutton to format code, commands and such.Also, do not post questions on the space reserved for answers.
How did you acquire
STAR? Did you download the executable directly or compiled it from source? If you got the executable did you get the one appropriate for your operating system?STAR=/home/hub_tanenbaum/bverhagen/STAR/source/STAR? Probably not a great idea to use a variable name as the program executable./home/hub_tanenbaum/bverhagen /STAR/source/STARAs posted there is a space betweenbverhagenand next/STAR.STARwith 8 threads but there is no corresponding request for cores in the job scheduler.