Skip to content
Snippets Groups Projects
Commit 5c4be5cf authored by Studer Gabriel's avatar Studer Gabriel
Browse files

set neff value when generating sub-profile

parent 8b3a9cfd
No related branches found
No related tags found
No related merge requests found
...@@ -755,7 +755,8 @@ probabilities between Match, Insertion or Deletion states or neff values ...@@ -755,7 +755,8 @@ probabilities between Match, Insertion or Deletion states or neff values
:type to: :class:`int` :type to: :class:`int`
:returns: sub-profile as defined by given indices :returns: sub-profile as defined by given indices
(:attr:`null_model` is copied) (:attr:`null_model` and :attr:`neff` are copied,
you might want to manually reset neff)
:rtype: :class:`ProfileHandle` :rtype: :class:`ProfileHandle`
:raises: :exc:`~exceptions.Error` if *to* <= *from* or :raises: :exc:`~exceptions.Error` if *to* <= *from* or
......
...@@ -149,6 +149,7 @@ ProfileHandlePtr ProfileHandle::Extract(uint from, uint to) const { ...@@ -149,6 +149,7 @@ ProfileHandlePtr ProfileHandle::Extract(uint from, uint to) const {
// get subset to return // get subset to return
ProfileHandlePtr return_prof(new ProfileHandle); ProfileHandlePtr return_prof(new ProfileHandle);
return_prof->SetNullModel(null_model_); return_prof->SetNullModel(null_model_);
return_prof->SetNeff(neff_);
for (uint i = from; i < to; ++i) { for (uint i = from; i < to; ++i) {
return_prof->AddColumn(columns_[i], seq_[i]); return_prof->AddColumn(columns_[i], seq_[i]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment