This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to do batch processing with mpileup in a Linux shell for loop?

I want to make VCFs on a set of .sams (.bams):

for I in ls (*.sam) # calling variants on .sam files
do
    ./samtools mpileup -R -d | bcftools view -g - > test.vcf $i # what to write here correctly?
done
shell bash samtools

Hello elvissober!

We believe that this post does not fit the main topic of this site.

Please look up bash loops. Do not open multiple questions addressing the same question.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.