public class PeptidePropertiesImpl extends Object implements IPeptideProperties
IPeptideProperties
,
PeptideProperties
Constructor and Description |
---|
PeptidePropertiesImpl() |
Modifier and Type | Method and Description |
---|---|
Map<AminoAcidCompound,Double> |
getAAComposition(ProteinSequence sequence)
Returns the composition of the 20 standard amino acid in the sequence.
|
double |
getAbsorbance(ProteinSequence sequence,
boolean assumeCysReduced)
Returns the absorbance (optical density) of sequence.
|
double |
getApliphaticIndex(ProteinSequence sequence)
Returns the apliphatic index of sequence.
|
double |
getAvgHydropathy(ProteinSequence sequence)
Returns the average hydropathy value of sequence.
|
double |
getEnrichment(ProteinSequence sequence,
AminoAcidCompound aminoAcidCode)
Returns the composition of specified amino acid in the sequence.
|
double |
getExtinctionCoefficient(ProteinSequence sequence,
boolean assumeCysReduced)
Returns the extinction coefficient of sequence.
|
double |
getInstabilityIndex(ProteinSequence sequence)
Returns the instability index of sequence.
|
double |
getIsoelectricPoint(ProteinSequence sequence) |
double |
getIsoelectricPoint(ProteinSequence sequence,
boolean useExpasyValues)
Returns the isoelectric point of sequence.
|
double |
getMolecularWeight(ProteinSequence sequence)
Returns the molecular weight of sequence.
|
double |
getMolecularWeight(ProteinSequence sequence,
File aminoAcidCompositionFile)
Returns the molecular weight of sequence.
|
double |
getMolecularWeight(ProteinSequence sequence,
File elementMassFile,
File aminoAcidCompositionFile)
Returns the molecular weight of sequence.
|
double |
getMolecularWeightBasedOnXML(ProteinSequence sequence,
AminoAcidCompositionTable aminoAcidCompositionTable)
Returns the molecular weight of sequence.
|
double |
getNetCharge(ProteinSequence sequence) |
double |
getNetCharge(ProteinSequence sequence,
boolean useExpasyValues) |
double |
getNetCharge(ProteinSequence sequence,
boolean useExpasyValues,
double pHPoint)
Returns the net charge of sequence at pH 7.
|
AminoAcidCompositionTable |
obtainAminoAcidCompositionTable(File aminoAcidCompositionFile)
This method would initialize amino acid composition table based on the input xml files and stores the table for usage in future calls to
IPeptideProperties.getMolecularWeightBasedOnXML(ProteinSequence, AminoAcidCompositionTable).
|
AminoAcidCompositionTable |
obtainAminoAcidCompositionTable(File elementMassFile,
File aminoAcidCompositionFile)
This method would initialize amino acid composition table based on the input xml files and stores the table for usage in future calls to
IPeptideProperties.getMolecularWeightBasedOnXML(ProteinSequence, AminoAcidCompositionTable).
|
public double getMolecularWeight(ProteinSequence sequence)
IPeptideProperties
getMolecularWeight
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters onlyProteinSequence
public double getMolecularWeight(ProteinSequence sequence, File aminoAcidCompositionFile) throws JAXBException, FileNotFoundException
IPeptideProperties
getMolecularWeight
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters only
xml file that details the mass of each elements and isotopesaminoAcidCompositionFile
- xml file that details the composition of amino acidsJAXBException
- thrown if unable to properly parse either elementMassFile or aminoAcidCompositionFileFileNotFoundException
- thrown if either elementMassFile or aminoAcidCompositionFile are not foundpublic double getMolecularWeight(ProteinSequence sequence, File elementMassFile, File aminoAcidCompositionFile) throws JAXBException, FileNotFoundException
IPeptideProperties
getMolecularWeight
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters onlyelementMassFile
- xml file that details the mass of each elements and isotopesaminoAcidCompositionFile
- xml file that details the composition of amino acidsJAXBException
- thrown if unable to properly parse either elementMassFile or aminoAcidCompositionFileFileNotFoundException
- thrown if either elementMassFile or aminoAcidCompositionFile are not foundpublic double getMolecularWeightBasedOnXML(ProteinSequence sequence, AminoAcidCompositionTable aminoAcidCompositionTable)
IPeptideProperties
getMolecularWeightBasedOnXML
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters onlyaminoAcidCompositionTable
- a amino acid composition table obtained by calling IPeptideProperties.obtainAminoAcidCompositionTablepublic AminoAcidCompositionTable obtainAminoAcidCompositionTable(File aminoAcidCompositionFile) throws JAXBException, FileNotFoundException
IPeptideProperties
obtainAminoAcidCompositionTable
in interface IPeptideProperties
aminoAcidCompositionFile
- xml file that details the composition of amino acidsJAXBException
- thrown if unable to properly parse either elementMassFile or aminoAcidCompositionFileFileNotFoundException
- thrown if either elementMassFile or aminoAcidCompositionFile are not foundpublic AminoAcidCompositionTable obtainAminoAcidCompositionTable(File elementMassFile, File aminoAcidCompositionFile) throws JAXBException, FileNotFoundException
IPeptideProperties
obtainAminoAcidCompositionTable
in interface IPeptideProperties
elementMassFile
- xml file that details the mass of each elements and isotopesaminoAcidCompositionFile
- xml file that details the composition of amino acidsJAXBException
- thrown if unable to properly parse either elementMassFile or aminoAcidCompositionFileFileNotFoundException
- thrown if either elementMassFile or aminoAcidCompositionFile are not foundpublic double getExtinctionCoefficient(ProteinSequence sequence, boolean assumeCysReduced)
IPeptideProperties
getExtinctionCoefficient
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters onlyassumeCysReduced
- true if Cys are assumed to be reduced and false if Cys are
assumed to form cystinesProteinSequence
public double getAbsorbance(ProteinSequence sequence, boolean assumeCysReduced)
IPeptideProperties
getAbsorbance
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters onlyassumeCysReduced
- true if Cys are assumed to be reduced and false if Cys are
assumed to form cystinesProteinSequence
public double getInstabilityIndex(ProteinSequence sequence)
IPeptideProperties
getInstabilityIndex
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters onlyProteinSequence
public double getApliphaticIndex(ProteinSequence sequence)
IPeptideProperties
getApliphaticIndex
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters onlyProteinSequence
public double getAvgHydropathy(ProteinSequence sequence)
IPeptideProperties
getAvgHydropathy
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters onlyProteinSequence
public double getIsoelectricPoint(ProteinSequence sequence, boolean useExpasyValues)
IPeptideProperties
getIsoelectricPoint
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters onlyuseExpasyValues
- whether to use Expasy values (Default) or Innovagen valuesProteinSequence
public double getIsoelectricPoint(ProteinSequence sequence)
getIsoelectricPoint
in interface IPeptideProperties
public double getNetCharge(ProteinSequence sequence)
getNetCharge
in interface IPeptideProperties
public double getNetCharge(ProteinSequence sequence, boolean useExpasyValues)
getNetCharge
in interface IPeptideProperties
public double getNetCharge(ProteinSequence sequence, boolean useExpasyValues, double pHPoint)
IPeptideProperties
getNetCharge
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters onlyuseExpasyValues
- whether to use Expasy values (Default) or Innovagen valuespHPoint
- the pH value to use for computation of the net charge. Default at 7.ProteinSequence
public double getEnrichment(ProteinSequence sequence, AminoAcidCompound aminoAcidCode)
IPeptideProperties
getEnrichment
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters onlyaminoAcidCode
- the code of the amino acid to computeProteinSequence
,
AminoAcidCompound
public Map<AminoAcidCompound,Double> getAAComposition(ProteinSequence sequence)
IPeptideProperties
getAAComposition
in interface IPeptideProperties
sequence
- a protein sequence consisting of non-ambiguous characters onlyProteinSequence
,
AminoAcidCompound
Copyright © 2000–2016 BioJava. All rights reserved.