Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ClemBuntu
    Member
    • Dec 2014
    • 37

    #1

    How to extract only intronic reads or region from BAM file?

    Hello all,

    I used picard tool CollectRnaSeqMetrics on my RNA-seq fastq files and I found a lot (> 50%) of intronic region.

    I wonder if these intronic regions are equally distributed among the genome or otherwise if my reads are aligned one only few genes.

    How can I see it ? Is there a way to extract only intronic regions from a BAM file ?

    Or maybe there is a way to extract only reads which mapped on intronic regions and see where they're aligned ?
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Look at the samtools view -L option. Provide your intronic regions as a bed file and extract reads aligned in those areas into a new file.

    Comment

    • WhatsOEver
      Senior Member
      • Apr 2012
      • 215

      #3
      First, depending on the organism you are working with, it's not totally surprising that a lot of reads map to introns.
      Second, if you have a lot of genes with different isoforms in your sample, the number of "intronic reads" may be influenced by the annotation file you are using.

      There is at least one easy way I can think of to get non-exon regions from a BAM file. bedtools intersect (http://bedtools.readthedocs.org/en/l...intersect.html) allows you to select for reads that don't overlap defined regions (-v parameter). But, you will eventually get the inter-gene reads as well... So you would actually need to define gene regions first (maybe from 5'UTR start to 3'UTR end) and then use this file together with an exon defining file in bedtools intersect -v. This will give you an intron-only file which you can use for detecting unequal mapping distributions.

      Comment

      • ClemBuntu
        Member
        • Dec 2014
        • 37

        #4
        Hello,

        Thank you guys for your answers, all I have is a GTF file with the transcripts coordinates (3th column contains only "CDS" "exon" "start_codon" and "stop_codon") so bedtools intersect with -v option seems more suitable for me.

        Do you think a grep "*_codon" on my transcripts file will be do the trick to have only the gene regions ?

        So if I well understood I should do something like that :
        bedtools intersect -abam -a myfile.bam -b onlyGeneCoordinate.gtf > bamVSgene.bed #first I want the intersection between my reads and genes

        bedtools intersect -v -abam -a bamVSgene.bed -b genesAndTranscripts.gtf > intronOnlyFile.bed #filter the exonic regions

        bedtools intersect -abam -a myfile.bam -b intronOnlyFile.bed > onlyIntrons.bed #finally get only the intronic reads

        I'm not sure the 2nd step will work because there is not intronic regions in the "genesAndTranscripts.gtf" file.

        Comment

        • minie
          Junior Member
          • Aug 2016
          • 1

          #5
          Hi how did you get the intron.bed file? I have gff/gtf file with transcripts/exon/gene/cds information snd trying to parse intronic region. any help ?

          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
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-28-2026, 09:51 AM
          0 responses
          14 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...