Skip to content
Snippets Groups Projects
Commit 64781be6 authored by marco's avatar marco
Browse files

added SetSequenceOffset() to AlignmentHandle

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1938 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 6713988e
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,7 @@ void export_sequence()
.def("__iter__", iterator<AlignmentHandle>())
.add_property("sequences", &AlignmentHandle::GetSequences)
.def("SetSequenceName", &AlignmentHandle::SetSequenceName)
.def("SetSequenceOffset", &AlignmentHandle::SetSequenceOffset)
;
class_<AlignedColumn>("AlignedColumn", no_init)
.def("GetIndex", &AlignedColumn::GetIndex)
......
......@@ -238,4 +238,10 @@ void AlignmentHandle::SetSequenceName(int seq_index, const String& name)
impl_->GetSequence(seq_index)->SetName(name);
}
void AlignmentHandle::SetSequenceOffset(int seq_index, int offset)
{
this->CheckValidity();
impl_->GetSequence(seq_index)->SetSequenceOffset(offset);
}
}}
......@@ -108,6 +108,7 @@ public:
/// \brief set name of sequence
void SetSequenceName(int seq_index, const String& name);
void SetSequenceOffset(int seq_index, int offset);
/// \brief Get list of sequences (read-only)
ConstSequenceList GetSequences() const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment