I created a test tab delimited file regions.txt for chr1 and chr2 that looks as follows:
1 1 195471971
2 1 182113224
Column 1 corresponds to CHROM, column2 to POS and column3 to POS_TO. According to the corresponding documentation:
The columns of the tab-delimited file are: CHROM, POS, and, optionally, POS_TO, where positions are 1-based and inclusive.
For POS_TO I used the length of the chromosome.
Then I call bcftools and it is now running:
bcftools mpileup -Ou -f ref.fa samp1.bam samp2.bam --regions-file regions.txt | bcftools call -vmO z -o out.vcf.gz
Could you please tell me if the regions.txt was properly constructed in order to span fully each chromosome?
Thanks!