Skip to content

Commit

Permalink
sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
even1024 committed Dec 27, 2023
1 parent dfa7935 commit d355476
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions utils/indigo-service/backend/service/v2/indigo_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,18 @@ def load_moldata(
if input_format in ("smarts", "chemical/x-daylight-smarts"):
md.struct = indigo.loadSmarts(molstr)
md.is_query = True
elif input_format == "chemical/x-peptide-sequence":
md.struct = indigo.loadSequence(molstr, "PEPTIDE")
md.is_rxn = False
md.is_query = False
elif input_format == "chemical/x-rna-sequence":
md.struct = indigo.loadSequence(molstr, "RNA")
md.is_rxn = False
md.is_query = False
elif input_format == "chemical/x-dna-sequence":
md.struct = indigo.loadSequence(molstr, "DNA")
md.is_rxn = False
md.is_query = False
elif molstr.startswith("InChI"):
md.struct = indigo.inchi.loadMolecule(molstr)
md.is_rxn = False
Expand Down

0 comments on commit d355476

Please sign in to comment.