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

Fail to subset VCF file by chromosomes #2067

Open
MaayanYoles opened this issue Jan 4, 2024 · 3 comments
Open

Fail to subset VCF file by chromosomes #2067

MaayanYoles opened this issue Jan 4, 2024 · 3 comments

Comments

@MaayanYoles
Copy link

Hi,

My data consists of about 4000 subjects with a vcf file for each and the aim is to merge them all together and split by chromosomes.
I used "bcftools merge -m none -Oz -o output_file input_files" to merge them,
and "bcftools view -r chr_number input_path -Oz -o output_path" to split.

The merge went OK with no errors and a huge file made. When merging, still no raised errors, but it works only for the first 3 chromosomes. for the rest, a small file is made with the sample names and nothing more.

Would love some advice, since this makes no sense. worth noting - I checked the personal files and for sure they have all chromosomes in them.

Thank you so much,
Best,
Maayan

@pd3
Copy link
Member

pd3 commented Jan 4, 2024

What version of bcftools do you have? If it is the latest, would you be able to isolate the problem and create a minimal test case for us to reproduce? This would be a serious bug indeed.

@MaayanYoles
Copy link
Author

Fist of all, thank you so mach for the quick response!

I use bcftools 1.9, installed from bioconda about 2 weeks ago.

Maayan

@pd3
Copy link
Member

pd3 commented Jan 4, 2024

Uh, try with the latest version then and see if the problem persists
http://samtools.github.io/bcftools/howtos/install.html

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

No branches or pull requests

2 participants