Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • volavii
    Member
    • Apr 2013
    • 16

    #1

    how do i find a specific sequence in a bam file?

    I want to extract special sequences out of my bam-file (reference-mapped with BWA).

    normally i do that with blast or blat, but this time i have a bam file, not a ready-to-use genome...
    do i have to assemble the mapped reads into a consensus sequence in bevore, or is it possible to first (1.) identify the respective scaffold via the reference-genome with blat, (2.) assemble the reads that mapped to this scaffold and then (3.) aligne my sequence to that assembled scaffold?Or is this idea totally stupid? :/

    I have never done an assembly so far. Iam really unsure what is the right way here...

    Which tool would you suggest for assembling a bam-file, when dealing with genomes of >2 GB? And how shoud I care fore heterozygous positions?


    so many thanks in advance,
    hope anyone can give me here some help
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    #2
    It is hard for me to understand what you need. It appears that you already have reference-mapped data thus denovo assembly does not seem to required. If instead you are asking either (a) how to extract reads of a certain region or (b) how to call SNPs/Indels then you should look at the samtools 'mpileup' command. See http://samtools.sourceforge.net/mpileup.shtml for a starting place on mpileup.

    Comment

    • amarth
      Member
      • Dec 2012
      • 14

      #3
      Have you tried to convert your BAM file into a SAM or Fasta?

      Use in the command line:

      $ samtools view -h -o out.sam in.bam
      The SAM file will provide the mapped reads into a specific scaffold. There you can retrieve your reads. Then you can assemble the reads

      Comment

      • volavii
        Member
        • Apr 2013
        • 16

        #4
        first of all, thanks for answering!

        sorry for my imprecise question.

        What i have done so far is a reference-mapping of 5 genomes. i used BWA for that. everything worked well.

        Now i want to have the sequence of ~25 genes outof these 5 inidividuals. And i am not really sure how to do it.
        I have no experience how much time it takes to assemble the reads of these 5 individuals to a consesus sequence... therefore i thougth: maybe it is enought to just assemble the parts of the individuals in which the genes are lying...

        @amarth: which program do you suggest for the assembly. And how should i care for heterozygous sites? Shoud I use ambiguity code in the final gene sequence, or "Ns"?

        Thanks!

        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, Yesterday, 11:13 AM
        0 responses
        17 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, Yesterday, 10:48 AM
        0 responses
        18 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...