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

java.lang.RuntimeException: A required Python package ("gcnvkernel") could not be imported into the Python environment.

0

6 comments

  • Avatar
    Gökalp Çelik

    Hi Beetle

    Have you tried installing miniconda3 and later the gatk environment using the command and the yml file?

    conda create -f gatkcondaenv.yml

    This command installs the gatk python environment for GermlineCNVCaller tools and NVScoreVariants(new for 4.6.1.0)/CNN(deprecated now. only for 4.6.0.0 and earlier). Without this python environment gcnvkernel and its dependencies cannot be resolved and used properly. Our docker image contains this environment by default and works out of the box. If you are unable to install this environment we suggest you to try the docker image. 

    I hope this helps.

    Regards. 

    0
    Comment actions Permalink
  • Avatar
    Beetle

    Hi Gökalp Çelik

    thanks for the quick reply. 

     

    I found this file : https://github.com/broadinstitute/gatk/blob/master/scripts/gatkcondaenv.yml.template

     

    Is this the same file you were referring ?

    I typed the following command: 

    conda create -n "gatk"
    conda activate gatk
    conda create -f gatkcondaenv.yml -n gatk

    Channels:
     - conda-forge
    Platform: linux-64
    Collecting package metadata (repodata.json): done
    Solving environment: failed

    PackagesNotFoundError: The following packages are not available from current channels:

      - gatkcondaenv.yml

    Current channels:

      - https://conda.anaconda.org/conda-forge

    To search for alternate channels that may provide the conda package you're
    looking for, navigate to

        https://anaconda.org

    and use the search bar at the top of the page.

    $

     

    I had also tried this: 

    conda install bioconda::gatk

    but it didn't work. 

    I had tried with udocker which didn't work. But I don't know if they are the same . I can try with docker. 

    0
    Comment actions Permalink
  • Avatar
    Beetle
    conda install bioconda::gcnvkernel

    Channels:
     - conda-forge
     - bioconda
    Platform: linux-64
    Collecting package metadata (repodata.json): done
    Solving environment: \ warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
    failed

    LibMambaUnsatisfiableError: Encountered problems while solving:
      - nothing provides toolchain_c_linux-64 needed by theano-1.0.3-py27hfc679d8_1

    Could not solve for environment specs
    The following packages are incompatible
    ├─ gcnvkernel is installable with the potential options
    │  ├─ gcnvkernel 0.7 would require
    │  │  └─ theano with the potential options
    │  │     ├─ theano [0.8.2|0.9.0|...|1.0.4] would require
    │  │     │  └─ python [2.7* |>=2.7,<2.8.0a0 ], which can be installed;
    │  │     ├─ theano 0.8.2 would require
    │  │     │  └─ python 3.4* , which can be installed;
    │  │     ├─ theano [0.8.2|0.9.0|1.0.1|1.0.2|1.0.3] would require
    │  │     │  └─ python [3.5* |>=3.5,<3.6.0a0 ], which can be installed;
    │  │     ├─ theano [0.8.2|0.9.0|1.0.1] would require
    │  │     │  └─ python 3.6* , which can be installed;
    │  │     ├─ theano [1.0.2|1.0.3|1.0.4|1.0.5] would require
    │  │     │  └─ python >=3.6,<3.7.0a0 , which can be installed;
    │  │     ├─ theano 1.0.3 would require
    │  │     │  └─ toolchain_c_linux-64, which does not exist (perhaps a missing channel);
    │  │     ├─ theano [1.0.3|1.0.4|1.0.5] would require
    │  │     │  └─ python >=3.7,<3.8.0a0 , which can be installed;
    │  │     ├─ theano [1.0.4|1.0.5] would require
    │  │     │  └─ python >=3.8,<3.9.0a0 , which can be installed;
    │  │     ├─ theano 1.0.5 would require
    │  │     │  └─ python >=3.10,<3.11.0a0 , which can be installed;
    │  │     └─ theano 1.0.5 would require
    │  │        └─ python >=3.9,<3.10.0a0 , which can be installed;
    │  ├─ gcnvkernel 0.8 would require
    │  │  └─ intel-openmp 2019.4.* , which does not exist (perhaps a missing channel);
    │  ├─ gcnvkernel 0.8 would require
    │  │  └─ intel-openmp, which does not exist (perhaps a missing channel);
    │  └─ gcnvkernel 0.9 would require
    │     └─ python 3.10.13.* , which can be installed;
    └─ pin-1 is not installable because it requires
       └─ python 3.13.* , which conflicts with any installable versions previously reported.

     

    0
    Comment actions Permalink
  • Avatar
    Beetle

    thanks i was able to install after downgrading python3 version. 

    0
    Comment actions Permalink
  • Avatar
    Gökalp Çelik

    Hi again. We do not recommend manual installing of components since many of them have specific version dependencies and results produced by different versions of those dependencies may be different from what is expected. 

    We recommend a fresh miniconda3 install and generating the environment directly from the yml file not by creating an empty one before. GATK versions 4.6 and below require python 3.6 dependent environment with theano and specific numpy versions however 4.6.1.0 requries a more recent one with Pytorch instead. 

    I hope this helps. 

    Regards. 

    0
    Comment actions Permalink
  • Avatar
    Beetle

    thanks i was able to install 4.6.1.0. using conda environment. 

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk