How to rewrite convert2bed function from BEDOps using GNU parallel for batch processing?
1
0
Entering edit mode
6.3 years ago

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.5k views
ADD COMMENT
0
Entering edit mode

You might use the bam2bed_gnuParallel helper script as a basis for something that is tested: https://github.com/bedops/bedops/blob/master/applications/bed/conversion/src/wrappers/bam2bed_gnuParallel

ADD REPLY
0
Entering edit mode
6.3 years ago
jean.elbers ★ 1.7k
ls *.vcf > samples
parallel './convert2bed --input=vcf < {} > {}.converted_BED.bed' <samples

Note: Not tested with bedops

ADD COMMENT

Login before adding your answer.

Traffic: 2095 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6