I have data from an experiment which is looking into differential expression of small RNA. It seems that a fraction of the reads are mapped outside of the annotated regions of the mouse genome (as listed in the Ensemble GTF file). To be honest, I am not expecting to find new genes in such a popular model organism but I am still curious where these reads map. I would like to produce statistics for each chromosome listing the number of reads that are mapped outside of the annotated regions. What's the easiest way to produce such statistics? I am using bowtie1, samtools and htseq-count in my current pipeline but so far I have always limited my analysis to the annotated regions so I am not sure how to best approach this - any advice is most welcome!
Seqanswers Leaderboard Ad
Collapse
Announcement
Collapse
No announcement yet.
X
-
If you have read alignments in bam format on the one hand and a gene annotation in gtf/gff/bed format on the other hand it should be simple to compare both with bedtools.
For instance something like "bedtools intersect -v -abam mapped_reads.bam -b exons.bed" should give you the reads that do not intersect any annotated exon (you can use entire gene regions if you prefer to discard intronic reads). Pipe this to "samtools view -c -" to get the number of reads.
More precisely:
Code:bam1=mapped_reads.bam bam2=intergenic_reads.bam annotation=annotated_genes.bed bedtools intersect -v -abam $bam1 -b $annotation > $bam2 samtools index $bam2
Code:for chr in `cat list_of_chromosomes.txt` ; do N=`samtools view -c $bam1 $chr` ; n=` samtools view -c $bam2 $chr` ; echo $chr $n $N ; done
Code:samtools idxstats $bam2
Latest Articles
Collapse
-
by seqadmin
Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...-
Channel: Articles
03-22-2024, 06:39 AM -
-
by seqadmin
The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.
Avian Conservation
Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...-
Channel: Articles
03-08-2024, 10:41 AM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, Yesterday, 06:37 PM
|
0 responses
10 views
0 likes
|
Last Post
by seqadmin
Yesterday, 06:37 PM
|
||
Started by seqadmin, Yesterday, 06:07 PM
|
0 responses
9 views
0 likes
|
Last Post
by seqadmin
Yesterday, 06:07 PM
|
||
Started by seqadmin, 03-22-2024, 10:03 AM
|
0 responses
49 views
0 likes
|
Last Post
by seqadmin
03-22-2024, 10:03 AM
|
||
Started by seqadmin, 03-21-2024, 07:32 AM
|
0 responses
67 views
0 likes
|
Last Post
by seqadmin
03-21-2024, 07:32 AM
|
Comment