Genome Analysis Toolkit

Variant Discovery in High-Throughput Sequencing Data

GATK process banner

Need Help?

Search our documentation

Community Forum

Hi, How can we help?

Developed in the Data Sciences Platform at the Broad Institute, the toolkit offers a wide variety of tools with a primary focus on variant discovery and genotyping. Its powerful processing engine and high-performance computing features make it capable of taking on projects of any size. Learn more

Error import gcnvkernel during GATK-SV cohort mode on local HPC

0

8 comments

  • Avatar
    Gökalp Çelik

    Hi Le Qi

    Docker nightly images may cause certain issues and they are not recommended to be used unless there is a very specific need or an advice from the developer team. Can you try running your workflow using the image from hub.docker.com ?

    docker pull broadinstitute/gatk:4.4.0.0

    This is the official stable image that is supported currently. 

    Regards. 

    0
    Comment actions Permalink
  • Avatar
    Le Qi

    Hi Gökalp Çelik

    Thanks for your suggestions. I've tried to import gcnvkernel after running this version of gatk docker and it still shows the same error. Maybe I'm missing something else and I'm running the whole trainGCNV workflow using the stable version of gatk.

    0
    Comment actions Permalink
  • Avatar
    Gökalp Çelik

    Hi Le Qi

    You seem to hit the problem of not having access to the temporary folder in the docker container which is only accessible by the root account. 

    Can you modify your Singularity configuration or whatever you are using to run containers to have the environment variable 

    THEANO_FLAGS="base_compiledir=/path/to/temporary/folder"
     
    to point to a temporary folder where your user has access and read, write and execute permissions?
     
    Regards. 
    0
    Comment actions Permalink
  • Avatar
    Le Qi

    Hi Gökalp Çelik

    I tried the new environmental variable. I have the same errors and I can see the cache files generated in the specified path when I just try to import gcnvkernel. I had similar cache files generated in previous runs as well in $HOME. 

    Running the whole workflow with the stable docker gave me the same error again.

    0
    Comment actions Permalink
  • Avatar
    Gökalp Çelik

    Hi Le Qi

    By the current status of the workflow GATK-SV workflow is not supported on any other platform but GCP. So we may not be able to solve all your issues related to this workflow specifically on your platform. Still your container instance shows a username other than the root user therefore not only THEANO temporary folder but also gatk temporary folder access might be causing additional issues. Can you share your trainGCNV.wdl file may be we can pinpoint some additional spots for errors?

    One last suggestion. It was indicated in our github issues pages that singularity instances do not automatically initialize the gatk conda environment as in docker runtime. Can you try

    conda activate gatk 

    command before python -c "import gcnvkernel" ? Of course pay attention to the THEANO_FLAGS for proper compilation of temporary files. 

    0
    Comment actions Permalink
  • Avatar
    Le Qi

    Hi Gökalp Çelik

    I managed to activate gatk conda environment and set THEANO_FLAGS environmental variable, but import gcnvkernel still showed the same error. I've successfully adopted the previous 2 steps (GatherSampleEvidenceBatch and EvidenceQC) on my platform, therefore I'm guessing accessing GATK temporary folder is probably not the problem.

    Let me try a small dataset on Terra and get back to you.

    0
    Comment actions Permalink
  • Avatar
    Le Qi

    Hi Gökalp Çelik

    The workflow works fine on Terra and on my own MacOS with docker, which is not allowed on our HPC. I think the problem is with singularity somehow. I managed to get around the problem using udocker. 

     

    0
    Comment actions Permalink
  • Avatar
    Gökalp Çelik

    Hi Le Qi

    It is good to hear that you have found the solution already. Normally GATK docker images are not tested against singularity runtime therefore the team cannot approve of its use instead of the official docker runtime. However some users have successful results with some of the tools but not every tool is supposed to run the same. 

    Thank you for sharing your solution with everyone. 

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk