Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qiuting Zhang
    Junior Member
    • Jan 2024
    • 1

    #1

    Trouble Running VEP in Conda Environment Due to Perl DBD::mysql Error

    Hello SEQanswers Community,

    I am currently facing issues with running the Variant Effect Predictor (VEP) and vcf2maf in a Conda environment due to a Perl-related error.

    Installation Steps: I installed VEP and vcf2maf using Conda with the following commands, and everything installed without any problems:
    ```
    conda create -n vcf2maf -y python=3.8
    conda activate vcf2maf
    conda install -y -c bioconda vcf2maf
    conda install -y -c bioconda ensembl-vep
    conda install -y -c bioconda samtools
    vcf2maf.pl --help
    vep --help
    samtools -v
    perl -e '{print join"\n",@INC}
    ```
    Cache Installation: I then installed the cache for VEP using these commands:
    ```
    export VEP_PATH=$HOME/vep
    export VEP_DATA=$HOME/.vep
    mkdir -p $VEP_PATH $VEP_DATA
    cd $VEP_PATH
    vep_install -a cf -s homo_sapiens -y GRCh38 -c $VEP_PATH --CONVERT
    # downloading ftp://ftp.ensembl.org/pub/release-88..._GRCh38.tar.gz
    cd $HOME/.vep nohup wget
    ftp://ftp.ensembl.org/pub/release-10..._GRCh38.tar.gz &
    tar zxvf homo_sapiens_vep_101_GRCh38.tar.gz
    ```
    However, when I tried to test run VEP with the following command:
    ```
    vep --help
    # By default the VEP uses $HOME/.vep/
    vep -i test_varscan.vcf -o test.vcf \
    --cache --dir_cache $HOME/vep --force_overwrite --assembly GRCh38 --vcf
    ```
    I encountered the following error:
    ```
    perl: relocation error: /public2/qiuting/.conda/envs/vcf2maf/lib/perl5/site_perl/5.22.0/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so:symbol mysql_options4, version libmysqlclient_18 not defined in file libmysqlclient.so.18 with link time reference
    ```
    To resolve this, I tried:
    ```
    cpanm DBD::mysql
    conda install -c conda-forge perl-dbd-mysql
    ```
    Unfortunately, these attempts did not resolve the issue, and the same error occurred.

    I am not very familiar with Perl and its modules. Could anyone please help me solve this issue? Any suggestions or insights would be greatly appreciated!

    Thank you in advance!​
  • jgreenbaum
    Junior Member
    • Aug 2011
    • 3

    #2
    For the sake of running a quick test, I followed the steps you outlined in the condaforge/mambaforge Docker container with a small genome reference and I was not able to reproduce the issue. I noticed though that the conda environment that is created doesn't seem to have the mysqlclient libraries installed. I wonder if the issue is that the DBD::mysql library is using a system libmysqlclient.so rather than something inside the conda environment? Maybe try
    Code:
    conda install mysqliclient

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
      by SEQadmin2




      NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
      Today, 06:46 AM
    • SEQadmin2
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      10-14-2026, 09:55 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 10-28-2026, 09:57 AM
    0 responses
    22 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-28-2026, 09:51 AM
    0 responses
    14 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 11:13 AM
    0 responses
    67 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    47 views
    0 reactions
    Last Post SEQadmin2  
    Working...