This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Segmentation fault in bcftools while changing the sample names

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

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

please try reorder arguments to see if it works?

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

1 answer

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,

Log in to answer this question.