|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.sss.search.Search
chemaxon.sss.search.MolSearch
chemaxon.sss.search.StandardizedMolSearch
chemaxon.sss.search.RGroupDecomposition
public class RGroupDecomposition
R-group decomposition.
Given a scaffold structure with attached R1, R2, ... nodes as query,
determines the possible R-group decompositions of given target molecule.
A decomposition consists of the matching scaffold and the R1, R2, ... ligands
with attachment points. Each decomposition corresponds to a group hit, see
Search.findFirstGroup() and Search.findNextGroup().
After setting the query, the target, and possibly the search options,
call findFirstDecomposition() and findNextDecomposition()
to get the decompositions. Call Decomposition.equals(java.lang.Object)
to filter equivalent decompositions that provide the same ligands (but
correspond to different group hits). Color the decomposition by calling
Decomposition.color() or Decomposition.color(java.lang.String).
To create a result table with all decompositions right away, call
findLigandTable(int, int, java.lang.String). Alternatively,
you can get the table header with query, target and R-atoms, call
getLigandTableHeader(int, int, java.lang.String) and then add only
a single table row corresponding to the first decomposition by calling
findLigandTableRow(int, java.lang.String).
Different ligand attachment types can be set in setAttachmentType(int).
As of JChem 5.3, extra ligands without matching R-atom are not allowed.
As of JChem 5.3, a query without R-atoms will be automatically modified in
setQuery(chemaxon.struc.Molecule): R-atoms will be added in place of
implicit hydrogens by addRGroups(chemaxon.struc.Molecule).
The R-grouped query can be retrieved by getRGroupedQuery().
If the original query contains R-atoms then the default R-atom matching
behavior is SearchConstants.UNDEF_R_MATCHING_GROUP_H,
otherwise the default matching behavior of the automatically added R-atoms is
SearchConstants.UNDEF_R_MATCHING_GROUP_H_EMPTY (the empty
set matching is allowed here because we expect that ligands are attached to
some of the implicit hydrogens in the original query, but not necessarily all
implicit hydrogens have corresponding ligands).
Search options:
The options below have different default values as in MolSearch:
SearchOptions.setRLigandEqualityCheck(boolean):
sets whether undefined R-atoms with the same R-group ID should match the same structure.
Default: true.
SearchOptions.setBridgingRAllowed(boolean value):
sets whether different undefined R-atoms can match the same group of atoms.
Default: true.
SearchOptions.setUndefinedRAtom(int):
sets the matching behavior of an undefined R atom in the query.
Default: SearchConstants.UNDEF_R_MATCHING_GROUP_H if the original
query has R-atoms, SearchConstants.UNDEF_R_MATCHING_GROUP_H_EMPTY
with automatically added R-atoms in place of implicit hydrogens otherwise.
Note, that unlike other search options, this option should be specified together with
the query in setQuery(chemaxon.struc.Molecule, int).
API usage examples:
query: the query molecule
target: the target molecule
RGroupDecomposition rgd = new RGroupDecomposition(); // set search options rgd.getSearchOptions().setRLigandEqualityCheck(false); rgd.getSearchOptions().setBridgingRAllowed(false); // set query and target with specific R-atom matching rgd.setQuery(query, SearchOptions.UNDEF_R_MATCHING_GROUP); rgd.setTarget(target); // find decompositions, output colored and aligned target MolExporter exporter = new MolExporter(System.out, "sdf:-a"); ArrayListlist = new ArrayList (); Decomposition d = rgd.findFirstDecomposition(); while (d != null) { boolean duplicate = false; for (int i=list.size()-1; i >= 0; --i) { if (d.equals(list.get(i))) { duplicate = true; break; } } if (!duplicate) { list.add(d); d.color("DMAP"); exporter.write(d.getTarget()); } d = rgd.findNextDecomposition(); } exporter.close();
// standardize query and targets to find hits
// in most cases aromatization only will be sufficient
Standardizer st = new Standardizer("aromatize..N=[N:1]#[N:2]>>N=[N+:1]=[N-:2]");
RGroupDecomposition rgd = new RGroupDecomposition();
rgd.setAttachmentType(RGroupDecomposition.ATTACHMENT_MAP);
// standardize and set query
st.standardize(query);
rgd.setQuery(query);
// standardize and set target
st.standardize(target);
rgd.setTarget(target);
// process decomposition, output ligands
Decomposition d = rgd.findDecomposition();
if (d != null) {
Molecule[] ligands = d.getLigands();
for (Molecule ligand : ligands) {
if (ligand != null) {
System.out.println(ligand.toFormat("smiles"));
}
}
}
RGroupDecomposition rgd = new RGroupDecomposition();
rgd.setAttachmentType(RGroupDecomposition.ATTACHMENT_POINT);
rgd.setAlign(true);
rgd.setQuery(query);
rgd.setTarget(target);
MolExporter exporter = new MolExporter(System.out, "mrv:-a");
Decomposition d = rgd.findDecomposition();
if (d != null) {
d.color();
Molecule[] ligands = d.getLigands();
Molecule scaffold = d.getScaffold();
for (Molecule ligand : ligands) {
if (ligand != null) {
exporter.write(ligand);
} else {
exporter.write(scaffold);
}
}
}
exporter.close();
// standardize query and targets to find hits
// in most cases aromatization only will be sufficient
Standardizer st = new Standardizer("aromatize..N=[N:1]#[N:2]>>N=[N+:1]=[N-:2]");
// init RGroupDecomposition
RGroupDecomposition rgd = new RGroupDecomposition();
// set target and ligand alignment according to query
rgd.setAlign(true);
// set attachment data in atom labels as "R1", "R2", ...
rgd.setAttachmentType(RGroupDecomposition.ATTACHMENT_RLABEL);
// standardize and set query
st.standardize(query);
rgd.setQuery(query);
// standardize and set target
st.standardize(target);
rgd.setTarget(target);
// process decompositions
int index = 0;
Decomposition d = null;
if ((d = rgd.findDecomposition()) != null) {
++index;
// color in atom sets
d.color();
// get the colored target
Molecule mol = d.getTarget();
// convert to PNG with default set colors
// 'mono' option is needed to supress the default CPK atom coloring
byte[] png = mol.toBinFormat("png:-a,mono,setcolors");
// write to file
BufferedOutputStream os = new BufferedOutputStream(new FileOutputStream("img-"+index+".png"));
os.write(png, 0, png.length);
os.flush();
os.close();
// get the query from the decomposition (possibly with automatically added R-atoms):
Molecule rgquery = d.getQuery();
// get the colored ligands
Molecule[] ligands = d.getLigands();
for (int i=0; i < ligands.length; ++i) {
if (ligands[i] != null) {
png = ligands[i].toBinFormat("png:-a,mono,setcolors");
os = new BufferedOutputStream(
new FileOutputStream("img-"+index+"-R"+rgquery.getAtom(i).getRgroup()+".png"));
os.write(png, 0, png.length);
os.flush();
os.close();
}
}
}
RGroupDecomposition rgd = new RGroupDecomposition();
rgd.setAttachmentType(RGroupDecomposition.ATTACHMENT_ATOM); // attachment type: any-atoms
rgd.setQuery(query);
rgd.setTarget(target);
Molecule[][] ligandTable = rgd.findLigandTable(RGroupDecomposition.HEADER_RGROUP,
RGroupDecomposition.COL_MOLECULE | RGroupDecomposition.COL_SCAFFOLD, "DMAP");
null
if there is no hit), align target and ligands according to query,
coloring data set in atom sets (for MRV output):
RGroupDecomposition rgd = new RGroupDecomposition();
rgd.setAttachmentType(RGroupDecomposition.ATTACHMENT_MAP);
rgd.setAlign(true);
rgd.setQuery(query);
Molecule[][] ligandTable = new Molecule[targets.length+1][];
ligandTable[0] = rgd.getLigandTableHeader(RGroupDecomposition.HEADER_MAP,
RGroupDecomposition.COL_MOLECULE);
for (int i=0; i < targets.length; ++i) {
rgd.setTarget(targets[i]);
ligandTable[i+1] = rgd.findLigandTableRow(RGroupDecomposition.COL_MOLECULE);
}
// standardize query and targets to find hits
// in most cases this is not needed, since the
// default standardization (aromatization only) will be sufficient
Standardizer st = new Standardizer("aromatize..N=[N:1]#[N:2]>>N=[N+:1]=[N-:2]");
// init RGroupDecomposition, set query
RGroupDecomposition rgd = new RGroupDecomposition();
rgd.setAttachmentType(RGroupDecomposition.ATTACHMENT_MAP);
rgd.getSearchOptions().setRLigandEqualityCheck(false);
// standardize and set query
st.standardize(query);
rgd.setQuery(query);
// standardize and set target
st.standardize(target);
rgd.setTarget(target);
// process decomposition
Decomposition d = rgd.findDecomposition();
if (d != null) {
// get query from decomposition, possibly R-atoms added automatically:
Molecule rgquery = d.getQuery();
// get the ligands:
Molecule[] ligands = d.getLigands();
// look for R1 ligands:
for (int i=0; i < ligands.length; ++i) {
if ((rgquery.getAtom(i).getAtno() == MolAtom.RGROUP) &&
(rgquery.getAtom(i).getRgroup() == 1)) {
if (ligands[i] != null) {
System.out.println(ligands[i].toFormat("smiles"));
}
}
}
}
| Field Summary | |
|---|---|
static int |
ATTACHMENT_ATOM
Constant for attachment point representation in ligands: sets attachment points by attaching an pseudo-atom. |
static int |
ATTACHMENT_LABEL
Constant for attachment point representation in ligands: sets attachment points by MolAtom.setExtraLabel(java.lang.String)
Labels with R-group ID: "1" for R1, "2" for R2, ... |
static int |
ATTACHMENT_MAP
Constant for attachment point representation in ligands: sets attachment points by MolAtom.setAtomMap(int). |
static int |
ATTACHMENT_NONE
Constant for attachment point representation in ligands: none (no attachment point data). |
static int |
ATTACHMENT_POINT
Constant for attachment point representation in ligands: sets attachment points by MolAtom.addRgroupAttachmentPoint(int, int). |
static int |
ATTACHMENT_RLABEL
Constant for attachment point representation in ligands: sets attachment points by MolAtom.setExtraLabel(java.lang.String). |
static int |
COL_MOLECULE
Constant for adding query-target column to ligand table. |
static int |
COL_SCAFFOLD
Constant for adding scaffold column to ligand table. |
static int |
HEADER_MAP
Constant for header type: header with any atoms mapped by Rgroup indexes. |
static int |
HEADER_NONE
Constant for header type: no header. |
static int |
HEADER_RGROUP
Constant for header type: header with Rgroup atoms (cannot be exported to SMILES). |
static java.lang.String |
SEPARATOR
Separator in atom color code property string representation. |
| Fields inherited from class chemaxon.sss.search.MolSearch |
|---|
isOrigTargetMayBeMarkush, isQueryStandardizable, isTargetStandardizable |
| Fields inherited from class chemaxon.sss.search.Search |
|---|
MRV_OUTPUT_LEVEL, preMatchLength, preMatchQueryAtoms, preMatchTargetAtoms, searchOptions |
| Fields inherited from interface chemaxon.struc.StereoConstants |
|---|
ANTI, ATOMSTEREO_EITHER, ATOMSTEREO_MASK, ATOMSTEREO_NONE, ATOMSTEREO_SPECIFIC, CHIRALITY_M, CHIRALITY_MASK, CHIRALITY_P, CHIRALITY_r, CHIRALITY_R, CHIRALITY_s, CHIRALITY_S, CHIRALITYSUPPORT_ALL, CHIRALITYSUPPORT_NONE, CHIRALITYSUPPORT_SELECTED, CIS, CTUMASK, CTUNKNOWN, CTUNSPEC, DBS_ALL, DBS_MARKED, DBS_NONE, ENDO, EXO, PARITY_ALLENE, PARITY_EITHER, PARITY_EVEN, PARITY_MASK, PARITY_ODD, PARITY_TETRAHEDRAL, PARITY_UNSPEC, STGRP_ABS, STGRP_AND, STGRP_NONE, STGRP_OR, SYN, TRANS |
| Constructor Summary | |
|---|---|
RGroupDecomposition()
Constructor. |
|
| Method Summary | |
|---|---|
static void |
addHydrogens(Molecule query)
Deprecated. as of JChem 5.3, full fragment matching is forced, which means that ligands are accepted at R-atoms only (and never in place of implicit hydrogens) |
static void |
addRGroups(Molecule query)
Adds different rgroup atoms connected by any-bonds to query molecule in place of all implicit H-s. |
static void |
addRGroups(Molecule query,
int bondType)
Adds different rgroup atoms connected by the specified bond type to query molecule in place of all implicit H-s. |
Decomposition |
findDecomposition()
Finds the first decomposition result. |
Decomposition |
findDecomposition(boolean first)
Finds a decomposition result. |
Decomposition |
findFirstDecomposition()
Finds the first decomposition result. |
Molecule[][] |
findLigandTable(int headerType,
int addCols)
Returns the ligand table. |
Molecule[][] |
findLigandTable(int headerType,
int addCols,
java.lang.String colorTag)
Returns the ligand table. |
Molecule[] |
findLigandTableRow(int addCols)
Returns a ligand table row with ligands corresponding to a the first search hit. |
Molecule[] |
findLigandTableRow(int addCols,
java.lang.String colorTag)
Returns a ligand table row with ligands corresponding to a the first search hit. |
Decomposition |
findNextDecomposition()
Finds the next decomposition result. |
Molecule[] |
getLigandTableHeader(int headerType,
int addCols)
Returns ligand table header. |
Molecule[] |
getLigandTableHeader(int headerType,
int addCols,
java.lang.String colorTag)
Returns ligand table header. |
Molecule |
getQuery()
Retrieves the original query structure. |
Molecule |
getRGroupedQuery()
Returns the R-grouped query. |
boolean |
isLicensed()
Gets whether searching is included in the user licence. |
boolean |
isMarkushQuery()
Returns true if query contains Markush features
which will be enumerated (all features except defined R-rgroups
and homologies). |
void |
setAlign(boolean align)
Sets alignment. |
void |
setAttachmentType(int type)
Sets the attachment point representation type in ligand molecules. |
void |
setLicenseEnvironment(java.lang.String env)
Set the license to be used by the search object. |
void |
setQuery(Molecule mol)
Specifies the query structure to search for. |
void |
setQuery(Molecule mol,
int undefinedRAtom)
Specifies the query structure to search for. |
void |
setSameRGroupSameStructure(boolean sameRGroupSameStructure)
Deprecated. as of JChem 5.3, set search option "RLigandEqualityCheck" in SearchOptions, see SearchOptions.setRLigandEqualityCheck(boolean)
and SearchOptions.setOption(java.lang.String, java.lang.String) |
void |
setTarget(Molecule mol)
Specifies the target molecule to search in. |
| Methods inherited from class chemaxon.sss.search.StandardizedMolSearch |
|---|
setStandardizer |
| Methods inherited from class chemaxon.sss.search.MolSearch |
|---|
addComparator, addMatch, addMatch, checkFilter, checkFilter, clearComparators, clearMatch, filter, findAllHits, findFirstHit, findNextHit, getFilter, getMatchingQuery, getMatchingTarget, getTarget, hasFilter, hasHitFilter, isMatching, removeComparator, setFilter, setFilterConfig, setOrigTargetMayBeMarkush, setQuery, setQuery, setSearchOptions, setTarget, stop |
| Methods inherited from class chemaxon.sss.search.Search |
|---|
areMatchingBondTypes, areMatchingBondTypes, findAll, findAllGroups, findFirst, findFirstGroup, findNext, findNextGroup, getAtomStereo, getMatchCount, getQueryAsString, getQueryToPrint, getSearchOptions, getTargetAsString, getTargetToPrint, isMatchCountBetween, isMatchCountInRelation, isVerbose, logException, setSearchOptions, setVerbose |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COL_MOLECULE
public static final int COL_SCAFFOLD
public static final int HEADER_NONE
public static final int HEADER_RGROUP
public static final int HEADER_MAP
public static final java.lang.String SEPARATOR
public static final int ATTACHMENT_NONE
public static final int ATTACHMENT_POINT
MolAtom.addRgroupAttachmentPoint(int, int).
This is the default.
public static final int ATTACHMENT_MAP
MolAtom.setAtomMap(int).
Maps with R-group ID: 1 for R1, 2 for R2, ...
public static final int ATTACHMENT_LABEL
MolAtom.setExtraLabel(java.lang.String)
Labels with R-group ID: "1" for R1, "2" for R2, ...
public static final int ATTACHMENT_RLABEL
MolAtom.setExtraLabel(java.lang.String).
Labels with full R-atom name: "R1" for R1, "R2" for R2, ...
public static final int ATTACHMENT_ATOM
| Constructor Detail |
|---|
public RGroupDecomposition()
| Method Detail |
|---|
public void setAttachmentType(int type)
ATTACHMENT_NONE
ATTACHMENT_POINT (default)
ATTACHMENT_MAP
ATTACHMENT_LABEL
ATTACHMENT_RLABEL
ATTACHMENT_ATOM
type - is the attachment point representation typepublic void setSameRGroupSameStructure(boolean sameRGroupSameStructure)
SearchOptions, see SearchOptions.setRLigandEqualityCheck(boolean)
and SearchOptions.setOption(java.lang.String, java.lang.String)
true then identical R-group symbols on the query
(e.g. two R1-s) should match identical target ligands.
If set to false then identical R-group symbols on the
query only represent equivalent positions but may match different
structures.
Default: true.
sameRGroupSameStructure - is true identical R-group symbols
on the query should match identical target ligandspublic static void addHydrogens(Molecule query)
setQuery(Molecule).
query - is the query molecule to be setaddRGroups(Molecule)public static void addRGroups(Molecule query)
setQuery(Molecule).
query - is the query molecule to be setaddHydrogens(Molecule)
public static void addRGroups(Molecule query,
int bondType)
MolBond.
In this way ligands will be accepted and stored
at all possible attachments.
Call this before setQuery(Molecule).
query - is the query molecule to be setbondType - is the attachment bond typeaddHydrogens(Molecule)public void setAlign(boolean align)
false.
align - is true if ligands and target should be aligned (cleaned)public boolean isMarkushQuery()
true if query contains Markush features
which will be enumerated (all features except defined R-rgroups
and homologies).
true if query contains Markush features
other than defined R-groups and homologies
public void setQuery(Molecule mol,
int undefinedRAtom)
addRGroups(chemaxon.struc.Molecule) is called to put R-atoms in place of
implicit hydrogens.
mol - the standardized query structure.undefinedRAtom - the undefined R-atom setting, possible values:
SearchConstants.UNDEF_R_MATCHING_GROUP: R-atom matches heavy atom group
SearchConstants.UNDEF_R_MATCHING_GROUP_H: R-atom matches heavy atom group or hydrogen
SearchConstants.UNDEF_R_MATCHING_GROUP_H_EMPTY: R-atom matches heavy atom group,
hydrogen or the empty set
public void setQuery(Molecule mol)
addRGroups(chemaxon.struc.Molecule) is called to put R-atoms in place of
implicit hydrogens - in this case undefined R-atoms are allowed to match the empty set,
apart from heavy atom groups or hydrogen atoms. If the query contains R-atoms, these are
allowed to match heavy atom groups or hydrogen atoms, but not the empty set.
The R-atom matching behavior can be explicitly set in
setQuery(chemaxon.struc.Molecule, int).
setQuery in interface chemaxon.util.search.MolSearchersetQuery in class MolSearchmol - the standardized query structure.
See note on aromatic bonds.setQuery(chemaxon.struc.Molecule, int)public void setTarget(Molecule mol)
setTarget in interface chemaxon.util.search.MolSearchersetTarget in class MolSearchmol - the possibly standardized target molecule. See
note on aromatic bonds.public Molecule getQuery()
getQuery in class MolSearchpublic Molecule getRGroupedQuery()
public Decomposition findFirstDecomposition()
throws chemaxon.sss.search.SearchException
null if there is no hit
chemaxon.sss.search.SearchException - on search errorfindNextDecomposition(),
findDecomposition(),
findDecomposition(boolean)
public Decomposition findNextDecomposition()
throws chemaxon.sss.search.SearchException
null if there is no hit
chemaxon.sss.search.SearchException - on search errorfindFirstDecomposition(),
findDecomposition(),
findDecomposition(boolean)
public Decomposition findDecomposition()
throws chemaxon.sss.search.SearchException
findFirstDecomposition().
null if there is no hit
chemaxon.sss.search.SearchException - on search errorfindFirstDecomposition(),
findNextDecomposition(),
findDecomposition(boolean)
public Decomposition findDecomposition(boolean first)
throws chemaxon.sss.search.SearchException
first - true if first decomposition,
false if next decomposition
null if there is no hit
chemaxon.sss.search.SearchException - on search errorfindFirstDecomposition(),
findNextDecomposition(),
findDecomposition()
public Molecule[][] findLigandTable(int headerType,
int addCols)
throws chemaxon.sss.search.SearchException
query scaffold R1 R2 R3 ... --------------------------------------------------------- target scaffold1 ligand1.1 ligand1.2 ligand1.3 target scaffold2 ligand2.1 ligand2.2 ligand2.3in a
Molecule[][] array (table):
table[0]: the table header with Rgroups as 1-atom molecules
table[i], i > 0: target molecule, scaffold, ligands
null.
Color map is stored in atom sets which can be written in MRV format and
is automatically handled by MView. See MolAtom.getSetSeq().
Rgroups in the table header are represented by any-atoms with rgroup index
set in atom map to enable SMILES export.
headerType - is the header type:
HEADER_NONE for no header
HEADER_RGROUP for header with rgroup atoms (cannot be exported to SMILES)
HEADER_MAP for mapped any atoms (for SMILES export)
addCols - additional columns to include:
COL_MOLECULE for including the target,
COL_SCAFFOLD for including the scaffold,
COL_MOLECULE | COL_SCAFFOLD for both,
0 for none
chemaxon.sss.search.SearchException - on search error
public Molecule[][] findLigandTable(int headerType,
int addCols,
java.lang.String colorTag)
throws chemaxon.sss.search.SearchException
query scaffold R1 R2 R3 ... --------------------------------------------------------- target scaffold1 ligand1.1 ligand1.2 ligand1.3 target scaffold2 ligand2.1 ligand2.2 ligand2.3in a
Molecule[][] array (table):
table[0]: the table header with Rgroups as 1-atom molecules
table[i], i > 0: target molecule, scaffold, ligands
null.
If the colorTag is specified then a color map symbol is set in the molecule
property for each atom, separated by SEPARATOR characters:
0 for scaffold atoms
mview -t DMAP -p Colors.ini ligands.sdfBy default, color map is stored in atom sets which can be written in MRV format and is automatically handled by MView. See
MolAtom.getSetSeq().
Rgroups in the table header are represented by any-atoms with rgroup index
set in atom map to enable SMILES export.
headerType - is the header type:
HEADER_NONE for no header
HEADER_RGROUP for header with rgroup atoms (cannot be exported to SMILES)
HEADER_MAP for mapped any atoms (for SMILES export)
addCols - additional columns to include:
COL_MOLECULE for including the target,
COL_SCAFFOLD for including the scaffold,
COL_MOLECULE | COL_SCAFFOLD for both,
0 for none
colorTag - is the molecule property name for setting the color map
null if color should be stored in atomsets
chemaxon.sss.search.SearchException - on search error
public Molecule[] findLigandTableRow(int addCols)
throws chemaxon.sss.search.SearchException
target scaffold ligand R1 ligand R2 ligand R3 ...The target and the scaffold columns are optional. The color map is stored in atom sets which can be written in MRV format and is automatically handled by MView. See
MolAtom.getSetSeq().
Attachment points in ligands are represented according to attachment type
set in setAttachmentType(int).
addCols - additional columns to include:
COL_MOLECULE for including the target,
COL_SCAFFOLD for including the scaffold,
COL_MOLECULE | COL_SCAFFOLD for both,
0 for none
chemaxon.sss.search.SearchException - on search error
public Molecule[] findLigandTableRow(int addCols,
java.lang.String colorTag)
throws chemaxon.sss.search.SearchException
target scaffold ligand R1 ligand R2 ligand R3 ...The target and the scaffold columns are optional. By default, color map is stored in atom sets which can be written in MRV format and is automatically handled by MView. See
MolAtom.getSetSeq().
Attachment points in ligands are represented according to attachment type
set in setAttachmentType(int).
addCols - additional columns to include:
COL_MOLECULE for including the target,
COL_SCAFFOLD for including the scaffold,
COL_MOLECULE | COL_SCAFFOLD for both,
0 for none
colorTag - is the molecule property name for setting the color map,
null if color should be stored in atomsets
chemaxon.sss.search.SearchException - on search error
public Molecule[] getLigandTableHeader(int headerType,
int addCols)
query scaffold R1 R2 R3 ...The query and the scaffold columns are optional. Color maps are stored in atom sets which can be written in MRV format and is automatically handled by MView. See
MolAtom.getSetSeq().
Rgroups in the table header are represented by any-atoms with rgroup index
set in atom map or by rgroup atoms.
headerType - is the header type:
HEADER_RGROUP for header with rgroup atoms (cannot be exported to SMILES)
HEADER_MAP for mapped any atoms (for SMILES export)
addCols - additional columns to include:
COL_MOLECULE for including the query,
COL_SCAFFOLD for including the scaffold,
COL_MOLECULE | COL_SCAFFOLD for both,
0 for none
public Molecule[] getLigandTableHeader(int headerType,
int addCols,
java.lang.String colorTag)
query scaffold R1 R2 R3 ...The query and the scaffold columns are optional. By default, color map is stored in atom sets which can be written in MRV format and is automatically handled by MView. See
MolAtom.getSetSeq().
Rgroups in the table header are represented by any-atoms with rgroup index
set in atom map or by rgroup atoms.
headerType - is the header type:
HEADER_RGROUP for header with rgroup atoms (cannot be exported to SMILES)
HEADER_MAP for mapped any atoms (for SMILES export)
addCols - additional columns to include:
COL_MOLECULE for including the query,
COL_SCAFFOLD for including the scaffold,
COL_MOLECULE | COL_SCAFFOLD for both,
0 for none
colorTag - is the molecule property name for setting the color map,
null if color should be stored in atomsetspublic boolean isLicensed()
MolSearch
isLicensed in interface chemaxon.license.LicensableisLicensed in class MolSearchtrue if searching is included in the license,
false otherwisepublic void setLicenseEnvironment(java.lang.String env)
MolSearch
setLicenseEnvironment in interface chemaxon.license.LicensablesetLicenseEnvironment in class MolSearch
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||