OEFastaToMol¶
bool OEFastaToMol(OEMolBase &mol, const std::string &str)
Converts a FASTA sequence into a molecule.
The following code demonstrates how to create a molecule from a
FASTA sequence using the OEFastaToMol
function
and prints out the number of alpha carbon atoms in the molecule.
OEGraphMol mol;
std::string fastastr = "AVILMPTWSTNQCGPRHKDE";
OEFastaToMol(mol, fastastr);
printf("%s has %d C-alpha atoms", fastastr.c_str(), OECount(mol, OEIsCAlpha()));
See also
OEReadFASTAFile
function