rename sample in GVCF file
AnsweredHiya,
I have been trying to rename sample in single sample GVCF using the picard RenameSampleInVcf function. However it gives me ERROR: Invalid argument '50'.
Input: picard RenameSampleInVcf \
I=Pathtoinput.g.vcf \
O=/Pathtooutput.g.vcf \
OLD_SAMPLE_NAME=sample 50 \
NEW_SAMPLE_NAME=sample 1050;
-
Hi Bekah W,
I think the issue is coming from the space in your sample name 'sample 50'. You could try specifying the sample name with single quotes so that the program reads the name correctly. For best practices, I would not recommend having a space in your sample name, it can cause many issues when manipulating your files.
Best,
Genevieve
-
Cheers I realised it was actually just labelled 50 and not sample 50, it still didnt like this, so just removed the old name option entirely and it ran fine! Thank you, Best wishes, Bekah
-
Good news! Thanks for the update!
Please sign in to leave a comment.
3 comments