public class SequenceSegment extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
nTerminus
Boolean indicating whether the segment is sequencing from the N (true) or
the C (false) terminus.
|
Constructor and Description |
---|
SequenceSegment(int terminalIndex,
boolean nTerminus)
Constructor.
|
SequenceSegment(SequenceSegment sequenceSegment)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addMass(double mass)
Adds a mass to the segment.
|
void |
addModificationTerminus(String modification)
Adds a modification to the terminus of sequencing.
|
void |
addModificationTerminus(String modification,
double modificationMass)
Adds a modification to the terminus of sequencing.
|
void |
addMutation(Integer index,
Character aa)
Adds a mutation to the segment.
|
void |
appendTerminus(AminoAcid aminoAcid)
Appends an amino acid to the terminus of sequencing.
|
void |
appendTerminus(AminoAcidPattern aminoAcidPattern)
Appends an amino acid pattern to the terminus of sequencing.
|
void |
appendTerminus(AminoAcidSequence aminoAcidSequence)
Appends an amino acid sequence to the terminus of sequencing.
|
void |
appendTerminus(SequenceSegment sequenceSegment)
Appends a sequence segment to the terminus of sequencing.
|
int |
getIndexOnProtein()
Returns the starting index of the segment on the protein.
|
double |
getMass()
Returns the mass of the segment.
|
HashMap<Integer,String> |
getModificationMatches()
Returns a map of modifications on that segment: index on the segment -
modification name.
|
Character |
getMutation()
Returns the mutated amino acid, null if none.
|
Integer |
getMutationIndex()
Returns the mutation index, null if none.
|
HashMap<Integer,Character> |
getMutations()
Returns a map of mutations on that segment: index on the segment -
mutated character.
|
int |
getnMutations()
Returns the number of mutations.
|
String |
getSegmentSequence(String sequence)
Returns the sequence of this segment.
|
int |
getTerminalIndex()
Returns the index of the terminal on the protein sequence.
|
int |
length()
Returns the length of the segment.
|
public final boolean nTerminus
public SequenceSegment(int terminalIndex, boolean nTerminus)
terminalIndex
- the index of the segment on the proteinnTerminus
- indicates whether the segment is indexed to the N (true)
or C (false) terminuspublic SequenceSegment(SequenceSegment sequenceSegment)
sequenceSegment
- another sequence segmentpublic int length()
public HashMap<Integer,Character> getMutations()
public HashMap<Integer,String> getModificationMatches()
public int getTerminalIndex()
public int getIndexOnProtein()
public Integer getMutationIndex()
public Character getMutation()
public double getMass()
public void addMass(double mass)
mass
- the mass to addpublic void appendTerminus(SequenceSegment sequenceSegment)
sequenceSegment
- a sequence segmentpublic void appendTerminus(AminoAcidSequence aminoAcidSequence)
aminoAcidSequence
- an amino acid sequencepublic void appendTerminus(AminoAcidPattern aminoAcidPattern)
aminoAcidPattern
- an amino acid patternpublic void appendTerminus(AminoAcid aminoAcid)
aminoAcid
- an amino acidpublic void addModificationTerminus(String modification)
modification
- the modificationpublic void addModificationTerminus(String modification, double modificationMass)
modification
- the name of the modificationmodificationMass
- the mass of the modificationpublic void addMutation(Integer index, Character aa)
index
- the index of the mutated amino acidaa
- the mutated amino acidpublic int getnMutations()
Copyright © 2016. All rights reserved.