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

Merge branch 'develop' into hhblits3

parents 2dffa11a 5c4be5cf
No related branches found
No related tags found
No related merge requests found
Changes in Release 2.x
--------------------------------------------------------------------------------
* Use the newer voronota implementation as default in CAD-score binding
* Several minor bug fixes and improvements.
Changes in Release 2.0.0 Changes in Release 2.0.0
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
......
...@@ -442,14 +442,15 @@ endmacro() ...@@ -442,14 +442,15 @@ endmacro()
# ui_to_python(libname stagedir[input_file1 ...]) # ui_to_python(libname stagedir[input_file1 ...])
# Description: # Description:
# Calls pyuic on every input file. The resulting python files are stored in # Calls pyuic on every input file. The resulting python files are stored in
# the variable with name out_files. # the variable with name out_files. Use with care. Has originally been
# implemented for pyuic4 and ported to pyuic5 without testing.
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
macro(ui_to_python LIBNAME PYMODDIR STAGEDIR) macro(ui_to_python LIBNAME PYMODDIR STAGEDIR)
set(_input_files ${ARGN}) set(_input_files ${ARGN})
add_custom_target("${LIBNAME}_ui" ALL) add_custom_target("${LIBNAME}_ui" ALL)
add_dependencies("_${LIBNAME}" "${LIBNAME}_ui") add_dependencies("_${LIBNAME}" "${LIBNAME}_ui")
find_program(_PYUIC_EXECUTABLE find_program(_PYUIC_EXECUTABLE
NAMES pyuic4-${PYTHON_VERSION} pyuic4 pyuic pyuic4.bat NAMES pyuic5-${PYTHON_VERSION} pyuic5 pyuic pyuic5.bat
PATHS ENV PATH PATHS ENV PATH
) )
if(NOT _PYUIC_EXECUTABLE) if(NOT _PYUIC_EXECUTABLE)
...@@ -503,7 +504,8 @@ endmacro() ...@@ -503,7 +504,8 @@ endmacro()
# #
# Description: # Description:
# Define a python module consisting of C++ type wrappers and/or code written in # Define a python module consisting of C++ type wrappers and/or code written in
# Python. # Python. user_interface_files are handled with ui_to_python that has blindly
# been ported from QT4 to QT5 without testing. Use with care.
# NAME is the name of # NAME is the name of
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
macro(pymod) macro(pymod)
......
...@@ -263,7 +263,7 @@ def _MapLabels(model, cad_results, label): ...@@ -263,7 +263,7 @@ def _MapLabels(model, cad_results, label):
"could not be found in model.") "could not be found in model.")
r.SetFloatProp(label, v) r.SetFloatProp(label, v)
def CADScore(model, reference, mode = "classic", label = "localcad", def CADScore(model, reference, mode = "voronota", label = "localcad",
old_regime = False, cad_bin_path = None): old_regime = False, cad_bin_path = None):
""" """
Calculates global and local atom-atom (AA) CAD Scores. Calculates global and local atom-atom (AA) CAD Scores.
......
...@@ -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