epam / ketcher

Web-based molecule sketcher
https://lifescience.opensource.epam.com/ketcher/demo.html
Apache License 2.0
453 stars 165 forks source link

Fasta: Kindly add warning that FASTA/Sequence formats don't support side chains and modifications #4332

Open NadezhdaPeskun opened 5 months ago

NadezhdaPeskun commented 5 months ago

Steps to Reproduce

  1. Switch to Macro mode
  2. Open from Clipboard >> Select Sequence and Peptides
  3. Add CCCAAATTT >> Add to canvas
  4. Connect any first and last peptides image
  5. switch to Sequence mode - we can see link for letters image
  6. Save >> Fasta >> new connection is lost image

Actual behavior The structure is saved without any notifications to the user and side chain connections are lost.

Expected behavior The user should be warned that certain info will be lost when saving to FASTA or sequence format. In case modified monomers are included into sequence: "The chosen format doesn't support modified monomers, they will be replaced by unmodified versions." In case there are side connections (including cyclic structures): "The chosen format doesn't support side-chain connections, These connections will be lost."

Versions: • OS: Windows 10 Pro (version 22H2) x64 • Browser: Сhrome • Version 122.0.6261.131 (Official Build) (64-bit)

Version 2.20.0-rc.1 Build at 2024-03-15; 15:36:45 Indigo Toolkit Version 1.19.0-rc.1.0-g8cd9f1e27-wasm32-wasm-clang-12.0.0

AlexeyGirin commented 3 months ago

Test added