![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to extract unique hits from a sam file | gfmgfm | Bioinformatics | 10 | 07-07-2019 08:33 AM |
How to extract mapped and unmapped raw reads from bwa's sam file ? | vaibhavvsk | Bioinformatics | 11 | 02-07-2013 10:01 AM |
Fastest way to extract differing positions from each alignment in a BAM file | CHRYSES | Bioinformatics | 5 | 12-14-2011 12:28 PM |
Extract perfectly mapped reads from SAM/BAM file | Graham Etherington | Bioinformatics | 2 | 07-21-2011 08:27 AM |
Drag-and-drop alignment of sequences to form SAM file | Alex8 | Bioinformatics | 0 | 05-05-2011 01:10 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
not just another member
Location: Belgium Join Date: Aug 2010
Posts: 264
|
![]()
Hi,
All is in the title. I aligned small reads (~25nt) with bowtie on my reference genome and I've a GFF file with annotations. Is it possible to extract only the alignment that are in the gff file ? Thanks, N. |
![]() |
![]() |
![]() |
#2 |
Senior Member
Location: Germany Join Date: Oct 2008
Posts: 415
|
![]()
Bedtools or Galaxy should do it! Extract the SAM alignments according to the GFF coordinates.
R would also be an option. |
![]() |
![]() |
![]() |
#3 |
not just another member
Location: Belgium Join Date: Aug 2010
Posts: 264
|
![]()
how can I do that with R ?
|
![]() |
![]() |
![]() |
#4 |
not just another member
Location: Belgium Join Date: Aug 2010
Posts: 264
|
![]()
is this bedtools command correct ?
intersectBed -abam alignment.bam -b coordinates.gff > alignment_filtered.bam Thanks, N. EDIT > I found it : intersectBed -abam alignment.bam -b coordinates.gff -wa > alignment_filtered.bam Last edited by NicoBxl; 08-02-2011 at 05:47 AM. |
![]() |
![]() |
![]() |
#5 |
Senior Member
Location: Boston Join Date: Nov 2009
Posts: 224
|
![]()
The GFF format and bed format have the genomic coordinates in different columns, so you will have to fix that first.
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|