Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shuffle -incl: Fall out of -incl include.bed file #1089

Open
chenludi opened this issue Apr 26, 2024 · 1 comment
Open

shuffle -incl: Fall out of -incl include.bed file #1089

chenludi opened this issue Apr 26, 2024 · 1 comment

Comments

@chenludi
Copy link

Dear developer,

I want to replace genomic blocks (A.bed) randomly on blocks of specified genomic regions (include.bed). However, the new genomic coordinates fall out of the "include.bed". human.genome

$cat A.bed
chr1 0 100
chr2 0 1000

$cat include.bed
chr1 200 203
chr1 204 400
chr1 300 325
chr2 2000 4000

$ head human.genome
chr1 240000000
chr2 240000000

$bedtools shuffle -i A.bed -g human.genome -chrom -incl include.bed
chr2 2811 2911
chr2 2666 3666

After shuffling, it exceeds the include.bed and the chromosome number was not kept. Did I misunderstand what the command does? Also, what if there is not enough room in include.bed to place the blocks in A.bed?

Thank you!
Best,
Chenlu

@chenludi
Copy link
Author

In addition, I used betools v2.30.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant