0

I have installed bioconda following the instructions at https://bioconda.github.io/user/install.html#set-up-channels. Then I tried

conda install bwa
conda install bcftools
conda install plink2

They all installed fine. However, when I tried

conda install bcftools-gtc2vcf-plugin

or

conda install -c bioconda bcftools-gtc2vcf-plugin 

as instructed at https://bioconda.github.io/recipes/bcftools-gtc2vcf-plugin/README.html, I got errors as follows:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

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

  - bcftools-gtc2vcf-plugin

Current channels:

  - https://conda.anaconda.org/bioconda/osx-64
  - https://conda.anaconda.org/bioconda/noarch
  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch

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.

Any help would be highly appreciated.

Thanks in advance!

1 Answers1

0

I would advise (as of 2020-01-06) not to use the bcftools-gtc2vcf-plugin as it is an old version missing many features compared to the current version. I would advise either to compile from source (https://github.com/freeseek/gtc2vcf) or alternatively to download pre-compiled binaries (https://personal.broadinstitute.org/giulio/gtc2vcf) that should work on systems with ≥GLIBC_2.3 installed (and making sure you are running the latest version of BCFtools)

If you get the error:

No functional bcftools plugins were found in
    BCFTOOLS_PLUGINS="/Users/moxu/xbin/seq/bcftools/plugins".

- Is the plugin path correct?

- Run "bcftools plugin -lv" for more detailed error output.

Could not load "gtc2vcf".

(a bcftools plugin bug that the maintainers will fix soon), can you try to run one of the following commands instead:

$ bcftools plugin gtc2vcf -vv
$ bcftools +gtc2vcf -vv
$ bcftools plugin /Users/moxu/xbin/seq/bcftools/plugins/gtc2vcf.so -vv
$ bcftools +/Users/moxu/xbin/seq/bcftools/plugins/gtc2vcf.so -vv

You should get a reason for why the plugin is not loading. A typical error message could look like this:

/Users/moxu/xbin/seq/bcftools/plugins/gtc2vcf.so:
    dlopen   .. /lib64/libc.so.6: version `GLIBC_2.3' not found (required by /Users/moxu/xbin/seq/bcftools/plugins/gtc2vcf.so)
Giulio Genovese
  • 2,761
  • 1
  • 15
  • 12
  • Very glad to get your reply! I downloaded the two .so files and put them in to the plugins subfolder of bcftools, set the BCFTOOLS_PLUGINS, but when I ran "bcftools +gtc2vcf", I got the following errors: No functional bcftools plugins were found in BCFTOOLS_PLUGINS="/Users/moxu/xbin/seq/bcftools/plugins". - Is the plugin path correct? - Run "bcftools plugin -lv" for more detailed error output. Then I ran "bcftools plugin -lv" and got the same error messages as above. BTW, my bcftools is htslib 1.9, and I assume it's the latest. Thanks so much! – Mousheng Xu Jan 08 '20 at 04:42
  • You will need bcftools 1.10 to run gtc2vcf – Giulio Genovese Jan 08 '20 at 19:05
  • I used bioconda to install bcftools and 1.9 is the version installed. However, I've written a Perl script to convert the GTC to 23andme format, and then use "bcftools convert --tsv2vcf" to convert the 23andme format file to VCF. Quite simple. – Mousheng Xu Jan 15 '20 at 02:06