How To Use R To Segment Genome And Count Reads From Sequencing Data?
1
0
Entering edit mode
12.1 years ago
C Shao ▴ 140

Hi everyone:

I have some whole-genome sequencing data, now I would like to segment human genome (1:22, X,Y) to nonoverlap equal size bins and count reads within it, defining by the location of fire base of one read.

What to do this only through R?

I am trying Rsamtools but didn't get any solution. Could some help me on this?

Thanks

• 3.6k views
ADD COMMENT
1
Entering edit mode
12.1 years ago
Michael 55k

In addition to Rsamtools to read your bam file you will need the IRanges package, have a look at the countOverlaps function, and the function successiveIRanges to generate interval bins. If you are experiencing problems, please post a code example to improve.

ADD COMMENT

Login before adding your answer.

Traffic: 1301 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