You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I pass region in one chromosome which I want to exclude, access command excludes that region from all chromosomes. It can be seen it in access-exclude.bed file.
I run command on dummy files (5 chromosomes, start 0, end 1000):
I get access-excludes.test.bed:
chr1 200 1000
chr2 200 1000
chr3 200 1000
chr4 200 1000
chr5 200 1000
Also, it is only possible to exclude regions from the start or from the end of chromosome. If I pass some regions from the middle, nothing happens in access-excludes.test.bed.
Hi, thank you for reporting this! This is indeed a bug, I've submitted a PR to fix it in #581.
The bug only manifests itself when all chromosomes in excludes.bed appear only once. So until the PR is merged, you can work around the bug by duplicating a row (any row) in that file. For example, if you populate it with:
And regarding your second question about the region in the middle of the chromosome: this actually works as intended. If the remaining access regions are separated by less than MIN_GAP_SIZE, they are joined. So when [200, 400] is subtracted from [0, 1000], you get two regions [0, 200] and [400, 1000], which are only separated by 200 bases, so they are joined back together into [0, 1000].
Hi,
When I pass region in one chromosome which I want to exclude, access command excludes that region from all chromosomes. It can be seen it in access-exclude.bed file.
I run command on dummy files (5 chromosomes, start 0, end 1000):
cnvkit.py access test.fa -x excludes.bed -o access-excludes.test.bed
For example excludes.bed is:
chr2 0 200
I get access-excludes.test.bed:
chr1 200 1000
chr2 200 1000
chr3 200 1000
chr4 200 1000
chr5 200 1000
Also, it is only possible to exclude regions from the start or from the end of chromosome. If I pass some regions from the middle, nothing happens in access-excludes.test.bed.
excludes.bed
chr2 200 400
access-excludes.test.bed
chr1 0 1000
chr2 0 1000
chr3 0 1000
chr4 0 1000
chr5 0 1000
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: