public class RgFrag extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
REACTANT_ID_SDFIELD
SD field storing Reactant ID.
|
Constructor and Description |
---|
RgFrag(Molecule mol)
Construct for a Molecule.
|
RgFrag(Molecule mol,
String reactantId,
Collection<Attachment> zAttachments)
Construct for a molecule and attachment descriptor.
|
Modifier and Type | Method and Description |
---|---|
com.chemaxon.calculations.sc.util.IntListSet |
allAtoms() |
List<ScaffoldExtension> |
constructSingleAtomExtensions(int firstR)
Enumerate all possible single atom scaffold extensions.
|
List<ScaffoldExtension> |
constructSingleAtomExtensions(ScaffoldExtension base)
Construct further single atom extensions.
|
com.chemaxon.calculations.sc.util.IntListSet |
getAllNeighborAtoms(int atomIndex)
Get all neighbor atom indices.
|
int |
getAtomCount()
All atom count.
|
com.chemaxon.calculations.sc.graph.Connectivity |
getConnectivity() |
Molecule |
getMolecule() |
String |
getReactantId() |
int |
getRealAtomCount()
Chemical atom count.
|
com.chemaxon.calculations.sc.util.IntListSet |
getRealNeighborAtoms(int atomIndex)
Get all real atom neighbor indices.
|
com.chemaxon.calculations.sc.util.IntListSet |
realAtoms() |
String |
toCxSmiles()
Return CxSmiles format.
|
String |
toString() |
String |
toString(boolean multiline)
Details into human readable String.
|
IndexedAttachmentGroup |
zAttachments()
Z attachments.
|
public static final String REACTANT_ID_SDFIELD
public RgFrag(Molecule mol, String reactantId, Collection<Attachment> zAttachments)
mol
- Molecule representation, including Z attachmentsreactantId
- Reactant ID of this fragmentzAttachments
- Z attachment descriptorspublic RgFrag(Molecule mol)
mol
- Fragment moleculepublic IndexedAttachmentGroup zAttachments()
public com.chemaxon.calculations.sc.util.IntListSet getAllNeighborAtoms(int atomIndex)
atomIndex
- An atom, possibly an attachment atompublic com.chemaxon.calculations.sc.util.IntListSet getRealNeighborAtoms(int atomIndex)
atomIndex
- An atom, possibly an attachment atompublic com.chemaxon.calculations.sc.util.IntListSet allAtoms()
public com.chemaxon.calculations.sc.util.IntListSet realAtoms()
public int getAtomCount()
public int getRealAtomCount()
public List<ScaffoldExtension> constructSingleAtomExtensions(ScaffoldExtension base)
base
- Basis extension to further growIllegalStateException
- when basis extension does not matchpublic List<ScaffoldExtension> constructSingleAtomExtensions(int firstR)
firstR
- Index of first R attachment to usepublic String toString(boolean multiline)
multiline
- Write multi line Stringpublic String toCxSmiles()
public String getReactantId()
public Molecule getMolecule()
public com.chemaxon.calculations.sc.graph.Connectivity getConnectivity()