Entering edit mode
4.1 years ago
curious
▴
820
I have been trying to subset a vcf by ids stored in a variable, is this even possible
IFS=
ids=$(bcftools query -f '%ID\n' my.vcf)
bcftools view -i "ID=@${ids}" my_other_vcf
error I get: -bash: /usr/local/bin/bcftools: Argument list too long`
what am I missing here? I realize this is probably more of a bash question sorry
Thanks I knew that would work I was just wondering if there is a way to store the values in a variable and avoid the temporary file