Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for VCF/BCF datatypes #4477

Merged
merged 3 commits into from
Aug 25, 2017
Merged

Conversation

nsoranzo
Copy link
Member

  • Alias bcf_bgzip datatype to bcf. Since https://bitbucket.org/galaxy/galaxy-central/pull-requests/353 (only) compressed BCF files have been sniffed as bcf, so the bcf_bgzip datatype (introduced 2 years later in Bcf.gz to bcf (and reverse) converters + bcf_bgzip data type #1148 ) is an unused duplicate.
  • Add a distinct bcf_uncompressed datatype (and converters) for the rare cases when it may be useful.
  • Fix vcf_bgzip datatype. In Vcf gz datatype #4254 vcf_bgzip was made a proper datatype with the introduction of the VcfGz class, but was still described as a subclass in datatypes_conf.xml . Also fix file_ext attribute in BaseVcf and subclasses.
  • Add requirement for bcftools to set_metadata tool.
    The bcftools binary is used by the set_meta() method of the Bcf datatype class. Having a <requirement> for it in the set_metadata tool makes it possible to use conda to resolve the dependency instead of forcing the admin to install bcftools on the PATH of the Galaxy user.
    This will also fix errors like https://travis-ci.org/galaxyproject/tools-iuc/jobs/266923024#L1994 when running
    planemo test --conda_dependency_resolution --conda_auto_install
    

…rters

Since https://bitbucket.org/galaxy/galaxy-central/pull-requests/353
(only) compressed BCF files have been sniffed as `bcf`, so the `bcf_bgzip`
datatype (introduced 2 years later in
galaxyproject#1148 ) is an unused duplicate.

This adds also a distinct `bcf_uncompressed` datatype (and converters) for
the rare cases when it may be useful.
In galaxyproject#4254 `vcf_bgzip` was made
a proper datatype with the introduction of the `VcfGz` class, but was
still described as a subclass in `datatypes_conf.xml` .

Also fix `file_ext` attribute in `BaseVcf` and subclasses.
The `bcftools` binary is used by the `set_meta()` method of the `Bcf`
datatype class. Having a `<requirement>` for it in the set_metadata tool
makes it possible to use conda to resolve the dependency instead of
forcing the admin to install `bcftools` on the PATH of the Galaxy user.

This will also fix errors like
https://travis-ci.org/galaxyproject/tools-iuc/jobs/266923024#L1994
when running
```
planemo test --conda_dependency_resolution --conda_auto_install
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants