public class PeptideProteinMatch extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PeptideProteinMatch.HitType |
| Constructor and Description |
|---|
PeptideProteinMatch(String accession,
com.google.common.base.Optional<String> searchDatabase,
com.google.common.base.Optional<String> previousAA,
com.google.common.base.Optional<String> nextAA,
int start,
int end,
PeptideProteinMatch.HitType hitType)
Constructor, none of the parameters can be null
The previous and next AA are wrapped in com.google.common.base.Optional so that it is possible to differentiate
between a unknown AA and when the information is not available.
|
PeptideProteinMatch(String accession,
com.google.common.base.Optional<String> searchDatabase,
com.google.common.base.Optional<String> previousAA,
com.google.common.base.Optional<String> nextAA,
PeptideProteinMatch.HitType hitType)
Constructor, none of the parameters can be null.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAccession()
Returns the protein accession number
|
int |
getEnd()
Returns the end position of the peptide within the protein.
|
PeptideProteinMatch.HitType |
getHitType()
Returns the HitType.
|
com.google.common.base.Optional<String> |
getNextAA()
Returns the amino acid that occurs after the end of the peptide.
|
com.google.common.base.Optional<String> |
getPreviousAA()
Returns the amino acid that occurs before the start of the peptide.
|
com.google.common.base.Optional<String> |
getSearchDatabase()
Returns the search database contains this match.
|
int |
getStart()
Returns the start position of the peptide within the protein.
|
int |
hashCode() |
boolean |
isCTerm()
Returns true if the peptide in on the C-Term of the protein, false otherwise
|
boolean |
isNTerm()
Returns true if the peptide in on the N-Term of the protein, false otherwise
|
public PeptideProteinMatch(String accession, com.google.common.base.Optional<String> searchDatabase, com.google.common.base.Optional<String> previousAA, com.google.common.base.Optional<String> nextAA, PeptideProteinMatch.HitType hitType)
accession - the protein accessionsearchDatabase - the search databasepreviousAA - the previous amino acid if the peptide is at the N-Term of the protein use "-", if the
previous amino acid is unknown use "?" and if the AA information is not given use Optional.absentnextAA - the next amino acid if the peptide is at the C-Term of the protein use "-", if the
next amino acid is unknown use "?" and if the AA information is not given use Optional.absenthitType - indicate what kind of hit it was. It can be: {TARGET, DECOY, UNKNOWN}public PeptideProteinMatch(String accession, com.google.common.base.Optional<String> searchDatabase, com.google.common.base.Optional<String> previousAA, com.google.common.base.Optional<String> nextAA, int start, int end, PeptideProteinMatch.HitType hitType)
accession - the protein accessionsearchDatabase - the search databasepreviousAA - the previous amino acid if the peptide is at the N-Term of the protein use "-", if the
previous amino acid is unknown use "?" and if the AA information is not given use Optional.absentnextAA - the next amino acid if the peptide is at the C-Term of the protein use "-", if the
next amino acid is unknown use "?" and if the AA information is not given use Optional.absentstart - the start position of the peptide within the proteinend - the end position of the peptide within the proteinpublic String getAccession()
public boolean isNTerm()
public boolean isCTerm()
public com.google.common.base.Optional<String> getPreviousAA()
public com.google.common.base.Optional<String> getNextAA()
public int getStart()
public int getEnd()
public PeptideProteinMatch.HitType getHitType()
public com.google.common.base.Optional<String> getSearchDatabase()
Copyright © 2016. All Rights Reserved.