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

Displaying a long peptide chain on a canvas. Snake-like layout #3280

Closed
olganaz opened this issue Sep 8, 2023 · 3 comments · Fixed by #3376
Closed

Displaying a long peptide chain on a canvas. Snake-like layout #3280

olganaz opened this issue Sep 8, 2023 · 3 comments · Fixed by #3376

Comments

@olganaz
Copy link
Collaborator

olganaz commented Sep 8, 2023

Displaying a long peptide chain on a canvas. Snake-like layout

  1. The user should be able to upload a long polypeptide chain onto the canvas.
  2. Bonds between monomers are formed by default between R2 of the first monomer and R1 of the next monomer.
  3. When the layout button is pressed, the monomers from the chain should be arranged on the screen in a snake-like pattern. And while this button is active - the "snake-like" mode is ON.
  4. Depending on the length of the chain, the algorithm should calculate the length of one row and the size of the monomers so that the entire chain fits on the canvas.
  5. Monomers in each row are ordered from left to right.
  6. The bond between the last monomer in a row and the next one should be shown as a broken line with smoothed corners.
  7. After creating layout new monomers can be added and existing monomers can be moved while the bonds remain rectangular and appropriately rebuilt.
  8. If there are multiple chains of monomers on the canvas, each chain is arranged independently of the others, but they altogether should fit on the canvas.
    a. Each interconnected set of monomers (chain) is arranged into the left-to-right (snake) view separately. "Snakes" are arranged from top to bottom, every snake starts from a new row.
    b. Once the layout button is pressed, the top (first) chain is defined by the top left monomer on canvas, i.e. the chain it is part of will be the first one.
    c. Similarly, second chain is the one that includes new top left monomer that is not part of the first chain, etc
@olganaz olganaz added the draft label Sep 8, 2023
@olganaz olganaz self-assigned this Sep 8, 2023
@olganaz olganaz added Macromolecules feature request epic: peptide MVP Collect tasks for the MVP of peptide editor [PE] Build chains from monomers and removed draft epic: peptide MVP Collect tasks for the MVP of peptide editor labels Sep 11, 2023
@OlgaMazurina OlgaMazurina assigned OlgaMazurina and unassigned olganaz Sep 12, 2023
@olganaz olganaz changed the title Peptide chain layout Layout button for peptide chain Sep 13, 2023
@olganaz olganaz changed the title Layout button for peptide chain Displaying a long peptide chain on a canvas. Snake-like layout Sep 18, 2023
@Andrey-Antonov
Copy link
Collaborator

image

OlgaMazurina pushed a commit that referenced this issue Sep 18, 2023
OlgaMazurina pushed a commit that referenced this issue Sep 18, 2023
OlgaMazurina pushed a commit that referenced this issue Sep 18, 2023
OlgaMazurina pushed a commit that referenced this issue Sep 18, 2023
OlgaMazurina pushed a commit that referenced this issue Sep 18, 2023
@Andrey-Antonov
Copy link
Collaborator

image
image

OlgaMazurina pushed a commit that referenced this issue Sep 25, 2023
OlgaMazurina pushed a commit that referenced this issue Sep 26, 2023
OlgaMazurina pushed a commit that referenced this issue Sep 28, 2023
OlgaMazurina pushed a commit that referenced this issue Sep 28, 2023
OlgaMazurina pushed a commit that referenced this issue Sep 28, 2023
OlgaMazurina pushed a commit that referenced this issue Oct 10, 2023
OlgaMazurina pushed a commit that referenced this issue Oct 10, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 pushed a commit that referenced this issue Oct 16, 2023
rrodionov91 added a commit that referenced this issue Oct 16, 2023
…e layout (#3376)

* #3280 - add curves
* #3280 - add chain rearrange by clicking
* #3280 - made straight bond for R3+ attachment points
* #3280 - restricted snake bonds for R3+ connections and for RNA

---------

Co-authored-by: Olga Mazurina <olga_mazurina@epam.com>
Co-authored-by: Roman Rodionov <roman_rodionov@epam.com>
OlgaMazurina added a commit that referenced this issue Oct 18, 2023
…e layout (#3376)

* #3280 - add curves
* #3280 - add chain rearrange by clicking
* #3280 - made straight bond for R3+ attachment points
* #3280 - restricted snake bonds for R3+ connections and for RNA

---------

Co-authored-by: Olga Mazurina <olga_mazurina@epam.com>
Co-authored-by: Roman Rodionov <roman_rodionov@epam.com>
@MartaWilliams
Copy link
Collaborator

Tested
2023-10-24_10h12_15
2023-10-24_10h06_43
2023-10-24_10h19_58
2023-10-24_10h26_26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment