Compare a long list of BEDFiles against a whole genome/ chromosome ?
1
0
Entering edit mode
7.8 years ago
dearbbhyc • 0

Do you think it is possible for me to compare a list of BEDFiles against a whole genome or even chromosome? If so, How?

I am trying to compare a list of chromosomal regions to a whole genome CNV map and then count the number of gains and losses in these regions.

Hope someone can help.

Whole-Genome BioPython Bed • 1.2k views
ADD COMMENT
1
Entering edit mode

the answer is bedtools

ADD REPLY
0
Entering edit mode

Bedtools can be found here.

ADD REPLY
1
Entering edit mode
7.8 years ago

You could use bedmap to count overlapping elements, e.g. to count the number of elements in B that overlap regions in A:

$ bedmap --echo --count A.bed B.bed > answer.bed

Full documentation is available here: http://bedops.readthedocs.io/en/latest/content/reference/statistics/bedmap.html

ADD COMMENT

Login before adding your answer.

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