public class ScaffoldExtension extends Object implements Serializable
| Constructor and Description |
|---|
ScaffoldExtension(Molecule extension,
Collection<Attachment> zattachments,
Collection<Attachment> rattachments)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
int |
calculateImplicitHSubstitutionCount(RgFrag frag,
com.chemaxon.calculations.sc.util.IntMatch m)
Implicit H count.
|
Iterable<com.chemaxon.calculations.sc.util.IntMatch> |
fragmentMatches(RgFrag frag)
Iterable wrapper for
iterateFragmentMatches(com.chemaxon.virtuallib.sc.model.sdf.RgFrag). |
String |
getCxSmiles()
Get canonical CXSMILES of the candidate.
|
int |
getRAttachmentCount() |
int |
getRealAtomCount()
Real chemical atoms represented by this extension.
|
String |
getSmiles()
Get canonical SMILES of the candidate without cxsmiles extension (pseudo atom labels).
|
int |
getZAttachmentCount() |
Iterator<com.chemaxon.calculations.sc.util.IntMatch> |
iterateFragmentMatches(RgFrag frag)
Iterate possible fragment matches if this scaffold extension is compatible with an rg fragment.
|
boolean |
matchesToExtension(ScaffoldExtension other)
Check if two scaffold extensions are denoting the same extension structure.
|
RgFrag |
reduceFragment(RgFrag frag,
com.chemaxon.calculations.sc.util.IntMatch match)
Reduce fragment with the given scaffold extension.
|
String |
toString() |
String |
toString(boolean multiline)
Details into human readable String.
|
public ScaffoldExtension(Molecule extension, Collection<Attachment> zattachments, Collection<Attachment> rattachments)
extension - Extending structure; will be mutated.zattachments - Z attachmentsrattachments - R attachmentspublic RgFrag reduceFragment(RgFrag frag, com.chemaxon.calculations.sc.util.IntMatch match)
frag - Target fragmentmatch - Base match. Query: this scaffold extension; target: Given fragment. Z atoms matched by index;
chemical * atoms are matched; R atoms implicitly matched)public int calculateImplicitHSubstitutionCount(RgFrag frag, com.chemaxon.calculations.sc.util.IntMatch m)
frag - Target fragmentm - Base match. Query: this scaffold extension; target: Given fragment.public Iterable<com.chemaxon.calculations.sc.util.IntMatch> fragmentMatches(RgFrag frag)
iterateFragmentMatches(com.chemaxon.virtuallib.sc.model.sdf.RgFrag).frag - Fragment to search matches inpublic Iterator<com.chemaxon.calculations.sc.util.IntMatch> iterateFragmentMatches(RgFrag frag)
frag - Fragment to search match inpublic boolean matchesToExtension(ScaffoldExtension other)
other - Other extensionpublic String toString(boolean multiline)
multiline - Write multi line Stringpublic String getCxSmiles()
public String getSmiles()
public int getRealAtomCount()
public int getRAttachmentCount()
public int getZAttachmentCount()