This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to rewrite convert2bed function from BEDOps using GNU parallel for batch processing?

How to rewrite convert2bed function from BEDOps using GNU parallel for batch processing?

Here is the code I have tried (not working (it can`t see the input):

parallel './convert2bed --input=vcf < {} > {.}.converted_BED.bed' :::*.vcf

However, it works without GNU parallel:

./convert2bed --input=vcf < SRR5152948_filter.recode.vcf > SRR5152952_converted_BED.bed

Need help how to apply GNU parallel engine correctly.

Thx.

convert2bed bedops parallel

1 answer

ls *.vcf > samples
parallel './convert2bed --input=vcf < {} > {}.converted_BED.bed' <samples

Note: Not tested with bedops

Log in to answer this question.