SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
bwa/picard issue cedance Bioinformatics 14 03-06-2015 09:53 AM
Issue with LiftOver ashkot Bioinformatics 1 05-17-2012 10:25 AM
CisGenome Issue Nicholas_ Bioinformatics 0 10-10-2011 01:24 AM
trimming issue malatorr 454 Pyrosequencing 3 01-25-2010 11:16 PM
Coverage issue hersh Bioinformatics 0 03-18-2009 10:17 PM

Reply
 
Thread Tools
Old 06-05-2012, 08:16 AM   #1
ercfrtz
Member
 
Location: Iowa

Join Date: Aug 2010
Posts: 23
Default Picard Issue

I am having an issue with a BAM file in picard. I tried to run AddOrReplaceReadGroups on the file and got the following error, and this is with VALIDATION_STRINGENCY=SILENT:

Exception in thread "main" net.sf.samtools.SAMFormatException: For sequence 0, text and binary have different lengths in file

When I tried to run ValidateSamFile, I get the same error. What is wrong with my BAM file that it would be giving me this error, especially with VALIDATION_STRINGENCY=SILENT? Thanks.
ercfrtz is offline   Reply With Quote
Old 06-05-2012, 09:00 AM   #2
SeekAnswers
Member
 
Location: USA

Join Date: Mar 2012
Posts: 21
Default

Just taking a blind guess from what you posted, it looks like the bam file and the index do not match. I'd try regenerating the index using samtools and check if it helps.

Also check if anything in the bam header looks suspicious, like the contig shows zero length and things like that.
SeekAnswers is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 11:04 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO