Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jjw14
    Member
    • Apr 2010
    • 39

    #1

    SAM output from Bowtie >50GB?

    I'm working with my first Illumina sequence reads and using Bowtie for alignment to the reference genome. I must be doing something wrong, because the SAM files that are generated are over 50 GB in size. It seems to be some sort of loop, because the algorithm is halted once my disk quota is exceeded.

    The Illumina read files are about 4 GB after conversion to FASTQ Sanger format.

    I've posted the script below for anyone who can tell me where I'm messing up:

    -----
    #BSUB -J BowtieSwineSeq4
    #BSUB -o BowtieSwineSeq4.o%J
    #BSUB -e BowtieSwineSeq4.e%J
    #BSUB -n 2

    bowtie -p 2 -a -v 2 -t -S SwineGenome9.58 s_4_sequence.fastq SwineSeq4.sam
    -----

    Many thanks in advance,
    JJW
  • Ben Langmead
    Senior Member
    • Sep 2008
    • 200

    #2
    It's hard to know if there is a problem unless we know (a) how many reads you have and (b) how many lines of output bowtie generates before your disk quota is exceeded. It seems likely that Bowtie's doing what it should do.

    Ben

    Comment

    • jjw14
      Member
      • Apr 2010
      • 39

      #3
      Thanks for the reply. As to the information needed:

      a) The current file I am working with has 29751337 illumina reads, converted into sanger reads.

      b) I can't seem view the SAM output file contents (e.g. in a text editor) in their entirety. The first few lines that do come up are pasted below.

      I'm sure Bowtie is doing what I'm asking it to do. Being new to this type of analysis, I'm sure the glitch is on my end, not the software's. I'm very impressed with the alignment program you have produced.

      Much appreciated!
      JJW

      HWUSI-EAS558R_0001:2:1:1054:8831#0/1 16 15 64381792 255 42M * 0 0 CCCTAACATGGGAAAGGGATCACTCACTCAAATCCATGAAGC 5EEEBEBECBED>@41:ECEE$
      HWUSI-EAS558R_0001:2:1:1054:8831#0/1 16 7 78866817 255 42M * 0 0 CCCTAACATGGGAAAGGGATCACTCACTCAAATCCATGAAGC 5EEEBEBECBED>@41:ECEE$
      HWUSI-EAS558R_0001:2:1:1054:8831#0/1 16 8 36985051 255 42M * 0 0 CCCTAACATGGGAAAGGGATCACTCACTCAAATCCATGAAGC 5EEEBEBECBED>@41:ECEE$
      HWUSI-EAS558R_0001:2:1:1054:8831#0/1 16 7 78903247 255 42M * 0 0 CCCTAACATGGGAAAGGGATCACTCACTCAAATCCATGAAGC 5EEEBEBECBED>@41:ECEE$
      HWUSI-EAS558R_0001:2:1:1054:8831#0/1 16 7 78837623 255 42M * 0 0 CCCTAACATGGGAAAGGGATCACTCACTCAAATCCATGAAGC 5EEEBEBECBED>@41:ECEE$
      HWUSI-EAS558R_0001:2:1:1054:8831#0/1 16 5 22131022 255 42M * 0 0 CCCTAACATGGGAAAGGGATCACTCACTCAAATCCATGAAGC 5EEEBEBECBED>@41:ECEE$
      HWUSI-EAS558R_0001:2:1:1054:8831#0/1 16 9 9081785 255 42M * 0 0 CCCTAACATGGGAAAGGGATCACTCACTCAAATCCATGAAGC 5EEEBEBECBED>@41:ECEECDDECDEE$
      HWUSI-EAS558R_0001:2:1:1054:11106#0/1 4 * 0 0 * * 0 0 TCATATTGCTTTTTGAACTTGATGAACTGTCTGATAGTTTAT B=B=B-AACCDDDDD=DDD?CCCC?=DDD$
      HWUSI-EAS558R_0001:2:1:1054:4407#0/1 4 * 0 0 * * 0 0 CAGAGTGTCTATGTGAAGCCGTATGTCTTGAAGAGAAGCTTT D?BD@@6?@@DD?DD-BD??CDDDDD=:=$
      HWUSI-EAS558R_0001:2:1:1054:5597#0/1 16 15 120471582 255 42M * 0 0 AAAAAGAGAAATTTGATTATAGTATATTCATTCATTCAAGAA AEDDGFGDDCFFDFGGFAG$

      Comment

      • lh3
        Senior Member
        • Feb 2008
        • 686

        #4
        because you use "-a"

        Comment

        • jjw14
          Member
          • Apr 2010
          • 39

          #5
          Thanks,

          I'll drop the -a option. Out of curiosity, don't I want all valid alignments?

          JJW

          Comment

          • DrD2009
            Member
            • Oct 2009
            • 88

            #6
            Did you remove the adapters from your Solexa reads?

            I know from personal experience that if you do trim the adapters off and don't set a minimum length, say 17bp, you could end up with sequences that are only a few base pairs long. Needless to say those sequences will be found thousands of times in the reference genome you are using and create a HUGE SAM file, if you don't run out of memory first.

            If you want the most valid alignments use '-a', but you could also use '-k x' (example: -k 40, which would find the best 40 regions that match a read to the reference genome).

            Welcome to the wonderful world of Solexa sequencing data.

            Hope this might help you.
            Last edited by DrD2009; 06-27-2010, 11:47 AM.

            Comment

            • jjw14
              Member
              • Apr 2010
              • 39

              #7
              Thanks so much for the great advice! I assumed (always a bad idea) that the reads sent back to me from our DNA core had trimmed the adapters. I will verify this before proceeding.

              JJW

              Comment

              • DrD2009
                Member
                • Oct 2009
                • 88

                #8
                If it created a file that large I would assume they are already trimmed. If they weren't and still had the adapters on them you would get around a 1.00% alignment to your reference genome and it would complete the alignment in a few minutes or less. I've done this before. haha '-t' is a great parameter.

                Comment

                • jjw14
                  Member
                  • Apr 2010
                  • 39

                  #9
                  Actually, I'm glad to hear you say that. I think your earlier suggestion to use the -k option to limit the number of valid alignments returned sounds like a great way to go. I'll give it a try and post the outcome.

                  Thanks for helping out a greenhorn!

                  Comment

                  • DrD2009
                    Member
                    • Oct 2009
                    • 88

                    #10
                    Thanks, I'm just glad I'm at a point I can actually start helping others with problems I've experienced.

                    Us greenhorns have to stick together.

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                      by SEQadmin2



                      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                      ...
                      10-14-2026, 09:55 AM
                    • SEQadmin2
                      New Genomics Technologies Take Aim at Long-Standing Limits
                      by SEQadmin2


                      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                      ...
                      09-28-2026, 10:25 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, 10-22-2026, 11:13 AM
                    0 responses
                    24 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-22-2026, 10:48 AM
                    0 responses
                    20 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-15-2026, 10:52 AM
                    0 responses
                    36 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-14-2026, 05:39 AM
                    0 responses
                    42 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...