Dear Pierre, I get an error with separators :
makefile:13: * missing separator. Stop.
For this input makefile:
SHELL=/bin/bash BAMS=$(shell ls -1 *.bam) define run $$(addsuffix .vcf,$$(basename $(1))): $(1) samtools mpileup -d 18000 -L 18000 -f /home/fil/Desktop/new_reference_hg38/hg38.fa $$< | java -jar /home/fil/VarScan.v2.3.9.jar mpileup2indel --min-coverage 10 --min-avg-qual 15 --min-reads2 2 --min-var-freq 0.1 --min-freq-for-hom 0.85 --strand-filter 1 --p-value 0.1 --output-vcf 1 > $$@ endef all: $(addsuffix .vcf,$(basename ${BAMS})) $(eval $(foreach B,${BAMS},$(call run,${B})))
Could you help me where could be a problem? I know about make file problem with tab del. But if I used
cat -e -t -v makefile
I did not see any problem. Thank you.
Variant calling tools, like almost all tools, can be parallized with GNU parallel. A little more information about which tool you are using would be helpful though.