Entering edit mode
5.4 years ago
jvijai
★
1.2k
I want to write out each line of BED (region) to its own vcf using tabix
Here is what I was attempting, but its not working
awk '{print $1":"($2+1)"-"$3}' CHR21_RegionsforBeagle.bed | xargs -n1 tabix -fh {} 21.ACANAFCR_sorted.vcf.gz >Chr{}.sorted.vcf
I am not sure I am using the {} in xargs properly.
The error I get
[E::hts_open_format] Failed to open file {}
Could not read {}
Removed by the author.