Question: Strange Error while running STAR.
gravatar for jaidev53ster
4 months ago by
jaidev53ster0 wrote:

While I am running the STAR command like this,

STAR  --runMode alignReads 
--genomeDir /home/joshij/Desktop/STAR_Index 
--genomeLoad NoSharedMemory 
--readFilesIn $in_file 
--readFilesCommand "zcat -fc" 
--outStd SAM 
--runThreadN 18 
--outFilterMultimapNmax 10 
--outSAMmode Full 
--outSAMattributes Standard 
--outSAMstrandField intronMotif 
--outFileNamePrefix /home/joshij/Desktop/Result_files/STAR_Out_files/$prefix 
--outReadsUnmapped Fastx 
--outFilterScoreMinOverLread 0.9 
--outFilterMismatchNoverLmax 0.05 
--outFilterMismatchNmax 4 
--sjdbGTFfile /home/joshij/Desktop/STAR_Index/Rattus_norvegicus.Rnor_6.0.94.gtf 
--sjdbOverhang 100 
--outSAMtype BAM SortedByCoordinate

While some time produces this error:

terminate called after throwing an instance of 'std::ios_base::failure'
  what():  basic_filebuf::underflow error reading the file

And when once the above error occurs programme won't work without error until the next system bootup. Please help.


rna-seq next-gen alignment • 244 views
ADD COMMENTlink written 4 months ago by jaidev53ster0

This might be related to your zcat options, they look funny, in particular zcat doesn't have -c switch, -c is used with gunzip to cause equal behavior as zcat. Try:

--readFilesCommand "zcat"


--readFilesCommand "zcat -f"


--readFilesCommand "zcat -f --stdout"
ADD REPLYlink modified 4 months ago • written 4 months ago by Michael Dondrup46k

I am not sure what OS you are running this on but a post on Stackoverflow seems to indicate that this may be a bug in one of the libraries.

ADD REPLYlink written 4 months ago by genomax65k
gravatar for jaidev53ster
3 months ago by
jaidev53ster0 wrote:

A silly typo was causing this error and the issue is resolved. The path I was providing for GTF file was incomplete

It should be like this

--sjdbGTFfile /home/joshij/Desktop/STAR_Index/Rattus_norvegicus.Rnor_6.0.94.gtf/Rattus_norvegicus.Rnor_6.0.94.gtf

Rather this

 --sjdbGTFfile /home/joshij/Desktop/STAR_Index/Rattus_norvegicus.Rnor_6.0.94.gtf
ADD COMMENTlink written 3 months ago by jaidev53ster0
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1060 users visited in the last hour