-
Notifications
You must be signed in to change notification settings - Fork 260
Description
Hi bcftools Team,
thank you very much for this very useful tool!
I am currently trying to run the sequence of mpileup | call using a sample level grouping. I want to use all present samples in the original BAM file, for mpileup I used -s "^notinhere", is there a more elegant solution? I tried running with -s without any specified sample list, however this seemed to result in messed up argument parsing.
Also, once I pipe the output into bcftools call, the -s "^notinhere" strategy doesn't seem to work, resulting in the following error:
"Warning: No such sample in the VCF: ^notinhere"
If I manually specify all the samples in the original bam file it seems to work. Following is the full command (quoting / unquoting the sample argument doesn't seem to have an effect):
bcftools mpileup -Ou -s "^notinhere" -f .../genome.fa STAR_out/Aligned.sortedByCoord.out.bam | bcftools call -s "^notinhere" -mv -Oz -o calls_samples.vcf.gz
Version Used: 1.7, though I also tested with 1.21 and got the same errors.
Best