#include <sequence_impl.hh>
Inherits GenericPropContainerImpl.
Definition at line 49 of file sequence_impl.hh.
◆ SequenceImpl()
Construct new sequence object from sequence_string.
If you want to check whether the sequence String does only contain valid characters use CreateSequence
instead.
◆ Append()
◆ AttachView() [1/2]
attach entity view to sequence
- Exceptions
-
◆ AttachView() [2/2]
attach entity view to sequence
The sequence is mapped onto the chain with given name
◆ Copy()
create copy sequence
The newly created sequence has the same attached view.
◆ Cut()
void Cut |
( |
int |
start, |
|
|
int |
n |
|
) |
| |
◆ FromString()
Construct new sequence object from sequence_string.
◆ GetAttachedView()
get attached view. may be an invalid entity view
◆ GetFirstNonGap()
int GetFirstNonGap |
( |
| ) |
const |
Get position of first non-gap character in sequence.
◆ GetGaplessString()
String GetGaplessString |
( |
| ) |
const |
Get sequence as String ignoring gaps.
◆ GetIndex()
int GetIndex |
( |
const String & |
substr | ) |
const |
◆ GetLastNonGap()
int GetLastNonGap |
( |
| ) |
const |
Get position of last non-gap character in sequence.
◆ GetLength()
Get lenght of sequence, including gaps.
◆ GetName()
const String& GetName |
( |
| ) |
const |
◆ GetOffset()
Get sequence offset from N-terminus.
- See also
- SetOffset
◆ GetOneLetterCode()
char GetOneLetterCode |
( |
int |
position | ) |
const |
get one letter code of residue at position
◆ GetPos()
int GetPos |
( |
int |
residue_index | ) |
const |
Get zero-based index for given residue number.
- Exceptions
-
out_of_range,if | number is not included in sequence. |
◆ GetResidue()
get residue at position
will return the residue view at the given sequence position or an invalid residue view when no view is attached, the index is out of bounds or the position contains a gap.
◆ GetResidueIndex()
int GetResidueIndex |
( |
int |
pos | ) |
const |
Get residue index corresponding to given sequence position.
- Parameters
-
- Exceptions
-
out_of_range | if pos is not in [0, length-1]. |
◆ GetRole()
const String& GetRole |
( |
| ) |
const |
|
inline |
◆ GetString()
const String& GetString |
( |
| ) |
const |
|
inline |
◆ HasAttachedView()
bool HasAttachedView |
( |
| ) |
const |
whether the sequence has an attached view
◆ Normalise()
Remove everything 'unusual' from sequence.
◆ operator[]() [1/2]
char& operator[] |
( |
size_t |
index | ) |
|
|
inline |
◆ operator[]() [2/2]
char operator[] |
( |
size_t |
index | ) |
const |
|
inline |
◆ Replace()
void Replace |
( |
const String & |
str, |
|
|
int |
start, |
|
|
int |
end |
|
) |
| |
replace substring starting from start to end
◆ SetName()
void SetName |
( |
const String & |
name | ) |
|
◆ SetOffset()
void SetOffset |
( |
int |
offset | ) |
|
Set sequence offset.
By default the sequence offset is zero, i.e. the beginning of the sequence lies exactly at the N-terminus. Setting the sequence offset to a positive number will shift the sequence towards the C-terminus.
◆ SetOneLetterCode()
void SetOneLetterCode |
( |
int |
position, |
|
|
char |
new_char |
|
) |
| |
◆ SetRole()
void SetRole |
( |
const String & |
role | ) |
|
|
inline |
◆ SetString()
void SetString |
( |
const String & |
seq | ) |
|
◆ ShiftRegion()
void ShiftRegion |
( |
int |
start, |
|
|
int |
end, |
|
|
int |
amount |
|
) |
| |
The documentation for this class was generated from the following file: