Fuad Gwadry
2009-11-26 20:10:34 UTC
Hello All,
I am using samtools version 0.1.7 and generating SAM output using bowtie version 0.11.3. I am able to convert my SAM Bowtie output to BAM and then sort, however I am not able to view the sequence in tview. I consistently get the following error "bam_index_load] fail to load BAM index" however I can create an index using faidx. I am wondering if I am doing anything wrong.
***@cn-r5-18:~/src/bowtie-0.11.3> bowtie -S e_coli reads/e_coli_10000snp.fq ec_snp.sam
# reads processed: 10000
# reads with at least one reported alignment: 10000 (100.00%)
# reads that failed to align: 0 (0.00%)
Reported 10000 alignments to 1 output stream(s)
***@cn-r5-18:~/src/bowtie-0.11.3> samtools view -bS -o ec_snp.bam ec_snp.sam
[samopen] SAM header is present: 1 sequences.
***@cn-r5-18:~/src/bowtie-0.11.3> samtools sort ec_snp.bam ec_snp.sorted
***@cn-r5-18:~/src/bowtie-0.11.3> samtools tview ec_snp.sorted.bam reads/e_coli_10000snp.fa
[bam_index_load] fail to load BAM index.
however, I can still
***@cn-r5-18:~/src/bowtie-0.11.3> samtools faidx reads/e_coli_10000snp.fa
Thanks,
Fuad
_________________________________________________________________
Windows Live: Make it easier for your friends to see what youre up to on Facebook.
http://go.microsoft.com/?linkid=9691816
I am using samtools version 0.1.7 and generating SAM output using bowtie version 0.11.3. I am able to convert my SAM Bowtie output to BAM and then sort, however I am not able to view the sequence in tview. I consistently get the following error "bam_index_load] fail to load BAM index" however I can create an index using faidx. I am wondering if I am doing anything wrong.
***@cn-r5-18:~/src/bowtie-0.11.3> bowtie -S e_coli reads/e_coli_10000snp.fq ec_snp.sam
# reads processed: 10000
# reads with at least one reported alignment: 10000 (100.00%)
# reads that failed to align: 0 (0.00%)
Reported 10000 alignments to 1 output stream(s)
***@cn-r5-18:~/src/bowtie-0.11.3> samtools view -bS -o ec_snp.bam ec_snp.sam
[samopen] SAM header is present: 1 sequences.
***@cn-r5-18:~/src/bowtie-0.11.3> samtools sort ec_snp.bam ec_snp.sorted
***@cn-r5-18:~/src/bowtie-0.11.3> samtools tview ec_snp.sorted.bam reads/e_coli_10000snp.fa
[bam_index_load] fail to load BAM index.
however, I can still
***@cn-r5-18:~/src/bowtie-0.11.3> samtools faidx reads/e_coli_10000snp.fa
Thanks,
Fuad
_________________________________________________________________
Windows Live: Make it easier for your friends to see what youre up to on Facebook.
http://go.microsoft.com/?linkid=9691816