Skip to content

Implement default behaviour for alignments once reference_sequence is implemented #1888

Closed

Description

@jeromekelleher

As discussed #146 we want to support the idea of reference sequences being associated with/stored in a tree sequence. The default behaviour of the alignments function should be updated to use this correctly.

A first pass at this might be (without knowing the full details of how we implement reference sequences yet)

  • If no reference is associated with the tree sequence, fill in the gaps with the missing data character.
  • Otherwise, use the reference sequence.

As of #1825 the default is to raise a ValueError if an explicit reference_sequence is not supplied.

Activity

  1. added
    enhancement
    Python API
    on Nov 4, 2021
  2. added this to the Python upcoming milestone on Nov 4, 2021
  3. jeromekelleher commented on Nov 5, 2021

    @jeromekelleher
    MemberAuthor

    We'll need to update the documentation for write_fasta (#1889) and write_nexus once this if fixed, as well as updating their tests.

    We can also (finally!) implement the tskit fasta command (#50)

  4. added 7 commits that reference this issue on Dec 2, 2021
    71df424
    250b1ec
    95811ae
    7e0553c
    51bbc82
    2a49c7f
    6759f26
  5. added a commit that references this issue on Dec 6, 2021
    76f0d2e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Python APIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions