public class ProteinMatch extends IdentificationMatch
IdentificationMatch.MatchType| Modifier and Type | Field and Description |
|---|---|
static double |
maxX
The maximal share of 'X' allowed in a peptide sequence.
|
static java.lang.String |
PROTEIN_KEY_SPLITTER
The splitter in the key between spectrumFile and spectrumTitle.
|
| Constructor and Description |
|---|
ProteinMatch()
Constructor for the protein match.
|
ProteinMatch(Peptide peptide,
java.lang.String peptideMatchKey)
Constructor for the protein match.
|
ProteinMatch(java.lang.String proteinAccession)
Constructor for the protein match.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPeptideMatch(java.lang.String peptideMatchKey)
Add a subordinated peptide key.
|
void |
addTheoreticProtein(java.lang.String proteinAccession)
Setter for the matching protein.
|
boolean |
contains(ProteinMatch proteinMatch)
Returns a boolean indicating whether the protein match contains another
set of theoretic proteins.
|
boolean |
contains(java.lang.String aProtein)
Returns a boolean indicating whether a protein was found in this protein
match.
|
static boolean |
contains(java.lang.String sharedKey,
java.lang.String uniqueKey)
Returns a boolean indicating whether a protein match contains another set
of matches.
|
static java.lang.String[] |
getAccessions(java.lang.String key)
Returns a list of accessions from the given key.
|
static java.util.ArrayList<java.lang.String> |
getCommonProteins(java.lang.String group1,
java.lang.String group2)
Returns the common proteins between two protein groups.
|
java.lang.String |
getKey()
returns the key of a match.
|
java.lang.String |
getMainMatch()
Returns the main match accession after protein inference.
|
int |
getNProteins()
Returns the number of proteins for this match.
|
static int |
getNProteins(java.lang.String matchKey)
Returns the number of proteins for the match corresponding to the given.
|
static java.util.ArrayList<java.lang.String> |
getOtherProteins(java.lang.String group1,
java.lang.String group2)
Returns the proteins in a group (group1) which are not in another group
(group2).
|
int |
getPeptideCount()
Returns the number of peptides found.
|
java.util.ArrayList<java.lang.String> |
getPeptideMatches()
Getter for the peptide keys.
|
static java.lang.String |
getProteinMatchKey(Peptide peptide)
Convenience method which returns the protein key of a peptide.
|
java.util.ArrayList<java.lang.String> |
getTheoreticProteinsAccessions()
Returns the accessions of the possible theoretic proteins.
|
IdentificationMatch.MatchType |
getType()
Returns the type of match.
|
boolean |
hasEnzymaticPeptide(java.lang.String accession,
Enzyme enzyme,
AminoAcidPattern.MatchingType matchingType,
java.lang.Double massTolerance)
Indicates whether the protein group has an enzymatic peptide when
considering the given accession as main accession.
|
boolean |
isDecoy()
Method indicates if the protein match is a decoy one.
|
static boolean |
isDecoy(java.lang.String key)
Convenience method indicating whether a match is decoy based on the match
key.
|
void |
setMainMatch(java.lang.String mainMatch)
Sets the main protein accession after protein inference.
|
addUrParam, getParameterKey, getUrParampublic static final java.lang.String PROTEIN_KEY_SPLITTER
public static final double maxX
public ProteinMatch()
public ProteinMatch(java.lang.String proteinAccession)
throws java.lang.IllegalArgumentException
proteinAccession - the matching proteinjava.lang.IllegalArgumentExceptionpublic ProteinMatch(Peptide peptide, java.lang.String peptideMatchKey) throws java.io.IOException, java.sql.SQLException, java.lang.ClassNotFoundException, java.lang.InterruptedException
peptide - the corresponding peptide matchpeptideMatchKey - the key of the peptide matchjava.io.IOExceptionjava.sql.SQLExceptionjava.lang.ClassNotFoundExceptionjava.lang.InterruptedExceptionpublic java.util.ArrayList<java.lang.String> getTheoreticProteinsAccessions()
public void addTheoreticProtein(java.lang.String proteinAccession)
proteinAccession - the matching proteinpublic java.lang.String getMainMatch()
public void setMainMatch(java.lang.String mainMatch)
mainMatch - the main matchpublic java.util.ArrayList<java.lang.String> getPeptideMatches()
public void addPeptideMatch(java.lang.String peptideMatchKey)
peptideMatchKey - a peptide keypublic int getPeptideCount()
public boolean isDecoy()
public static boolean isDecoy(java.lang.String key)
key - the match keypublic java.lang.String getKey()
IdentificationMatchgetKey in class IdentificationMatchpublic static java.lang.String getProteinMatchKey(Peptide peptide) throws java.io.IOException, java.sql.SQLException, java.lang.ClassNotFoundException, java.lang.InterruptedException
peptide - the considered peptidejava.io.IOExceptionjava.sql.SQLExceptionjava.lang.ClassNotFoundExceptionjava.lang.InterruptedExceptionpublic static int getNProteins(java.lang.String matchKey)
matchKey - the given keypublic int getNProteins()
public static boolean contains(java.lang.String sharedKey,
java.lang.String uniqueKey)
sharedKey - the key of the protein of interestuniqueKey - the key of the protein supposedly containedpublic static java.util.ArrayList<java.lang.String> getOtherProteins(java.lang.String group1,
java.lang.String group2)
group1 - the key of the shared groupgroup2 - the key of the unique grouppublic static java.util.ArrayList<java.lang.String> getCommonProteins(java.lang.String group1,
java.lang.String group2)
group1 - key of the first groupgroup2 - key of the second grouppublic boolean contains(ProteinMatch proteinMatch)
proteinMatch - another protein matchpublic boolean contains(java.lang.String aProtein)
aProtein - the inspected proteinpublic static java.lang.String[] getAccessions(java.lang.String key)
key - the given keypublic boolean hasEnzymaticPeptide(java.lang.String accession,
Enzyme enzyme,
AminoAcidPattern.MatchingType matchingType,
java.lang.Double massTolerance)
throws java.io.IOException,
java.lang.IllegalArgumentException,
java.lang.InterruptedException,
java.io.FileNotFoundException,
java.lang.ClassNotFoundException
accession - the candidate main accessionenzyme - the enzyme usedmatchingType - the matching typemassTolerance - the mass tolerance for matching type
'indistiguishibleAminoAcids'. Can be null otherwisejava.io.IOExceptionjava.lang.IllegalArgumentExceptionjava.lang.InterruptedExceptionjava.io.FileNotFoundExceptionjava.lang.ClassNotFoundExceptionpublic IdentificationMatch.MatchType getType()
IdentificationMatchgetType in class IdentificationMatchCopyright © 2014. All Rights Reserved.