BEDtools intersect unable to open file
Maybe someone experienced this before (BEDtools v.2.26.0)
Having a folder with a BED file and a number of VCF file, aiming to intersect:
bedtools intersect -c -a tmp.bed -b *.vcf > counted.txt
Error message on macOS 10.12.5:
"Error: Unable to open file RG142.snp.LOH_Ex1KG_sorted.vcf. Exiting."
The same command with the exact same commands files works perfectly fine on our CentOS HPC cluster.
As I have no idea where to start debugging, suggestions are appreciated.
• 3,750 views
•
link
1 answer
Another way:
$ for fn=`ls *.vcf`; do convert2bed --input=vcf --sort-tmpdir=$PWD ${fn} > ${fn}.bed; done
$ bedmap --count tmp.bed <(bedops -u *.vcf.bed) > counted.txt
$ rm *.vcf.bed
• 0 views
•
link
Log in to answer this question.
what are the outputs of:
and
Output is the same on macOS and CentOS.
My bash_profile contains: