I have the following SMILES, wrapped in Python RDKit:
from rdkit import Chem
m = Chem.MolFromSmiles('[H]N[C@@H](CCCCN)C(=O)N[C@@H](CCCCN)C(=O)N[C@@H](C)C(=O)N[C@@H](CC1=CNC2=C1C=CC=C2)C(O)=O'
Is there away I can convert that into an Amino acid sequence, e.g, KKAW
?
I'm open to other solution than RDKit.
Update
I tried this:
from rdkit.Chem.rdmolfiles import MolFromMolFile, MolToFASTA
fa = MolToFASTA( Chem.MolFromSmiles('[H]N[C@@H](CCCCN)C(=O)N[C@@H](CCCCN)C(=O)N[C@@H](C)C(=O)N[C@@H](CC1=CNC2=C1C=CC=C2)C(O)=O'))
fa
But fa
returns empty string.
Documentation said this:
rdkit.Chem.rdmolfiles.MolToFASTA((Mol)mol) → str :
Returns the FASTA string for a molecule
ARGUMENTS:
mol: the molecule
NOTE: the molecule should contain monomer information in AtomMonomerInfo structures
RETURNS:
a string
C++ signature :
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > MolToFASTA(RDKit::ROMol)
I don't know how to check if my mol contains monomer information in AtomMonomerInfo structures
. And how to add it if it doesn't have those.