![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about samtools view -r? | syedsaid | Bioinformatics | 0 | 09-29-2011 03:00 AM |
Samtools view | michalkovac | Bioinformatics | 2 | 07-19-2011 06:25 AM |
samtools view error after reheader | Hkins552 | Bioinformatics | 3 | 07-17-2011 11:32 AM |
Samtools view error message | Jan | Bioinformatics | 4 | 06-07-2010 03:45 PM |
Duplicates in samtools view when using ranges | jdrum00 | Bioinformatics | 5 | 12-17-2009 12:48 PM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: St. Louis Join Date: Jun 2010
Posts: 10
|
![]()
Hi All,
I'm having trouble filtered MAQ aligned reads from a sam file with no header and converting to BAM. I've tried created the fai file of the reference as suggested by the SAMTOOLS faq, but to no avail. When I use the following command: samtools view -S lane1.normal.sam -T reduced.reference.fa -q 1 I get an error: "Parse error at line 1: missing colon in auxiliary data" Does anyone have any suggestions? Thanks a lot! |
![]() |
![]() |
![]() |
#2 |
Junior Member
Location: usa Join Date: Feb 2011
Posts: 4
|
![]()
you can use samtools view -S xx.sam -t chr.list -q 1 > xx.bam.
|
![]() |
![]() |
![]() |
#3 |
Member
Location: St. Louis Join Date: Jun 2010
Posts: 10
|
![]()
i implemented the command you suggested, asanggi:
samtools view -S xx.sam -t reference.fa.fai -q 1 > xx.bam but i still get the same error. thanks for your help! Last edited by Gen2007; 02-24-2011 at 09:16 AM. |
![]() |
![]() |
![]() |
#4 |
Member
Location: Germany Join Date: Oct 2009
Posts: 24
|
![]()
Perhaps there is a problem with trailing tabs?
I solved a similar problem using sed 's/[ \t]*$//g' samfile Thomas |
![]() |
![]() |
![]() |
#5 |
Junior Member
Location: USA Join Date: Nov 2011
Posts: 1
|
![]()
I had the same problem, but I could solve with two following command
sed 's/[ \t]*$//g' samfile (same with Thomas) tr -d \\r < samfile > samfile.2 Thanks Yoshiaki |
![]() |
![]() |
![]() |
Thread Tools | |
|
|