epam / Indigo

Universal cheminformatics toolkit, utilities and database search tools
http://lifescience.opensource.epam.com
Apache License 2.0
291 stars 100 forks source link

Wrong sequence if sequence with cycle is saved to FASTA or Sequence file #2042

Open AlexeyGirin opened 5 days ago

AlexeyGirin commented 5 days ago

Steps to Reproduce

  1. Switch to Macro

  2. Open file ketcher (modify (1)).zip

  3. Try to save to FASTA of Sequence file

Actual behavior Wrong sequence (GCG) is saved to FASTA or Sequence file instead of GGC. wrong sequence

wrong sequence2

Expected behavior Sequence should be GGC as on the Canvas

please see

Versions: Windows 11 Chrome Version Version 123.0.6312.106 (Official Build) (64-bit) Ketcher Version 2.21.0-rc.1 Build at 2024-04-15; 20:00:15 Indigo Toolkit Version 1.20.0-rc.1.0-g8e8ffc3c3-wasm32-wasm-clang-12.0.0

even1024 commented 2 days ago

Most left coordinate = first monomer