Question: Rna-Seqc Generates Error
gravatar for federico.gaiti
6.7 years ago by
federico.gaiti70 wrote:

Hi all,

I was running RNA-SeQC software in command line. I tried withto follow the example sets provided on RNA-SeQC website and following the instructions as stated.

The command was:

"java -jar /hox/u/uqfgaiti/Tools/picard-tools-1.84/RNA-SeQC_v1.1.7.jar -r ampQue1.fasta -s "TestID||TestDesc" -t 2507_Intergenic+Intronic.gtf -n 1000 -BWArRNA rRNA.fasta -o RNA-SeQC_out"

However I ran into the below error, and I am trying to see if anyone else faced the same error or knows the fix:

RNA-SeQC v1.1.7 05/14/12

Retriving contig names from reference

contig names in reference: 13397

Loading GTF for Read Counting

Converting to refGene

Transcript objects to RefGen format: 2 s

Running IntronicExpressionReadBlock Walker ....

Arguments: [-T, IntronicExpressionReadBlock, --outfile_metrics, RNA-SeQC_out/TestID/TestID.metrics.tmp.txt, -R, ampQue1.fasta, -I,, -refseq, RNA-SeQC_out/refGene.txt, -l, ERROR]

net.sf.samtools.util.RuntimeEOFException: Premature EOF; BinaryCodec in readmode; streamed file (filename not available)

at net.sf.samtools.util.BinaryCodec.readBytes(
at net.sf.samtools.util.BinaryCodec.readByteBuffer(
at net.sf.samtools.util.BinaryCodec.readInt(
at net.sf.samtools.BAMFileReader.readSequenceRecord(
at net.sf.samtools.BAMFileReader.readHeader(
at net.sf.samtools.BAMFileReader.<init>(
at net.sf.samtools.BAMFileReader.<init>(
at net.sf.samtools.SAMFileReader.init(
at net.sf.samtools.SAMFileReader.<init>(
at org.broadinstitute.sting.gatk.datasources.reads.SAMDataSource$
at org.broadinstitute.sting.gatk.datasources.reads.SAMDataSource$SAMReaders.<init>(
at org.broadinstitute.sting.gatk.datasources.reads.SAMDataSource$SAMResourcePool.createNewResource(
at org.broadinstitute.sting.gatk.datasources.reads.SAMDataSource$SAMResourcePool.getAvailableReaders(
at org.broadinstitute.sting.gatk.datasources.reads.SAMDataSource.<init>(
at org.broadinstitute.sting.gatk.GenomeAnalysisEngine.createReadsDataSource(
at org.broadinstitute.sting.gatk.GenomeAnalysisEngine.initializeDataSources(
at org.broadinstitute.sting.gatk.GenomeAnalysisEngine.execute(
at org.broadinstitute.sting.gatk.CommandLineExecutable.execute(
at org.broadinstitute.sting.commandline.CommandLineProgram.start(
at org.broadinstitute.sting.commandline.CommandLineProgram.start(
at org.broadinstitute.cga.rnaseq.gatk.GATKTools.runIntronReadCount(
at org.broadinstitute.cga.rnaseq.ReadCountMetrics.runRegionCounting(
at org.broadinstitute.cga.rnaseq.ReadCountMetrics.runReadCountMetrics(
at org.broadinstitute.cga.rnaseq.RNASeqMetrics.runMetrics(
at org.broadinstitute.cga.rnaseq.RNASeqMetrics.execute(
at org.broadinstitute.cga.rnaseq.RNASeqMetrics.main(

RNA-SeQC Total Runtime: 0 min

Any comments are highly appreciated.

Thanks Federico

bioinformatics java picard • 4.5k views
ADD COMMENTlink modified 4.9 years ago by Biostar ♦♦ 20 • written 6.7 years ago by federico.gaiti70

In all such cases you need to make sure your bam file is exists, it is indexed and that it does contain the samples.

Include a few lines of the command to invoke and the results of doing a samtools view

ADD REPLYlink written 6.7 years ago by Istvan Albert ♦♦ 81k
gravatar for federico.gaiti
6.7 years ago by
federico.gaiti70 wrote:

I re-did everything from the beginning and it seems the problem was in the command "AddOrReplaceReadGroups".

Now I have all the required input files:

  • an indexed, coordinate-sorted BAM file with read group information

  • .BAI of the BAM file in the same folder

  • my FASTA ref sequence

  • .FAI of the ref sequence

  • .DICT of the ref sequence

  • GTF annotation file

Now it's running and it's not giving me any sort of error.

Let you know if I'll be stuck again

Thanks for the comments

ADD COMMENTlink written 6.7 years ago by federico.gaiti70

thanks for following up

ADD REPLYlink written 6.7 years ago by Istvan Albert ♦♦ 81k
gravatar for Chris Miller
6.7 years ago by
Chris Miller21k
Washington University in St. Louis, MO
Chris Miller21k wrote:

The relevant part of this error seems to be: "filename not available"

Are you sure your bam path is correct and that the software can access it (permissions are set properly, etc)?

ADD COMMENTlink written 6.7 years ago by Chris Miller21k
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: 854 users visited in the last hour