Entering edit mode
3.5 years ago
Filago
▴
100
Hello,
I want to process a VCF-file with bcftools. Amongst other things I want to:
use multiple commands in one line of code e.g. bcftools annotate + bcftools view --> (How) is this possible?
filter for multiple bed-file regions. Can I do this in one line of code? --> e.g. bcftools view -R file1.bed -R file2.bed -o output?
Best,
Andreas
Hey, I tried now the piping, but the following error occurs: "Failed to read from standard input: not compressed with bgzip", which does not arise if I split the commands into several lines. Any suggestions?
There may be a
-
missing from original answer. Can you try:bcftools annotate --some-args in.bcf | bcftools view -s sample - > out.bcf
. If that is not the command you are having problem with then post the command you are using.Here you can find a simplified version of my command:
or
Both commands lead to the same named error.
Thanks for your help!
Andreas