Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Joker!sAce
    Member
    • Feb 2011
    • 21

    Understanding BAM format.

    Hi,

    I have this output in BAM format.

    NA06984-SRR006041.1145152 1040 1 113040605 57 325M * 0 0 TTGATCACTTCACACACATCTTCATCGATGAGGCTGGCCA
    CTGCATGGAGCCTGAGAGTCTGGTAGCTATAGCAGGTGAGGGACTCAGGTGGGGCTGCAGGTATACACCCTGTGTGGGTCAGAGAGGTTGCACCACTTACCTTTCTTCCCACACCTCTTCTGCTTCCCAGGGCTGATGGAAGTA
    AAGGAAACAGGTGATCCAGGAGGGCAGCTGGTGCTGGCAGGAGACCCTCGGCAGCTGGGGCCTGTGCTGCGTTCCCCACTGACCCAGAAGCATGGACTGGGATACTCACTGCTGGAGCGGCTGCTCACCTACAACTCCCTG 7
    99::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::88:::::::::::;;;;;;;;;;;;;::888:;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;888;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:9::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;::::::::::::::::::::::::: RG:Z:SRR006041 NM:i:0
    (This is data from the 1000 genomics project.)

    I'm constructing a pipeline to study variations (I get fast-q sequence, index it, align it to ref.seq hg18, do a couple of format conversions and get BAM, call indels and snps, add them to a db, call larger variations, look if they've been reported before, give out fancy graphs and charts, display the alignment, submit a report).

    I'm learning about BWA aligner and the BAM format right now. I'm using pilot data on un-aligned sequences from the 1000 genomes project (because I will have similar BAM outputs).

    I have to study and make sense out of this BAM format. I've read this tutorial on understanding the SAM/ BAM format with little help. Could someone give me further pointers?

    Thanks a lot!
    Joker!sAce
    Last edited by Joker!sAce; 02-28-2011, 07:15 AM.
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #2
    What specific questions about the format do you have?

    Comment

    • Joker!sAce
      Member
      • Feb 2011
      • 21

      #3
      I understand that there are a lot of columns in this record.

      NA06984-SRR006041.1145152
      1040
      1
      113040605
      57
      325M
      *
      0
      0
      TTGATCACTTCACACACATCTTCATCGATGAGGCTGGCCACTGCATGGAGCCTGAGAGTCTGGTAGCTATAGCAGGTGAGGGACTCAGGTGGGGCTGCAGGTATACACCCTGTGTGGGTCAGAGAGGTTGCACCACTTACCTTTCTTCCCACACCTCTTCTGCTTCCCAGGGCTGATGGAAGTAAAGGAAACAGGTGATCCAGGAGGGCAGCTGGTGCTGGCAGGAGACCCTCGGCAGCTGGGGCCTGTGCTGCGTTCCCCACTGACCCAGAAGCATGGACTGGGATACTCACTGCTGGAGCGGCTGCTCACCTACAACTCCCTG
      799::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::88:::::::::::;;;;;;;;;;;;;::888:;;;;;;;;;;;;;;;;;;;;;;;;;;;;888;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:9::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::::::::::::::::::::::::
      RG:Z:SRR006041
      NM:i:0

      I'd like to know what they mean. I do have faint ideas but I'd like to know about it anyways.

      Comment

      • krobison
        Senior Member
        • Nov 2007
        • 734

        #4
        You'll get much better answers if you post specific questionswhich can't be easily found in the SAM format documentation.

        Comment

        • Joker!sAce
          Member
          • Feb 2011
          • 21

          #5
          My study involves divergence study on the gene p53 on short arm of chromosome 17. I need to extract this part of the sequence.

          I understand that I can do this in two ways:
          1. Get raw fasta reads.
          2. Extract from the aligned(to hg18) data(in BAM format).

          How do I do it the 2'nd part?

          Comment

          • krobison
            Senior Member
            • Nov 2007
            • 734

            #6
            If you know the chromosomal coordinates for your gene (which you can find in the UCSC files or via the browser), then SAMtools can extract this efficiently

            Comment

            • Joker!sAce
              Member
              • Feb 2011
              • 21

              #7
              This sequence has been aligned to hg18. I know the chromosomal co-ordinates for hg18 (chr17:7,520,037-7,531,588 - That's the tp53 repressor gene)

              How do I proceed from here?

              Comment

              • krobison
                Senior Member
                • Nov 2007
                • 734

                #8
                samtools view aligned.bam chr17:7520037-7531588 > tp53.sam

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                  by SEQadmin2



                  Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                  Introduction

                  The systematic characterization
                  ...
                  Today, 10:07 AM
                • SEQadmin2
                  Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                  by SEQadmin2



                  Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                  ...
                  07-09-2026, 11:10 AM
                • SEQadmin2
                  Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                  by SEQadmin2



                  Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                  There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                  07-08-2026, 05:17 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, Today, 11:10 AM
                0 responses
                4 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-13-2026, 10:26 AM
                0 responses
                28 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-09-2026, 10:04 AM
                0 responses
                38 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-08-2026, 10:08 AM
                0 responses
                25 views
                0 reactions
                Last Post SEQadmin2  
                Working...