Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultipleSeqAlignment position mapping #4249

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

kamurani
Copy link
Contributor

@kamurani kamurani commented Mar 1, 2023

  • I hereby agree to dual licence this and any previous contributions under both
    the Biopython License Agreement AND the BSD 3-Clause License.

  • I have read the CONTRIBUTING.rst file, have run pre-commit
    locally, and understand that continuous integration checks will be used to
    confirm the Biopython unit tests and style checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

Closes #4248

@kamurani kamurani changed the title Msa position mapping MultipleSeqAlignment position mapping Mar 1, 2023
@peterjc
Copy link
Member

peterjc commented Mar 1, 2023

The automated checks are failing due to your Python style, please see https://github.com/biopython/biopython/blob/master/CONTRIBUTING.rst - at least try running the tool black on your Python code.

@@ -904,13 +1093,13 @@ def substitutions(self):

Any weights associated with the sequences are taken into account when
calculating the substitution matrix. For example, given the following
multiple sequence alignment::
multiple sequence alignment:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this change, the double colon is RST markup indicating the following indented code is a literal block. Same for the change below.

@peterjc
Copy link
Member

peterjc commented Mar 1, 2023

I wonder if it would be best to more closely match the new alignment object's mapping via .indices and .inverse_indices?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants