Split One Bam File Into Multiple Ones (One Per Feature From A Gff File)
1
1
Entering edit mode
12.9 years ago

Hi,

I've a bam file and a gff file containing features (like coordinates of ncRNA). Is it possible to split this bam file into multiple bam files to have one bam file per feature (And maybe specify parameters like -f in intersectBed )

Thanks a lot,

N.

bam split gff feature • 2.9k views
ADD COMMENT
2
Entering edit mode
12.9 years ago

loop over the features of your gff and use samtools view to save each bam.

Usage:   samtools view [options] in.bam region

Options: -b       output BAM
         -o FILE  output file name [stdout]
ADD COMMENT

Login before adding your answer.

Traffic: 888 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6