Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question on BAM file

    I used bowtie to generate *.sam file, then transform the *.sam file to *.bam and *.bam.bai (by samtools). Unfortunately, when I load *.bam file to IGB, nothing displays. The commands I used are :

    bowtie -S e_coli reads/e_coli_10000snp.fq ec_snp.sam;
    samtools view -bS -o ec_snp.bam ec_snp.sam;
    samtools sort ec_snp.bam ec_snp.sorted;
    samtools index ec_snp.sorted.sam;

    IGB threw out an error on picard when loading the *bam file first time.

    Also, I use tophat to generate *bam file, and got the same unavailable *bam file.

    Does any one meet this problem before? Thank you in advance.
    Last edited by dongfy88; 04-05-2011, 10:44 AM.

  • #2
    By IGB I assume you mean IGV (Integrated Genome Browser).

    What is the error message that you get?

    Comment


    • #3
      Originally posted by gaffa View Post
      By IGB I assume you mean IGV (Integrated Genome Browser).

      What is the error message that you get?
      Thank gaffa for your reply.
      The error message is :
      A SAMFormatException has been thrown by the Picard tools.
      Please validate your BAM files and contact the Picard project at http://picard.sourceforge.net.See console for the details of the exception.

      Comment


      • #4
        Bam Error in IGB

        Originally posted by dongfy88 View Post
        Thank gaffa for your reply.
        The error message is :
        A SAMFormatException has been thrown by the Picard tools.
        Please validate your BAM files and contact the Picard project at http://picard.sourceforge.net.See console for the details of the exception.
        Yeah I also got the same error - processed my bowtie reads the same way. Any hints yet?

        Comment


        • #5
          A possible answer to your problems

          Originally posted by dongfy88 View Post
          bowtie -S e_coli reads/e_coli_10000snp.fq ec_snp.sam;
          samtools view -bS -o ec_snp.bam ec_snp.sam;
          samtools sort ec_snp.bam ec_snp.sorted;
          samtools index ec_snp.sorted.sam;
          If these are indeed the exact commands you used I noticed two errors:
          1) In the second command you need to say -bhS to output the header to BAM
          2) In the fourth command you should be indexing the BAM file not the SAM file

          Comment


          • #6
            Bam header formatting from bowtie incompatible with IGB

            I do index the bam files.
            I think you're right about the header being wrong, but using -bhS in this case does not solve the issue, because the @SQ lines are absent.

            I tried adding the header as in:


            samtools faidx ref.fa
            samtools view -bt ref.fa.fai aln.sam > aln.bam

            But this does not resolve the issue.
            Although I have not tried it, the following suggestion of using picard may help:

            Comment


            • #7
              Originally posted by 12jrowley2 View Post
              I do index the bam files.
              I think you're right about the header being wrong, but using -bhS in this case does not solve the issue, because the @SQ lines are absent.

              I tried adding the header as in:


              samtools faidx ref.fa
              samtools view -bt ref.fa.fai aln.sam > aln.bam

              But this does not resolve the issue.
              Although I have not tried it, the following suggestion of using picard may help:
              http://permalink.gmane.org/gmane.sci...ogy.biodas/422
              Hi,
              I don't know how to solve your problem. Maybe you can have another try with the command line like this:
              samtools faidx reference.fa
              samtools import reference.fa.fai aligned_reads.sam aligned_reads.bam
              samtools sort aligned_reads.bam aligned_reads_sorted
              samtools index aligned_reads_sorted.bam
              For more details,you can read the document below:
              Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

              Hope it can help.

              feixue1039

              Comment


              • #8
                Originally posted by d17 View Post
                If these are indeed the exact commands you used I noticed two errors:
                1) In the second command you need to say -bhS to output the header to BAM
                2) In the fourth command you should be indexing the BAM file not the SAM file
                the fourth command is BAM not SAM, I spelt it wrong here.
                Actually, I have use picard to generate BAM file and index BAM file and passed the validation test, but when I loaded the BAM file, IGB still display nothing. And, this time, IGB did not throw out error.

                Comment


                • #9
                  IGB has some major issues. I have a bam file that was generated by tophat. First time I uploaded it into IGB, it displayed fine. However, when I tried loading a chromosome reference and a gtf against which to compare the alignments, the .bam file no longer displayed. Quite honestly, I don't like IGB at all, it is clunky, not intuitive and almost impossible to use. Plus, it has strange behaviors that make no sense at all. For example when I tried to change the reference sequence, it made the new "reference" a track instead. The only way I could figure out how to change the reference, while maintaining the existing tracks was to quit the session and start over. Very frustrating.

                  Comment

                  Latest Articles

                  Collapse

                  • seqadmin
                    Non-Coding RNA Research and Technologies
                    by seqadmin




                    Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

                    Nobel Prize for MicroRNA Discovery
                    This week,...
                    10-07-2024, 08:07 AM
                  • seqadmin
                    Recent Developments in Metagenomics
                    by seqadmin





                    Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
                    09-23-2024, 06:35 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, Today, 06:35 AM
                  0 responses
                  6 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, Yesterday, 02:44 PM
                  0 responses
                  7 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 10-11-2024, 06:55 AM
                  0 responses
                  14 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 10-02-2024, 04:51 AM
                  0 responses
                  110 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X