public class ProteinMatch extends IdentificationMatch
IdentificationMatch.MatchType
Modifier and Type | Field and Description |
---|---|
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)
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.
|
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.
|
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 |
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, getUrParam
public static final java.lang.String PROTEIN_KEY_SPLITTER
public ProteinMatch()
public ProteinMatch(java.lang.String proteinAccession) throws java.lang.IllegalArgumentException
proteinAccession
- the matching proteinjava.lang.IllegalArgumentException
public ProteinMatch(Peptide peptide)
peptide
- the corresponding peptide matchpublic 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()
IdentificationMatch
getKey
in class IdentificationMatch
public static java.lang.String getProteinMatchKey(Peptide peptide)
peptide
- the considered peptidepublic 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 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 IdentificationMatch.MatchType getType()
IdentificationMatch
getType
in class IdentificationMatch
Copyright © 2013. All Rights Reserved.