Package org.biojavax.bio.seq.io
Class UniProtCommentParser
- java.lang.Object
-
- org.biojavax.bio.seq.io.UniProtCommentParser
-
public class UniProtCommentParser extends Object
- Since:
- 1.5
- Author:
- Richard Holland
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUniProtCommentParser.EventA class to describe events for alternative product comments.static classUniProtCommentParser.InteractionA class to describe protein-protein interactions.static classUniProtCommentParser.IsoformA class to describe isoforms for alternative product comments.static classUniProtCommentParser.SeqCautionA class to describe seq caution entries.
-
Field Summary
Fields Modifier and Type Field Description static StringALTERNATIVE_PRODUCTSA name for a comment type.static StringBIOPHYSICOCHEMICAL_PROPERTIESA name for a comment type.static StringDATABASEA name for a comment type.static StringINTERACTIONA name for a comment type.static StringMASS_SPECTROMETRYA name for a comment type.static StringPTMA name for a comment type.static StringSEQUENCE_CAUTIONA name for a comment type.
-
Constructor Summary
Constructors Constructor Description UniProtCommentParser()Creates a new instance of UniProtCommentParser.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringgenerate()Generates a comment string based on the current values of the internal fields.StringgetAbsorptionMax()Getter for property absorptionMax.StringgetAbsorptionNote()Getter for property absorptionNote.StringgetCommentType()Getter for property commentType.StringgetDatabaseName()Getter for property databaseName.ListgetEvents()Getter for property events.ListgetInteractions()Getter for property interactions.ListgetIsoforms()Getter for property isoforms.StringgetKineticsNote()Getter for property kineticsNote.ListgetKMs()Getter for property KMs.intgetMolecularWeight()Getter for property molecularWeight.IntegergetMolWeightError()Getter for property molWeightError.StringgetMolWeightMethod()Getter for property molWeightMethod.intgetMolWeightRangeEnd()Getter for property molWeightRangeEnd.intgetMolWeightRangeStart()Getter for property molWeightRangeStart.StringgetNote()Getter for property note.StringgetPHDependence()Getter for property PHDependence.StringgetRedoxPotential()Getter for property redoxPotential.ListgetSeqCautions()Getter for property seqCautions.StringgetTemperatureDependence()Getter for property temperatureDependence.StringgetText()Getter for property text.StringgetUri()Getter for property uri.ListgetVMaxes()Getter for property VMaxes.static booleanisParseable(String c)Returns true if the comment may be parseable (starts with -!static booleanisParseable(Comment c)Returns true if the comment may be parseable (starts with -!voidparseComment(String c)Parses the comment string from the given comment and populates the internal fields appropriately.voidparseComment(Comment c)Parses the comment string from the given comment and populates the internal fields appropriately.voidsetAbsorptionMax(String absorptionMax)Setter for property absorptionMax.voidsetAbsorptionNote(String absorptionNote)Setter for property absorptionNote.voidsetCommentType(String commentType)Setter for property commentType.voidsetDatabaseName(String databaseName)Setter for property databaseName.voidsetEvents(List events)Setter for property events.voidsetInteractions(List interactions)Setter for property interactions.voidsetIsoforms(List isoforms)Setter for property isoforms.voidsetKineticsNote(String kineticsNote)Setter for property kineticsNote.voidsetKMs(List KMs)Setter for property KMs.voidsetMolecularWeight(int molecularWeight)Setter for property molecularWeight.voidsetMolWeightError(Integer molWeightError)Setter for property molWeightError.voidsetMolWeightMethod(String molWeightMethod)Setter for property molWeightMethod.voidsetMolWeightRangeEnd(int molWeightRangeEnd)Setter for property molWeightRangeEnd.voidsetMolWeightRangeStart(int molWeightRangeStart)Setter for property molWeightRangeStart.voidsetNote(String note)Setter for property note.voidsetPHDependence(String PHDependence)Setter for property PHDependence.voidsetRedoxPotential(String redoxPotential)Setter for property redoxPotential.voidsetSeqCautions(List seqCautions)Setter for property seqCautions.voidsetTemperatureDependence(String temperatureDependence)Setter for property temperatureDependence.voidsetText(String text)Setter for property text.voidsetUri(String uri)Setter for property uri.voidsetVMaxes(List VMaxes)Setter for property VMaxes.
-
-
-
Field Detail
-
BIOPHYSICOCHEMICAL_PROPERTIES
public static final String BIOPHYSICOCHEMICAL_PROPERTIES
A name for a comment type.- See Also:
- Constant Field Values
-
DATABASE
public static final String DATABASE
A name for a comment type.- See Also:
- Constant Field Values
-
MASS_SPECTROMETRY
public static final String MASS_SPECTROMETRY
A name for a comment type.- See Also:
- Constant Field Values
-
ALTERNATIVE_PRODUCTS
public static final String ALTERNATIVE_PRODUCTS
A name for a comment type.- See Also:
- Constant Field Values
-
INTERACTION
public static final String INTERACTION
A name for a comment type.- See Also:
- Constant Field Values
-
PTM
public static final String PTM
A name for a comment type.- See Also:
- Constant Field Values
-
SEQUENCE_CAUTION
public static final String SEQUENCE_CAUTION
A name for a comment type.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UniProtCommentParser
public UniProtCommentParser()
Creates a new instance of UniProtCommentParser.
-
-
Method Detail
-
parseComment
public void parseComment(Comment c) throws ParseException
Parses the comment string from the given comment and populates the internal fields appropriately. If the comment is not a UniProt comment (does not start with -!-) then an exception is thrown.- Parameters:
c- the comment to parse.- Throws:
ParseException- if the comment was not parseable.
-
parseComment
public void parseComment(String c) throws ParseException
Parses the comment string from the given comment and populates the internal fields appropriately. If the comment is not a UniProt comment (does not start with -!-) then an exception is thrown.- Parameters:
c- the comment to parse.- Throws:
ParseException- if the comment was not parseable.
-
isParseable
public static boolean isParseable(Comment c)
Returns true if the comment may be parseable (starts with -!-).- Parameters:
c- the comment to check.- Returns:
- true if it starts with -!-, false otherwise.
-
isParseable
public static boolean isParseable(String c)
Returns true if the comment may be parseable (starts with -!-).- Parameters:
c- the comment to check.- Returns:
- true if it starts with -!-, false otherwise.
-
generate
public String generate() throws ParseException
Generates a comment string based on the current values of the internal fields.- Returns:
- the comment string representing the current settings.
- Throws:
ParseException- if the current settings do not allow the creation of a correct comment string.
-
getCommentType
public String getCommentType()
Getter for property commentType.- Returns:
- Value of property commentType.
-
setCommentType
public void setCommentType(String commentType)
Setter for property commentType.- Parameters:
commentType- New value of property commentType.
-
setText
public void setText(String text)
Setter for property text.- Parameters:
text- New value of property text.
-
getDatabaseName
public String getDatabaseName()
Getter for property databaseName.- Returns:
- Value of property databaseName.
-
setDatabaseName
public void setDatabaseName(String databaseName)
Setter for property databaseName.- Parameters:
databaseName- New value of property databaseName.
-
setNote
public void setNote(String note)
Setter for property note.- Parameters:
note- New value of property note.
-
setUri
public void setUri(String uri)
Setter for property uri.- Parameters:
uri- New value of property uri.
-
getMolecularWeight
public int getMolecularWeight()
Getter for property molecularWeight.- Returns:
- Value of property molecularWeight.
-
setMolecularWeight
public void setMolecularWeight(int molecularWeight)
Setter for property molecularWeight.- Parameters:
molecularWeight- New value of property molecularWeight.
-
getMolWeightError
public Integer getMolWeightError()
Getter for property molWeightError.- Returns:
- Value of property molWeightError.
-
setMolWeightError
public void setMolWeightError(Integer molWeightError)
Setter for property molWeightError.- Parameters:
molWeightError- New value of property molWeightError.
-
getMolWeightRangeStart
public int getMolWeightRangeStart()
Getter for property molWeightRangeStart.- Returns:
- Value of property molWeightRangeStart.
-
setMolWeightRangeStart
public void setMolWeightRangeStart(int molWeightRangeStart)
Setter for property molWeightRangeStart.- Parameters:
molWeightRangeStart- New value of property molWeightRangeStart.
-
getMolWeightRangeEnd
public int getMolWeightRangeEnd()
Getter for property molWeightRangeEnd.- Returns:
- Value of property molWeightRangeEnd.
-
setMolWeightRangeEnd
public void setMolWeightRangeEnd(int molWeightRangeEnd)
Setter for property molWeightRangeEnd.- Parameters:
molWeightRangeEnd- New value of property molWeightRangeEnd.
-
getMolWeightMethod
public String getMolWeightMethod()
Getter for property molWeightMethod.- Returns:
- Value of property molWeightMethod.
-
setMolWeightMethod
public void setMolWeightMethod(String molWeightMethod)
Setter for property molWeightMethod.- Parameters:
molWeightMethod- New value of property molWeightMethod.
-
getInteractions
public List getInteractions()
Getter for property interactions.- Returns:
- Value of property interactions.
-
setInteractions
public void setInteractions(List interactions)
Setter for property interactions.- Parameters:
interactions- New value of property interactions.
-
getSeqCautions
public List getSeqCautions()
Getter for property seqCautions.- Returns:
- Value of property seqCautions.
-
setSeqCautions
public void setSeqCautions(List seqCautions)
Setter for property seqCautions.- Parameters:
seqCautions- New value of property seqCautions.
-
setEvents
public void setEvents(List events)
Setter for property events.- Parameters:
events- New value of property events.
-
getIsoforms
public List getIsoforms()
Getter for property isoforms.- Returns:
- Value of property isoforms.
-
setIsoforms
public void setIsoforms(List isoforms)
Setter for property isoforms.- Parameters:
isoforms- New value of property isoforms.
-
getAbsorptionMax
public String getAbsorptionMax()
Getter for property absorptionMax.- Returns:
- Value of property absorptionMax.
-
setAbsorptionMax
public void setAbsorptionMax(String absorptionMax)
Setter for property absorptionMax.- Parameters:
absorptionMax- New value of property absorptionMax.
-
getAbsorptionNote
public String getAbsorptionNote()
Getter for property absorptionNote.- Returns:
- Value of property absorptionNote.
-
setAbsorptionNote
public void setAbsorptionNote(String absorptionNote)
Setter for property absorptionNote.- Parameters:
absorptionNote- New value of property absorptionNote.
-
setKMs
public void setKMs(List KMs)
Setter for property KMs.- Parameters:
KMs- New value of property KMs.
-
setVMaxes
public void setVMaxes(List VMaxes)
Setter for property VMaxes.- Parameters:
VMaxes- New value of property VMaxes.
-
getKineticsNote
public String getKineticsNote()
Getter for property kineticsNote.- Returns:
- Value of property kineticsNote.
-
setKineticsNote
public void setKineticsNote(String kineticsNote)
Setter for property kineticsNote.- Parameters:
kineticsNote- New value of property kineticsNote.
-
getPHDependence
public String getPHDependence()
Getter for property PHDependence.- Returns:
- Value of property PHDependence.
-
setPHDependence
public void setPHDependence(String PHDependence)
Setter for property PHDependence.- Parameters:
PHDependence- New value of property PHDependence.
-
getRedoxPotential
public String getRedoxPotential()
Getter for property redoxPotential.- Returns:
- Value of property redoxPotential.
-
setRedoxPotential
public void setRedoxPotential(String redoxPotential)
Setter for property redoxPotential.- Parameters:
redoxPotential- New value of property redoxPotential.
-
getTemperatureDependence
public String getTemperatureDependence()
Getter for property temperatureDependence.- Returns:
- Value of property temperatureDependence.
-
setTemperatureDependence
public void setTemperatureDependence(String temperatureDependence)
Setter for property temperatureDependence.- Parameters:
temperatureDependence- New value of property temperatureDependence.
-
-