Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • capricy
    Senior Member
    • Apr 2012
    • 125

    #1

    how to extract information about mapped genes from a genome-mapping bam file

    Hello, there,

    I mapped the reads to the genome scaffold using tophat and got a bam file. I have gff file for the genome sequences. I wonder if there is an easy way to extract the information about the mapped genes and the corresponding reads.

    Thank you for your help.

    Capricy
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Are you looking for coverage information (http://bedtools.readthedocs.org/en/l.../coverage.html) or actually looking to extract reads that are mapped to the genes (http://seqanswers.com/forums/showthread.php?t=50390)?

    Comment

    • capricy
      Senior Member
      • Apr 2012
      • 125

      #3
      I am looking for which gene was mapped by the reads. For example:

      My alignment file:
      ----
      HWI-M01439:125:000000000-A7P33:1:1110:21257:22290 99 A_Cont998 55849 50 106M95N138M98N6M = 55887 481 ATTTTGAAGATATCGGAGTATTAGACCTCGACGCCTCACGTGAGCCAATGAGGGCTTTAGTTTGACTTCGTGTGACCTTCACCGCAGGATCAGTTGTGGAGAGGAACAGTTCCGTCACTGTGTTCTTATGCGTAGGATCAAATAACTTTTTCAATTCGCCAGATGCAGCAGCCACTTCAGCGGCCGTCTGCCCATAAAAGACGTCATCCTCCTGCAGTTCCCGAGGTTTAAGGCCAGTTTTATCATCTCT CDCEEFDFFFFFGGGGGGGGGGHHHHHHHGGGGGGHGHHHHHHGHHHHHHHHHGGHHHHHHHHHHHHHHGHGHHHHHHHHHHHGGGGGGHHHHHHHHGGHHHGGHHHHHHHHHGHHGGHHHHHHHHHHHHHGGGGGHHHHHHHHHHHHHHHHHHHHHGGGGGHHHHHHHHHHHHHHHHHHHGGGGGGGHGHGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGFFFFFFFFFFFFFFFFHHFFFHFFHFHF MD:Z:250 XG:i:0 NH:i:1 NM:i:0 XM:i:0 XO:i:0 AS:i:0 XS:A:-
      HWI-M01439:125:000000000-A7P33:1:1110:21257:22290 147 A_Cont998 55887 50 68M95N138M98N44M = 55849 -481 CGTGAGCCAATGAGGGCTTTAGTTTGACTTCGTGTGACCTTCACCGCAGGATCAGTTGTGGAGAGGAACAGTTCCGTCACTGTGTTCTTATGCGTAGGATCAAATAACTTTTTCAATTCGCCAGATGCAGCAGCCACTTCAGCGGCCGTCTGCCCATAAAAGACGTCATCCTCCTGCAGTTCCCGAGGTTTAAGGCCAGTTTTATCATCTCTAGTAACTATTTCCGAAACGTACTCCCAACGTGGGCCTC EFBFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFBBGFBA9.FAGFGGGGFFGGGGFBFFFGGGHHGHHEEECGGGHHHHHHHHHHFGGGGGHHHHHHHHHHHHHGGHHHGGHHGC<CHHFHHHGHHHGGHGHHGHHGGGGGGGGGHGGHHHHHHHHHGHGGGHHHHFGGGHHHHHHGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHGGGGGHHHGGGGGGGGGGFCCDDDDDDDDD MD:Z:250 XG:i:0 NH:i:1 NM:i:0 XM:i:0 XO:i:0 AS:i:0 XS:A:-
      ----

      my gff file indicate that: B gene is located on scaffold A_Cont998, between 558000 - 578000

      I would like to have an output: HWI-M01439:125:000000000-A7P33:1:1110:21257:22290 "B gene"

      I don't need to count, just match reads to genes, based on bam file and gff file

      Any idea? Thanks a lot!

      Comment

      • cascoamarillo
        Senior Member
        • Oct 2010
        • 164

        #4
        Why would you want to do that? Probably you have your reasons. One idea: I think using htseq-count (you need sam file as input) have the option of giving another sam output (--samout) which have some extra gene alignment information on it (along the flags). Then you can parse this sam output with your desire info. Good luck.

        Comment

        • capricy
          Senior Member
          • Apr 2012
          • 125

          #5
          Ok, I will go with this idea!

          Thanks

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
            by SEQadmin2




            NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
            Today, 06:46 AM
          • 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

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-28-2026, 09:57 AM
          0 responses
          24 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-28-2026, 09:51 AM
          0 responses
          15 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 11:13 AM
          0 responses
          68 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          48 views
          0 reactions
          Last Post SEQadmin2  
          Working...