Skip to content

vcf2fastsmc_in_parallel() takes 2 positional arguments but 5 were given #4

@plubbe

Description

@plubbe

When trying to run HapNe-IBD as recommended by guidelines on a standard set of human WGS (n=25), using the provided code in a file called split_vcf_chr_arm.py:
split_vcf(vcf_file='./vcf_phased', save_in='./split_by_chr_arm/', keep=None, genome_build='grch38')

which is called by a bash script (for purposes of remote cluster computing): python split_vcf_chr_arm.py

I receive the following error:
Traceback (most recent call last): File "split_vcf_chr_arm.py", line 2, in <module> split_vcf(vcf_file='vcf_phased', \ File "~/HapNe/lib/python3.12/site-packages/hapne/convert/tools.py", line 213, in split_vcf vcf2fastsmc_in_parallel(ii, vcf_file, save_in, keep, genome_build) TypeError: vcf2fastsmc_in_parallel() takes 2 positional arguments but 5 were given

I managed to correct this by slightly modifying the original vcf2fastsmc_in_parallel in tools.py (to accept more than 2 arguments), but thought perhaps the devs would like to rectify the code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions