epam / Indigo

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

Preview: Unable to save mix of unresolved nucleotides and nucleotides to Sequence (and FASTA) #2039

Open AlexeyGirin opened 2 days ago

AlexeyGirin commented 2 days ago

Steps to Reproduce

  1. Go to Macromolecules mode - Flex mode
  2. Open from file: Unable to save mix of unresolved nucleotides and nucleotides to sequence.zip OR create manually the following canvas: image
  3. Save canvas to Sequence format file (or FASTA)

Actual behavior System throws an exception: Convert error! Error during sequence type recognition(RNA, DNA or Peptide) Sequence: image FASTA: image

Expected behavior Since unresolved nucleotide is nucleotide - it should be recognized as DNA

Versions

Issue found while testing - https://github.com/epam/ketcher/issues/4382

AlexeyGirin commented 2 days ago

@rrodionov91 's comment on that: This is because we don't have classHELM field for the unsplite nucleotide. We have to add it and allow user to decide if it is RNA or DNA