Segmentation fault in bcftools while changing the sample names
1
0
Entering edit mode
3.7 years ago
kumar.vinod81 ▴ 340

Hi, Actually I've a .vcf file containing 800 samples but the sample's names in the file are very long so I want to change them with a new file containing the new name in a txt file with following command:

bcftools reheader --samples sample_id.txt filtered_uncomp.vcf -o filtered_name_changed.vcf

but it return the following

Segmentation fault

Sample name are saved in a .txt file with one sample name in each line.

Any suggestion!

Thanks,

vcftools bcftools • 2.0k views
ADD COMMENT
0
Entering edit mode

try renaming fewer (or even a single sample first) - see how that works out, if it does work then one of you names causes problems and will need to find which

ADD REPLY
0
Entering edit mode

what's the version of bcftools ?

ADD REPLY
0
Entering edit mode

please try reorder arguments to see if it works?

bcftools reheader --samples sample_id.txt -o filtered_name_changed.vcf filtered_uncomp.vcf
ADD REPLY
3
Entering edit mode
3.7 years ago
kumar.vinod81 ▴ 340

Thanks all, actually there was a white space in one of the names in sample_id.txt, I removed it and it worked fine. Even I tried to remove the post just after 5 minutes of posting it but I could not find a delete button. Thanks,

ADD COMMENT

Login before adding your answer.

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