-
Notifications
You must be signed in to change notification settings - Fork 174
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
Macro: Copy fragment from existing sequence on canvas and paste #3916
Comments
Tests added to the automation table. Except for single chems , micro structures tests, since there is no description of this interaction in the ticket. |
9 tasks
Tested on 2.21.0-rc.1 No comments. |
This was referenced Apr 21, 2024
This was referenced Apr 23, 2024
Open
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
This task covers copy and paste operations for all the fragments that are present on canvas.
Fragment - a set of monomers connected through bonds or single monomer.
Linear peptide fragment (chain) - a set of peptide monomers connected with R2-R1 bonds.
Linear RNA fragment (chain) is a set of nucleotides connected through R2-R1 bonds (bond established between phosphate R2 AP of first nucleotide and sugar R1 AP of the second nucleotide).
Nucleotide = sugar+base+phosphate, connected by the rules, defined in preset.
Requirements
Copy
Paste
- If canvas is empty, then pasted fragment should be aligned left and centered vertically on visible canvas.
- If there is already at least one sequence on canvas, then paste should be performed in the next row. Additionally, the canvas should be moved to make newly added sequence visible.
- Several fragments are pasted as several sequences.
- Paste of several fragments (which are not connected through R2-R1 bonds) should be prohibited in text-editing mode.
- Paste is performed where cursor is located.
- If paste is performed between two monomers (or nucleotides), it means that the the bond R2-R1 between them is broken and pasted fragment is merged with existing chain via R2-R1 bonds (the last monomer before the break is connected with the first monomer of the pasted chain AND the last monomer of pasted chain is connected with the first monomer after the break).
- If paste is performed before the first symbol of the chain or after the last symbol of the chain then pasted fragment should be merged with existing chain with one bond.
- Pasted fragment should have available attachment points to establish bonds for merge. If not, then paste should not be performed.
Alternatives
System should ignore all other formats except sequence and KET not to perform paste.
The text was updated successfully, but these errors were encountered: