-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from rseng/update/analysis-2024-04-24
Update from update/analysis-2024-04-24
- Loading branch information
Showing
34 changed files
with
34,794 additions
and
33,248 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
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,5 +1,5 @@ | ||
{ | ||
"Python": 6006, | ||
"Python": 6008, | ||
"R": 2241, | ||
"Cpp": 441, | ||
"Js": 1692, | ||
|
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,9 +1,9 @@ | ||
{ | ||
"python_deps": 4961, | ||
"python_deps": 4962, | ||
"cpp_deps": 441, | ||
"r_deps": 2241, | ||
"js_deps": 1692, | ||
"go_deps": 246, | ||
"total_repos": 5457, | ||
"total_parsed": 2783 | ||
"total_repos": 5474, | ||
"total_parsed": 2785 | ||
} |
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,71 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
project(balrog) | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
|
||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp") | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") | ||
|
||
file(GLOB globbed | ||
"*.h" | ||
"*.cpp" | ||
) | ||
|
||
include_directories(include) | ||
include_directories(include/gzip) | ||
|
||
execute_process( | ||
COMMAND python -c "import torch; import os; print(os.path.dirname(torch.__file__), end='')" | ||
OUTPUT_VARIABLE TorchPath | ||
) | ||
list(APPEND CMAKE_PREFIX_PATH ${TorchPath}) | ||
|
||
set(CMAKE_VERBOSE_MAKEFILE ON) | ||
|
||
if (APPLE) | ||
execute_process( | ||
COMMAND python -c "import torch; import os; print('@executable_path/../' + '/'.join((os.path.dirname(torch.__file__)).split('/')[-4:]) + '/lib', end='')" | ||
OUTPUT_VARIABLE TorchPathR | ||
) | ||
else() | ||
execute_process( | ||
COMMAND python -c "import torch; import os; print('$ORIGIN/../' + '/'.join((os.path.dirname(torch.__file__)).split('/')[-4:]) + '/lib', end='')" | ||
OUTPUT_VARIABLE TorchPathR | ||
) | ||
endif() | ||
set(CMAKE_INSTALL_RPATH TorchPathR) | ||
|
||
|
||
find_package(Torch REQUIRED) | ||
|
||
add_executable(balrog main.cpp ${globbed} include/tqdm.h include/FastaReader.cpp include/FastaReader.h include/GeneFinder.cpp include/GeneFinder.h) | ||
|
||
target_link_libraries(balrog ${TORCH_LIBRARIES}) | ||
set_property(TARGET balrog PROPERTY CXX_STANDARD 14) | ||
|
||
|
||
find_package( ZLIB REQUIRED ) | ||
if ( ZLIB_FOUND ) | ||
include_directories( ${ZLIB_INCLUDE_DIRS} ) | ||
target_link_libraries( balrog ${ZLIB_LIBRARIES} ) | ||
endif( ZLIB_FOUND ) | ||
|
||
|
||
include(CMakeRC) | ||
cmrc_add_resource_library( | ||
cmakeresources | ||
NAMESPACE cmakeresources | ||
WHENCE data | ||
data/gene_model_v1.0.pt | ||
data/TIS_model_v1.0.pt | ||
data/reference_genes.tar.gz | ||
) | ||
|
||
target_link_libraries(${PROJECT_NAME} cmakeresources) | ||
|
||
install( | ||
TARGETS balrog | ||
RUNTIME DESTINATION bin | ||
LIBRARY DESTINATION lib | ||
) |
Oops, something went wrong.