public class ProteinMatch extends IdentificationMatch
IdentificationMatch.MatchType
Modifier and Type | Field and Description |
---|---|
static 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(String proteinAccession)
Constructor for the protein match.
|
Modifier and Type | Method and Description |
---|---|
void |
addPeptideMatch(String peptideMatchKey)
Add a subordinated peptide key.
|
void |
addTheoreticProtein(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(String aProtein)
Returns a boolean indicating whether a protein was found in this protein
match.
|
static boolean |
contains(String sharedKey,
String uniqueKey)
Returns a boolean indicating whether a protein match contains another set
of matches.
|
static String[] |
getAccessions(String key)
Returns a list of accessions from the given key.
|
String |
getKey()
returns the key of a match.
|
String |
getMainMatch()
Returns the main match accession after protein inference.
|
int |
getNProteins()
Returns the number of proteins for this match.
|
static int |
getNProteins(String matchKey)
Returns the number of proteins for the match corresponding to the given.
|
int |
getPeptideCount()
Returns the number of peptides found.
|
ArrayList<String> |
getPeptideMatches()
Getter for the peptide keys.
|
static String |
getProteinMatchKey(Peptide peptide)
Convenience method which returns the protein key of a peptide.
|
ArrayList<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(String key)
Convenience method indicating whether a match is decoy based on the match
key.
|
void |
setMainMatch(String mainMatch)
Sets the main protein accession after protein inference.
|
addUrParam, getParameterKey, getUrParam
public static final String PROTEIN_KEY_SPLITTER
public ProteinMatch()
public ProteinMatch(String proteinAccession) throws IllegalArgumentException
proteinAccession
- the matching proteinIllegalArgumentException
public ProteinMatch(Peptide peptide)
peptide
- the corresponding peptide matchpublic ArrayList<String> getTheoreticProteinsAccessions()
public void addTheoreticProtein(String proteinAccession)
proteinAccession
- the matching proteinpublic String getMainMatch()
public void setMainMatch(String mainMatch)
mainMatch
- the main matchpublic ArrayList<String> getPeptideMatches()
public void addPeptideMatch(String peptideMatchKey)
peptideMatchKey
- a peptide keypublic int getPeptideCount()
public boolean isDecoy()
public static boolean isDecoy(String key)
key
- the match keypublic String getKey()
IdentificationMatch
getKey
in class IdentificationMatch
public static String getProteinMatchKey(Peptide peptide)
peptide
- the considered peptidepublic static int getNProteins(String matchKey)
matchKey
- the given keypublic int getNProteins()
public static boolean contains(String sharedKey, 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(String aProtein)
aProtein
- the inspected proteinpublic static String[] getAccessions(String key)
key
- the given keypublic IdentificationMatch.MatchType getType()
IdentificationMatch
getType
in class IdentificationMatch
Copyright © 2013. All Rights Reserved.