public class Monomer extends Object implements Serializable
| Constructor and Description |
|---|
Monomer()
constructor
|
Monomer(String polymerType,
String monomerType,
String naturalAnalog,
String alternateId)
Create a new monomer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAttachment(Attachment attachment)
Try to add a new attachment to this monomer
|
boolean |
attachmentContains(Monomer monomer) |
boolean |
attachmentEquals(Monomer monomer) |
boolean |
containAnyAtom() |
static Monomer |
fromJSON(String json) |
String |
getAlternateId() |
Attachment |
getAttachment(String label)
get a specific attachment by passing in a label
|
List<Attachment> |
getAttachmentList() |
String |
getAttachmentListString() |
String |
getCanSMILES() |
MoleculeProperty |
getCapMoleculeInfo(String label)
This method returns the MoleculeInfo for the input R group label of this
monomer
|
int |
getId() |
String |
getMolfile() |
String |
getMonomerType() |
String |
getName() |
String |
getNaturalAnalog()
get the natural analog of this monomer.
|
String |
getPolymerType() |
boolean |
isAdHocMonomer() |
boolean |
isModified()
Test if this monomer has been modified.
|
boolean |
isNewMonomer() |
boolean |
isSameType(Monomer m)
Compare this momoner with another one, polymerType, monomerType and
naturalAnalog (could be derived) must be the same to return true
|
void |
setAdHocMonomer(boolean adHocMonomer) |
void |
setAlternateId(String alternateId) |
void |
setAttachmentList(List<Attachment> attachmentList) |
void |
setCanSMILES(String canSMILES) |
void |
setId(int id) |
void |
setMolfile(String molfile) |
void |
setMonomerType(String monomerType) |
void |
setName(String name) |
void |
setNaturalAnalog(String naturalAnalog) |
void |
setNewMonomer(boolean newMonomer) |
void |
setPolymerType(String polymerType) |
String |
toJSON() |
public static final String NUCLIEC_ACID_POLYMER_TYPE
public static final String PEPTIDE_POLYMER_TYPE
public static final String CHEMICAL_POLYMER_TYPE
public static final String[] SUPPORTED_POLYMER_TYPES
public static final String BACKBONE_MOMONER_TYPE
public static final String BRANCH_MOMONER_TYPE
public static final String UNDEFINED_MOMONER_TYPE
public static final String STARTING_NAME
public static final String ATTACHMENT_LIST_DELIMITER
public static final String ID_A
public static final String ID_G
public static final String ID_C
public static final String ID_U
public static final String ID_T
public static final String ID_R
public static final String ID_dR
public static final String ID_P
public static final String ID_X
public static final String ID_ALA
public static final String ID_ARG
public static final String ID_ASN
public static final String ID_ASP
public static final String ID_CYS
public static final String ID_GLU
public static final String ID_GLN
public static final String ID_GLY
public static final String ID_HIS
public static final String ID_ILE
public static final String ID_LEU
public static final String ID_LYS
public static final String ID_MET
public static final String ID_PHE
public static final String ID_PRO
public static final String ID_SER
public static final String ID_THR
public static final String ID_TRP
public static final String ID_TYR
public static final String ID_VAL
public static final String ID_CHEMICAL_STRUCTURE
public Monomer()
public Monomer(String polymerType, String monomerType, String naturalAnalog, String alternateId)
polymerType - : unique text ID for the monomer, will be used in
polymer notationmonomerType - : monomer type, Backbone, Branch, UnDefinednaturalAnalog - : the ID of its closest natural analogalternateId - : unique text ID for the monomer, will be used in
polymer notationpublic int getId()
public void setId(int id)
public String getAlternateId()
public void setAlternateId(String alternateId)
public String getNaturalAnalog()
public void setNaturalAnalog(String naturalAnalog)
public void setAdHocMonomer(boolean adHocMonomer)
public boolean isAdHocMonomer()
public String getCanSMILES()
public void setCanSMILES(String canSMILES)
public String getMonomerType()
public void setMonomerType(String monomerType)
public String getPolymerType()
public void setPolymerType(String polymerType)
public List<Attachment> getAttachmentList()
public void setAttachmentList(List<Attachment> attachmentList)
public String getMolfile()
public void setMolfile(String molfile)
public Attachment getAttachment(String label)
label - : unique for each attach pointpublic MoleculeProperty getCapMoleculeInfo(String label) throws org.helm.chemtoolkit.CTKException, ChemistryException, IOException
label - - R1, R2...org.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKitChemistryException - if chemistry could not be initializedIOException - if molecule can not be readpublic boolean addAttachment(Attachment attachment)
attachment - -- new attachment to be add inpublic String getName()
public void setName(String name)
public boolean isModified()
public boolean isSameType(Monomer m)
m - monomerpublic String getAttachmentListString()
public boolean isNewMonomer()
public void setNewMonomer(boolean newMonomer)
public boolean attachmentEquals(Monomer monomer)
public boolean attachmentContains(Monomer monomer)
public boolean containAnyAtom()
throws IOException,
org.helm.chemtoolkit.CTKException,
ChemistryException
IOExceptionorg.helm.chemtoolkit.CTKExceptionChemistryExceptionpublic String toJSON()
Copyright © 2017. All rights reserved.