-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
741 changed files
with
11,520 additions
and
4,627 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
cff-version: 1.2.0 | ||
message: "If you use this software, please cite it as below." | ||
authors: | ||
- family-names: "Russel" | ||
given-names: "Daniel" | ||
- family-names: "Lasker" | ||
given-names: "Keren" | ||
- family-names: "Webb" | ||
given-names: "Ben" | ||
- family-names: "Velázquez-Muriel" | ||
given-names: "Javier" | ||
- family-names: "Tjioe" | ||
given-names: "Elina" | ||
- family-names: "Schneidman-Duhovny" | ||
given-names: "Dina" | ||
- family-names: "Peterson" | ||
given-names: "Bret" | ||
- family-names: "Sali" | ||
given-names: "Andrej" | ||
title: "IMP" | ||
url: "https://github.com/salilab/imp" | ||
preferred-citation: | ||
type: article | ||
authors: | ||
- family-names: "Russel" | ||
given-names: "Daniel" | ||
- family-names: "Lasker" | ||
given-names: "Keren" | ||
- family-names: "Webb" | ||
given-names: "Ben" | ||
- family-names: "Velázquez-Muriel" | ||
given-names: "Javier" | ||
- family-names: "Tjioe" | ||
given-names: "Elina" | ||
- family-names: "Schneidman-Duhovny" | ||
given-names: "Dina" | ||
- family-names: "Peterson" | ||
given-names: "Bret" | ||
- family-names: "Sali" | ||
given-names: "Andrej" | ||
doi: "10.1371/journal.pbio.1001244" | ||
journal: "PLoS Biol" | ||
month: 1 | ||
start: "e1001244" | ||
title: "Putting the pieces together: integrative modeling platform software for structure determination of macromolecular assemblies" | ||
volume: 10 | ||
issue: 1 | ||
year: 2012 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.21.0 | ||
2.22.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,115 +1,22 @@ | ||
# Like cmake's FindPython but allows the user to override; should also | ||
# work (to some degree) with older cmake | ||
# Like cmake's FindPython but allows the user to override | ||
function(imp_find_python) | ||
set(USE_PYTHON2 off CACHE BOOL | ||
"Force use of Python2 (by default Python3 is used if available)") | ||
|
||
if (${CMAKE_VERSION} VERSION_LESS "3.14.0") | ||
message(WARNING "Using old Python detection logic. Recommended to upgrade to cmake 3.14.0 or later") | ||
if(NOT DEFINED PYTHON_INCLUDE_DIRS) | ||
if (USE_PYTHON2) | ||
set(_SEARCH_PYTHON_BINARIES python2 python) | ||
else() | ||
set(_SEARCH_PYTHON_BINARIES python3 python2 python) | ||
endif() | ||
|
||
foreach(pybinary ${_SEARCH_PYTHON_BINARIES}) | ||
execute_process(COMMAND ${pybinary} -c "import sys; print(sys.executable)" | ||
RESULT_VARIABLE retval | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR} | ||
OUTPUT_VARIABLE python_full_path | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
if(${retval} EQUAL 0) | ||
break() | ||
endif() | ||
endforeach() | ||
|
||
if(NOT ${retval} EQUAL 0) | ||
message(FATAL_ERROR "Could not find a suitable Python binary - looked for ${_SEARCH_PYTHON_BINARIES}") | ||
endif() | ||
set(PYTHON_EXECUTABLE ${python_full_path} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_TEST_EXECUTABLE ${python_full_path} CACHE STRING "") | ||
endif() | ||
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; print('%d.%d.%d' % sys.version_info[:3])" | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR} | ||
OUTPUT_VARIABLE python_full_version | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
string(REGEX REPLACE "^([0-9])+\\.[0-9]+.*" "\\1" major | ||
"${python_full_version}") | ||
string(REGEX REPLACE "^[0-9]+\\.([0-9]+).*" "\\1" minor | ||
"${python_full_version}") | ||
string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" patch | ||
"${python_full_version}") | ||
set(PYTHON_VERSION ${python_full_version} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_VERSION_MAJOR ${major} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_VERSION_MINOR ${minor} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_VERSION_PATCH ${patch} CACHE INTERNAL "" FORCE) | ||
message(STATUS "Python binary is " ${PYTHON_EXECUTABLE} " (version " ${python_full_version} ")") | ||
if(NOT DEFINED PYTHON_INCLUDE_DIRS) | ||
find_package(PythonLibs ${python_full_version} EXACT REQUIRED) | ||
# Make sure PYTHON_INCLUDE_DIRS is in the cache so it can be | ||
# used elsewhere | ||
set(PYTHON_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS} CACHE INTERNAL "") | ||
endif() | ||
if(NOT DEFINED PYTHON_NUMPY_INCLUDE_DIR) | ||
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c | ||
"try: import numpy; print(numpy.get_include());\nexcept: pass" | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} | ||
OUTPUT_VARIABLE __numpy_path | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
find_path(PYTHON_NUMPY_INCLUDE_DIR numpy/arrayobject.h | ||
HINTS "${__numpy_path}" "${PYTHON_INCLUDE_PATH}" | ||
NO_DEFAULT_PATH) | ||
if(PYTHON_NUMPY_INCLUDE_DIR) | ||
set(PYTHON_NUMPY_FOUND 1 CACHE INTERNAL "Python numpy found") | ||
endif() | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(NumPy | ||
REQUIRED_VARS PYTHON_NUMPY_INCLUDE_DIR | ||
VERSION_VAR __numpy_version) | ||
endif() | ||
find_package(Python3 COMPONENTS Interpreter Development NumPy) | ||
|
||
if(Python3_Interpreter_FOUND AND Python3_Development_FOUND) | ||
# Use Python 3 tools | ||
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE} CACHE STRING "") | ||
set(PYTHON_TEST_EXECUTABLE ${Python3_EXECUTABLE} CACHE STRING "") | ||
set(PYTHON_LIBRARIES ${Python3_LIBRARIES} CACHE STRING "") | ||
set(PYTHON_INCLUDE_DIRS ${Python3_INCLUDE_DIRS} CACHE STRING "") | ||
set(PYTHON_LIBRARY_DIRS ${Python3_LIBRARY_DIRS} CACHE STRING "") | ||
set(PYTHON_NUMPY_FOUND ${Python3_NumPy_FOUND} CACHE STRING "") | ||
set(PYTHON_NUMPY_INCLUDE_DIR ${Python3_NumPy_INCLUDE_DIRS} | ||
CACHE STRING "") | ||
set(PYTHON_VERSION ${Python3_VERSION} CACHE STRING "") | ||
set(PYTHON_VERSION_MAJOR ${Python3_VERSION_MAJOR} CACHE STRING "") | ||
set(PYTHON_VERSION_MINOR ${Python3_VERSION_MINOR} CACHE STRING "") | ||
set(PYTHON_VERSION_PATCH ${Python3_VERSION_PATCH} CACHE STRING "") | ||
else() | ||
if (NOT USE_PYTHON2) | ||
find_package(Python3 COMPONENTS Interpreter Development NumPy) | ||
endif() | ||
|
||
if(NOT USE_PYTHON2 | ||
AND Python3_Interpreter_FOUND AND Python3_Development_FOUND) | ||
# Use Python 3 tools | ||
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_TEST_EXECUTABLE ${Python3_EXECUTABLE} CACHE STRING "") | ||
set(PYTHON_LIBRARIES ${Python3_LIBRARIES} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_INCLUDE_DIRS ${Python3_INCLUDE_DIRS} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_LIBRARY_DIRS ${Python3_LIBRARY_DIRS} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_NUMPY_FOUND ${Python3_NumPy_FOUND} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_NUMPY_INCLUDE_DIR ${Python3_NumPy_INCLUDE_DIRS} | ||
CACHE INTERNAL "" FORCE) | ||
set(PYTHON_VERSION ${Python3_VERSION} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_VERSION_MAJOR ${Python3_VERSION_MAJOR} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_VERSION_MINOR ${Python3_VERSION_MINOR} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_VERSION_PATCH ${Python3_VERSION_PATCH} CACHE INTERNAL "" FORCE) | ||
else() | ||
find_package(Python2 COMPONENTS Interpreter Development NumPy) | ||
if(Python2_Interpreter_FOUND AND Python2_Development_FOUND) | ||
set(PYTHON_EXECUTABLE ${Python2_EXECUTABLE} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_TEST_EXECUTABLE ${Python2_EXECUTABLE} CACHE STRING "") | ||
set(PYTHON_LIBRARIES ${Python2_LIBRARIES} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_INCLUDE_DIRS ${Python2_INCLUDE_DIRS} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_LIBRARY_DIRS ${Python2_LIBRARY_DIRS} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_NUMPY_FOUND ${Python2_NumPy_FOUND} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_NUMPY_INCLUDE_DIR ${Python2_NumPy_INCLUDE_DIRS} | ||
CACHE INTERNAL "" FORCE) | ||
set(PYTHON_VERSION ${Python2_VERSION} CACHE INTERNAL "" FORCE) | ||
set(PYTHON_VERSION_MAJOR ${Python2_VERSION_MAJOR} | ||
CACHE INTERNAL "" FORCE) | ||
set(PYTHON_VERSION_MINOR ${Python2_VERSION_MINOR} | ||
CACHE INTERNAL "" FORCE) | ||
set(PYTHON_VERSION_PATCH ${Python2_VERSION_PATCH} | ||
CACHE INTERNAL "" FORCE) | ||
else() | ||
message(FATAL_ERROR "Could not find a Python interpreter and matching headers/libraries. Python is required to build.") | ||
endif() | ||
endif() | ||
message(FATAL_ERROR "Could not find a Python interpreter and matching headers/libraries. Python is required to build.") | ||
endif() | ||
endfunction(imp_find_python) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.