hap.py
hap.py copied to clipboard
Hap.py not working with singularity
I ran hap.py in an interactive shell with singularity here are the commands I used
I can't install any modules as I am running this on an HPC environment
interactive
module load singularity/3.8.0
singularity run --env HGREF=/scratch/nyakar/Parabricks/Parabricks/hg38/hg38_all_sequences.fa --bind /scratch/nyakar/Parabricks:/home /scratch/nyakar/Parabricks/Parabricks/hap.py_latest.sif
/opt/hap.py/bin/hap.py -r ./hg38/hg38_all_sequences.fa --report-prefix happy.output --engine=vcfeval --threads 10 GIAB-Ash-002A_germline.vcf.gz HG002_GRCh38_1_22_v4.2.1_benchmark.vcf.gz -f Exome-IDT_V1V2_span50bp.bed
This is the error I got
zero exit status 1
2022-08-25 09:32:46,464 ERROR Traceback (most recent call last):
2022-08-25 09:32:46,465 ERROR File "/opt/hap.py/bin/hap.py", line 508, in
Not really sure what the issue is
I am successfully running hap.py on Singularity (or I am at least not receiving error messages).
I this in a two-step process (where the first command is only used once):
singularity pull docker://pkrusche/hap.py
singularity exec --bind $MOUNTIN:$MOUNTOUT hap.py_latest.sif /opt/hap.py/bin/hap.py $REF $TEST -f $BED -o $OUT -r $FA
Subfolders within $MOUNTIN directly appear within /mnt (which is $MOUNTOUT).
Does this help with running hap.py on Singularity?