Skip to content

Commit

Permalink
Merge pull request #3121 from stevenvdb/20240131172634_new_pr_vep
Browse files Browse the repository at this point in the history
Install only selected species in VEP
  • Loading branch information
ocaisa authored Feb 1, 2024
2 parents b7acbf8 + 403bbaf commit 3df2035
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions easybuild/easyblocks/v/vep.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import easybuild.tools.environment as env
from easybuild.easyblocks.perl import get_major_perl_version
from easybuild.framework.easyblock import EasyBlock
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.build_log import print_warning
from easybuild.tools.filetools import apply_regex_substitutions
from easybuild.tools.modules import get_software_version, get_software_root
Expand All @@ -48,6 +49,15 @@ def __init__(self, *args, **kwargs):

self.api_mods_subdir = os.path.join('modules', 'api')

@staticmethod
def extra_options(extra_vars=None):
"""Extra easyconfig parameters specific to VEP easyblock."""
extra_vars = EasyBlock.extra_options(extra_vars)
extra_vars.update({
'species': ['all', "Comma-separated list of species to pass to INSTALL.pl", CUSTOM],
})
return extra_vars

def configure_step(self):
"""No custom configuration procedure for VEP."""
pass
Expand Down Expand Up @@ -97,8 +107,8 @@ def install_step(self):
# l: Bio::DB::HTS, should be provided via EasyBuild
# p: plugins
'--AUTO af',
# install all species
'--SPECIES all',
# install selected species
'--SPECIES %s' % self.cfg['species'],
# don't update VEP during installation
'--NO_UPDATE',
# location to install Perl API modules into
Expand Down

0 comments on commit 3df2035

Please sign in to comment.