Skip to content

Storing mutations on the ARG #2

@hyanwong

Description

@hyanwong

The ARG-Needle docs imply that mutations can be stored on the ARG, e.g. they say "arg2tskit does convert mutations.". However, when I run ARG-needle on real data, e.g. via the arg_needle_prepare_example command, the resulting .argn file does not seem to contain any mutations:

import arg_needle_lib
argneedle_arg = arg_needle_lib.deserialize_arg("example.argn")
arg_needle_lib.get_mutations_matrix(argneedle_arg)

Gives:

RuntimeError: /Users/runner/work/arg-needle-lib/arg-needle-lib/src/arg_utils.cpp:714: Need pre-existing mutations to run! Try generate_mutations_and_keep.

Note that there is no arg_needle_lib.generate_mutations_and_keep function (although there is an arg_needle_lib.generate_mutations function.

How can I place the mutations used during ARG inference on the ARG (and can this detail be added to the docs?)

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