#include <sequence_impl.hh>
Inherits ost::GenericPropContainerImpl.
Data Structures | |
| struct | Shift |
Public Member Functions | |
| int | GetResidueIndex (int pos) const |
| int | GetPos (int residue_index) const |
| int | GetFirstNonGap () const |
| int | GetLastNonGap () const |
| const String & | GetName () const |
| void | SetName (const String &name) |
| void | Cut (int start, int n) |
| void | ShiftRegion (int start, int end, int amount) |
| const String & | GetString () const |
| void | SetString (const String &seq) |
| void | Replace (const String &str, int start, int end) |
| String | GetGaplessString () const |
| int | GetSequenceOffset () const |
| void | SetSequenceOffset (int offset) |
| int | GetLength () const |
| SequenceImpl (const String &seq_name, const String &sequence_string) | |
| char | GetOneLetterCode (int position) const |
| mol::ResidueView | GetResidue (int position) const |
| mol::EntityView | GetAttachedView () const |
| void | AttachView (const mol::EntityView &view) |
| SequenceImplPtr | Copy () const |
| void | AttachView (const mol::EntityView &view, const String &chain_name) |
| bool | HasAttachedView () const |
Static Public Member Functions | |
| static SequenceImplPtr | FromString (const String &seq_name, const String &sequence_string) |
Definition at line 46 of file sequence_impl.hh.
| SequenceImpl | ( | const String & | seq_name, | |
| const String & | sequence_string | |||
| ) |
Construct new sequence object from sequence_string.
If you want to check whether the sequence String does only contain valid characters use CreateSequence instead.
| void AttachView | ( | const mol::EntityView & | view, | |
| const String & | chain_name | |||
| ) |
attach entity view to sequence
The sequence is mapped onto the chain with given name
| void AttachView | ( | const mol::EntityView & | view | ) |
attach entity view to sequence
| IntegrityError | when the view contains more than one chain |
| SequenceImplPtr Copy | ( | ) | const |
create copy sequence
The newly created sequence has the same attached view.
| void Cut | ( | int | start, | |
| int | n | |||
| ) |
| static SequenceImplPtr FromString | ( | const String & | seq_name, | |
| const String & | sequence_string | |||
| ) | [static] |
Construct new sequence object from sequence_string.
| mol::EntityView GetAttachedView | ( | ) | const |
get attached view. may be an invalid entity view
| int GetFirstNonGap | ( | ) | const |
Get position of first non-gap character in sequence.
| String GetGaplessString | ( | ) | const |
Get sequence as String ignoring gaps.
| int GetLastNonGap | ( | ) | const |
Get position of last non-gap character in sequence.
| int GetLength | ( | ) | const |
Get lenght of sequence, including gaps.
| const String& GetName | ( | ) | const |
| char GetOneLetterCode | ( | int | position | ) | const |
get one letter code of residue at position
| int GetPos | ( | int | residue_index | ) | const |
Get zero-based index for given residue number.
| out_of_range,if | number is not included in sequence. |
| mol::ResidueView GetResidue | ( | int | position | ) | const |
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.
| int GetResidueIndex | ( | int | pos | ) | const |
Get residue index corresponding to given sequence position.
| pos | zero-based index |
| out_of_range | if pos is not in [0, length-1]. |
| int GetSequenceOffset | ( | ) | const |
| const String& GetString | ( | ) | const [inline] |
Definition at line 74 of file sequence_impl.hh.
| bool HasAttachedView | ( | ) | const |
whether the sequence has an attached view
| void Replace | ( | const String & | str, | |
| int | start, | |||
| int | end | |||
| ) |
replace substring starting from start to end
| void SetName | ( | const String & | name | ) |
| void SetSequenceOffset | ( | 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.
| void SetString | ( | const String & | seq | ) |
Set sequence String.
| void ShiftRegion | ( | int | start, | |
| int | end, | |||
| int | amount | |||
| ) |
1.5.8