Skip to content

Why --vep_n_forks can't be 1? #289

@i-pletenev

Description

@i-pletenev

Dear PCGR/CPSR developers,

While running CPSR, I encountered an error:

"cpsr-validate-input-arguments-a - ERROR - Number of forks that VEP can use during annotation must be above 1 and not more than 8 (recommended is 4), current value is 1"

Indeed, looking at the code, it seems that vep_n_forks = 1 is not in the allowed range:

pcgr/pcgr/arg_checker.py

Lines 559 to 564 in 4b0408b

if int(arg_dict['vep_n_forks']) <= int(pcgr_vars.VEP_MIN_FORKS) or \
int(arg_dict['vep_n_forks']) > int(pcgr_vars.VEP_MAX_FORKS):
err_msg = (
f"Number of forks that VEP can use during annotation must be above {str(pcgr_vars.VEP_MIN_FORKS)} and not "
f"more than {str(pcgr_vars.VEP_MAX_FORKS)} (recommended is 4), current value is {arg_dict['vep_n_forks']}"
)

(VEP_MIN_FORKS = 1)

I am running many samples, each using a single cpu core. I was wondering if you could allow vep_n_forks = 1?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions