Skip to content

multiple chromosomes (eg with SLiM v5) #1747

@petrelharp

Description

@petrelharp

In SLiM v5 it is easy to simulate multiple chromosomes at once; it would be nice to do this. Along the way we'd get sex chromosomes in (💯 ).

At first look, just allowing a list of contigs would suffice:

engine.simulate(model, [contig1, contigX, ...], samples)

since everything we'd need to do the simulation would be attributes of contigs.

However, @jeffspence notes that some things (like add_dfe) naturally act on a bunch of chromosomes at once: so, maybe we have a class like ContigSet that is basically a list of contigs but can do like

ContigSet.add_dfe(interval_dict, DFE)

where interval_dict is a dict of intervals, with keys the IDs of chromosomes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions