Skip to content

Commit

Permalink
Allow species as an easyconfig option for VEP easyblock
Browse files Browse the repository at this point in the history
  • Loading branch information
x0139045 committed Feb 1, 2024
1 parent b45512c commit 403bbaf
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion 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 @@ -98,7 +108,7 @@ def install_step(self):
# p: plugins
'--AUTO af',
# install selected species
'--SPECIES cyprinus_carpio_carpio',
'--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 403bbaf

Please sign in to comment.