Hi, there
I referred to the article below.
https://ngc.nvidia.com/catalog/containers/hpc:parabricks
And ran the pbrun tools via docker.
When I executed the fq2bam tool, the log shows that
“The license file license.bin was not found in the installation folder”
$ docker run --rm -v /home/anonymous/software/parabricks/license.bin:/opt/parabricks/license.bin -v /home/anonymous/parabricks/dataset/D99999_S99_L001/:/dataset/ nvcr.io/hpc/parabricks:v2.5.0 fq2bam --ref /dataset/human_g1000_v37_decoy.fasta --in-fq /dataset/D99999_S99_L001_R1.fastq.gz /dataset/D99999_S99_L001_R2.fastq.gz --out-bam /dataset/out.bam
[Parabricks Options Mesg]: Checking argument compatibility
[Parabricks Options Mesg]: Automatically generating ID prefix
[Parabricks Options Mesg]: Read group created for /dataset/D99999_S99_L001_R1.fastq.gz and
/dataset/D99999_S99_L001_R2.fastq.gz
[Parabricks Options Mesg]: @RG\tID:000000000-C54LP.1\tLB:lib1\tPL:bar\tSM:sample\tPU:000000000-C54LP.1
License file license.bin not found in installation folder or passed in as argument
Please contact support@parabricks.com for any questions. Exiting...
I tried to solve this case in different ways, but all failed…
including putting the license.bin
in
- /opt/parabricks/license.bin
- /parabricks/license.bin
- /usr/local/nvidia/bin/license.bin
- /usr/local/cuda/bin/license.bin
- /dataset/license.bin
And, the following config was from the container I executed.
$docker inspect container_id
"Mounts": [
{
"Type": "bind",
"Source": "/home/anonymous/software/parabricks/license.bin",
"Destination": "/parabricks/license.bin",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/home/anonymous/parabricks/dataset/D99999_S99_L001",
"Destination": "/dataset",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "a2c2b59ded40",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"CUDA_VERSION=9.0.176",
"CUDA_PKG_VERSION=9-0=9.0.176-1",
"LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64",
"NVIDIA_VISIBLE_DEVICES=all",
"NVIDIA_DRIVER_CAPABILITIES=compute,utility",
"NVIDIA_REQUIRE_CUDA=cuda>=9.0",
"ENV=~/.profile"
],
"Cmd": [
"fq2bam",
"--ref",
"/dataset/human_g1000_v37_decoy.fasta",
"--in-fq",
"/dataset/D99999_S99_L001_R1.fastq.gz",
"/dataset/D99999_S99_L001_R2.fastq.gz",
"--out-bam",
"/dataset/out.bam"
],
"Image": "nvcr.io/hpc/parabricks:v2.5.0",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/parabricks/run_pipeline.py"
],
"OnBuild": null,
"Labels": {
"com.nvidia.cuda.version": "9.0.176",
"com.nvidia.volumes.needed": "nvidia_driver",
"maintainer": "NVIDIA CORPORATION <cudatools@nvidia.com>"
}
},
Therefore, I would like to know how to configure license.bin
in the container in the right way.