percolator-cpp 4.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. percolator_cpp-4.0.0/.gitignore +5 -0
  2. percolator_cpp-4.0.0/.travis.yml +11 -0
  3. percolator_cpp-4.0.0/CMakeLists.txt +126 -0
  4. percolator_cpp-4.0.0/CPack.txt +155 -0
  5. percolator_cpp-4.0.0/CommonCMake.txt +145 -0
  6. percolator_cpp-4.0.0/Dockerfile +25 -0
  7. percolator_cpp-4.0.0/PKG-INFO +54 -0
  8. percolator_cpp-4.0.0/ReadMe.md +39 -0
  9. percolator_cpp-4.0.0/ReadMe.txt +14 -0
  10. percolator_cpp-4.0.0/admin/CMakeLists.txt +3 -0
  11. percolator_cpp-4.0.0/admin/builders/_urls_and_file_names_.sh +5 -0
  12. percolator_cpp-4.0.0/admin/builders/centos64_build.sh +59 -0
  13. percolator_cpp-4.0.0/admin/builders/conda_build.sh +41 -0
  14. percolator_cpp-4.0.0/admin/builders/fedora64_build.sh +49 -0
  15. percolator_cpp-4.0.0/admin/builders/nativew32_build.bat +55 -0
  16. percolator_cpp-4.0.0/admin/builders/nativew64_build.bat +55 -0
  17. percolator_cpp-4.0.0/admin/builders/osx64_build.sh +132 -0
  18. percolator_cpp-4.0.0/admin/builders/ubuntu64_build.sh +83 -0
  19. percolator_cpp-4.0.0/admin/conda/README.md +71 -0
  20. percolator_cpp-4.0.0/admin/conda/build.sh +9 -0
  21. percolator_cpp-4.0.0/admin/conda/meta.yaml +42 -0
  22. percolator_cpp-4.0.0/admin/get_download_stats.sh +1 -0
  23. percolator_cpp-4.0.0/admin/wheels/build_libomp_macos.sh +80 -0
  24. percolator_cpp-4.0.0/admin/wheels/check_wheel.py +146 -0
  25. percolator_cpp-4.0.0/admin/win/nsi/RELEASE_NOTES.txt +1 -0
  26. percolator_cpp-4.0.0/admin/win/nsi/installer.ico +0 -0
  27. percolator_cpp-4.0.0/admin/win/nsi/page_header.bmp +0 -0
  28. percolator_cpp-4.0.0/admin/win/nsi/percolator.ico +0 -0
  29. percolator_cpp-4.0.0/admin/win/nsi/percolator.ini +21 -0
  30. percolator_cpp-4.0.0/admin/win/nsi/uninstall.ico +0 -0
  31. percolator_cpp-4.0.0/admin/win/nsi/welcome.bmp +0 -0
  32. percolator_cpp-4.0.0/cmake/VersionGen.cmake +68 -0
  33. percolator_cpp-4.0.0/code_of_conduct.md +134 -0
  34. percolator_cpp-4.0.0/license.txt +51 -0
  35. percolator_cpp-4.0.0/pyproject.toml +94 -0
  36. percolator_cpp-4.0.0/python/percolator_launcher/__init__.py +51 -0
  37. percolator_cpp-4.0.0/quickbuild.sh +103 -0
  38. percolator_cpp-4.0.0/src/AUTHORS +6 -0
  39. percolator_cpp-4.0.0/src/Array.h +424 -0
  40. percolator_cpp-4.0.0/src/BaseSpline.cpp +402 -0
  41. percolator_cpp-4.0.0/src/BaseSpline.h +71 -0
  42. percolator_cpp-4.0.0/src/BlasLevel1.h +83 -0
  43. percolator_cpp-4.0.0/src/CMakeLists.txt +179 -0
  44. percolator_cpp-4.0.0/src/Caller.cpp +1777 -0
  45. percolator_cpp-4.0.0/src/Caller.h +146 -0
  46. percolator_cpp-4.0.0/src/ChangeLog +513 -0
  47. percolator_cpp-4.0.0/src/CompositionSorter.cpp +449 -0
  48. percolator_cpp-4.0.0/src/CompositionSorter.h +48 -0
  49. percolator_cpp-4.0.0/src/CrossValidation.cpp +1000 -0
  50. percolator_cpp-4.0.0/src/CrossValidation.h +261 -0
  51. percolator_cpp-4.0.0/src/DataSet.cpp +446 -0
  52. percolator_cpp-4.0.0/src/DataSet.h +133 -0
  53. percolator_cpp-4.0.0/src/Enzyme.cpp +127 -0
  54. percolator_cpp-4.0.0/src/Enzyme.h +66 -0
  55. percolator_cpp-4.0.0/src/FdrWalk.h +134 -0
  56. percolator_cpp-4.0.0/src/FeatureMemoryPool.cpp +112 -0
  57. percolator_cpp-4.0.0/src/FeatureMemoryPool.h +75 -0
  58. percolator_cpp-4.0.0/src/FeatureNames.cpp +74 -0
  59. percolator_cpp-4.0.0/src/FeatureNames.h +68 -0
  60. percolator_cpp-4.0.0/src/Globals.cpp +39 -0
  61. percolator_cpp-4.0.0/src/Globals.h.cmake +120 -0
  62. percolator_cpp-4.0.0/src/ISplineTRRRegressor.h +556 -0
  63. percolator_cpp-4.0.0/src/IsotonicPEP.cpp +134 -0
  64. percolator_cpp-4.0.0/src/IsotonicPEP.h +39 -0
  65. percolator_cpp-4.0.0/src/LabelType.h +34 -0
  66. percolator_cpp-4.0.0/src/LogisticRegression.cpp +192 -0
  67. percolator_cpp-4.0.0/src/LogisticRegression.h +58 -0
  68. percolator_cpp-4.0.0/src/MassHandler.cpp +44 -0
  69. percolator_cpp-4.0.0/src/MassHandler.h +34 -0
  70. percolator_cpp-4.0.0/src/MonotoneRegressor.cpp +20 -0
  71. percolator_cpp-4.0.0/src/MonotoneRegressor.h +57 -0
  72. percolator_cpp-4.0.0/src/MyException.cpp +60 -0
  73. percolator_cpp-4.0.0/src/MyException.h +46 -0
  74. percolator_cpp-4.0.0/src/NoNormalizer.cpp +62 -0
  75. percolator_cpp-4.0.0/src/NoNormalizer.h +31 -0
  76. percolator_cpp-4.0.0/src/Normalizer.cpp +99 -0
  77. percolator_cpp-4.0.0/src/Normalizer.h +110 -0
  78. percolator_cpp-4.0.0/src/NumberFormatter.h +103 -0
  79. percolator_cpp-4.0.0/src/Numerical.cpp +40 -0
  80. percolator_cpp-4.0.0/src/Numerical.h +49 -0
  81. percolator_cpp-4.0.0/src/Option.cpp +323 -0
  82. percolator_cpp-4.0.0/src/Option.h +144 -0
  83. percolator_cpp-4.0.0/src/PAVARegressor.h +134 -0
  84. percolator_cpp-4.0.0/src/PSMDescription.cpp +79 -0
  85. percolator_cpp-4.0.0/src/PSMDescription.h +265 -0
  86. percolator_cpp-4.0.0/src/PackedVector.cpp +168 -0
  87. percolator_cpp-4.0.0/src/PackedVector.h +109 -0
  88. percolator_cpp-4.0.0/src/ParallelSort.h +228 -0
  89. percolator_cpp-4.0.0/src/PickedProteinInterface.cpp +458 -0
  90. percolator_cpp-4.0.0/src/PickedProteinInterface.h +77 -0
  91. percolator_cpp-4.0.0/src/PosteriorEstimator.cpp +902 -0
  92. percolator_cpp-4.0.0/src/PosteriorEstimator.h +107 -0
  93. percolator_cpp-4.0.0/src/ProteinProbEstimator.cpp +327 -0
  94. percolator_cpp-4.0.0/src/ProteinProbEstimator.h +205 -0
  95. percolator_cpp-4.0.0/src/ProteinScoreHolder.cpp +27 -0
  96. percolator_cpp-4.0.0/src/ProteinScoreHolder.h +113 -0
  97. percolator_cpp-4.0.0/src/PseudoRandom.cpp +32 -0
  98. percolator_cpp-4.0.0/src/PseudoRandom.h +47 -0
  99. percolator_cpp-4.0.0/src/PsmStore.h +130 -0
  100. percolator_cpp-4.0.0/src/README +4 -0
  101. percolator_cpp-4.0.0/src/SanityCheck.cpp +508 -0
  102. percolator_cpp-4.0.0/src/SanityCheck.h +192 -0
  103. percolator_cpp-4.0.0/src/ScanIdTable.h +194 -0
  104. percolator_cpp-4.0.0/src/ScoreHolder.h +192 -0
  105. percolator_cpp-4.0.0/src/Scores.cpp +1851 -0
  106. percolator_cpp-4.0.0/src/Scores.h +421 -0
  107. percolator_cpp-4.0.0/src/Set.cpp +226 -0
  108. percolator_cpp-4.0.0/src/Set.h +64 -0
  109. percolator_cpp-4.0.0/src/SetHandler.cpp +892 -0
  110. percolator_cpp-4.0.0/src/SetHandler.h +239 -0
  111. percolator_cpp-4.0.0/src/StdvNormalizer.cpp +188 -0
  112. percolator_cpp-4.0.0/src/StdvNormalizer.h +31 -0
  113. percolator_cpp-4.0.0/src/TabFileValidator.cpp +242 -0
  114. percolator_cpp-4.0.0/src/TabFileValidator.h +40 -0
  115. percolator_cpp-4.0.0/src/TabReader.h +229 -0
  116. percolator_cpp-4.0.0/src/Timer.cpp +115 -0
  117. percolator_cpp-4.0.0/src/Timer.h +63 -0
  118. percolator_cpp-4.0.0/src/TmpDir.cpp +34 -0
  119. percolator_cpp-4.0.0/src/TmpDir.h +21 -0
  120. percolator_cpp-4.0.0/src/Transform.h +52 -0
  121. percolator_cpp-4.0.0/src/UniNormalizer.cpp +88 -0
  122. percolator_cpp-4.0.0/src/UniNormalizer.h +31 -0
  123. percolator_cpp-4.0.0/src/ValidateTabFile.cpp +300 -0
  124. percolator_cpp-4.0.0/src/ValidateTabFile.h +105 -0
  125. percolator_cpp-4.0.0/src/Vector.cpp +568 -0
  126. percolator_cpp-4.0.0/src/Vector.h +170 -0
  127. percolator_cpp-4.0.0/src/Version.h.cmake +46 -0
  128. percolator_cpp-4.0.0/src/main.cpp +59 -0
  129. percolator_cpp-4.0.0/src/picked_protein/PickedProteinCaller.cpp +323 -0
  130. percolator_cpp-4.0.0/src/picked_protein/PickedProteinCaller.h +116 -0
  131. percolator_cpp-4.0.0/src/picked_protein/ProteinDigest.cpp +271 -0
  132. percolator_cpp-4.0.0/src/picked_protein/ProteinDigest.h +132 -0
  133. percolator_cpp-4.0.0/src/qvality/CMakeLists.txt +5 -0
  134. percolator_cpp-4.0.0/src/qvality/qvality_main.cpp +45 -0
  135. percolator_cpp-4.0.0/src/ssl.cpp +654 -0
  136. percolator_cpp-4.0.0/src/ssl.h +279 -0
@@ -0,0 +1,5 @@
1
+ build/
2
+ .vscode/
3
+ dist/
4
+ wheelhouse/
5
+ build-conda/
@@ -0,0 +1,11 @@
1
+ language: cpp
2
+ compiler:
3
+ - gcc
4
+ before_script:
5
+ # - sudo apt-get update
6
+ # - sudo apt-get -o Dpkg::Options::="--force-confnew" upgrade
7
+ - sudo apt-get install libxml2-utils
8
+ - mkdir -p ~/my_rel ~/my_build
9
+ - ./admin/builders/ubuntu64_build.sh -s `pwd`/.. -r ~/my_rel -b ~/my_build
10
+ # Change this to your needs
11
+ script: cd ~/my_build/percolator && sudo make install && make test ARGS="-V"
@@ -0,0 +1,126 @@
1
+ #############################################################################
2
+ # NAME AND VERSION
3
+ ###############################################################################
4
+
5
+ cmake_minimum_required (VERSION 3.15)
6
+
7
+ if(NOT CRUX AND APPLE AND ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} VERSION_GREATER 3.0)
8
+ # Identify AppleClang's COMPILER_ID as AppleClang instead of just Clang
9
+ # (https://gitlab.kitware.com/cmake/cmake/issues/19067)
10
+ cmake_policy(SET CMP0025 NEW)
11
+ endif()
12
+
13
+ # The macOS binaries run on macOS 12 and later, not only on the version of
14
+ # the build machine. This has to be set before project(). A value given with
15
+ # -DCMAKE_OSX_DEPLOYMENT_TARGET or in the MACOSX_DEPLOYMENT_TARGET
16
+ # environment variable is kept.
17
+ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin"
18
+ AND NOT DEFINED CMAKE_OSX_DEPLOYMENT_TARGET
19
+ AND "$ENV{MACOSX_DEPLOYMENT_TARGET}" STREQUAL "")
20
+ set(CMAKE_OSX_DEPLOYMENT_TARGET "12.0" CACHE STRING
21
+ "Minimum macOS version of the binaries")
22
+ endif()
23
+
24
+ project(PERCOLATOR LANGUAGES CXX)
25
+
26
+ # The oldest supported GCC is 9: the code uses std::filesystem, which GCC 8
27
+ # keeps in a separate library (the link fails with undefined references).
28
+ # GCC 11 adds std::to_chars and std::from_chars for double; with GCC 9 and 10
29
+ # the slower number conversions are used (see src/CMakeLists.txt).
30
+ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
31
+ message(FATAL_ERROR "Percolator needs GCC 9 or later "
32
+ "(this is GCC ${CMAKE_CXX_COMPILER_VERSION}).")
33
+ endif()
34
+ set(PERCOLATOR_SOURCE_DIR ${CMAKE_SOURCE_DIR})
35
+ include("CommonCMake.txt")
36
+
37
+ ###############################################################################
38
+ # PREPARING TO INSTALL
39
+ ###############################################################################
40
+
41
+ my_set(CMAKE_BUILD_TYPE "Release" "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel.")
42
+ my_set(CMAKE_PREFIX_PATH "../" "Default path to packages")
43
+
44
+ option(NO_TESTS "Build system and integration tests" OFF)
45
+
46
+ # PRINT VARIBALES TO STDOUT
47
+ MESSAGE( STATUS )
48
+ MESSAGE( STATUS
49
+ "-------------------------------------------------------------------------------"
50
+ )
51
+ MESSAGE( STATUS "Building PERCOLATOR:" )
52
+ MESSAGE( STATUS "change a configuration variable with: cmake -D<Variable>=<Value>" )
53
+ MESSAGE( STATUS "CMAKE_INSTALL_PREFIX = ${CMAKE_INSTALL_PREFIX}" )
54
+ MESSAGE( STATUS "CMAKE_BUILD_TYPE = ${CMAKE_BUILD_TYPE}" )
55
+ MESSAGE( STATUS "CMAKE_PREFIX_PATH = ${CMAKE_PREFIX_PATH}" )
56
+ MESSAGE( STATUS "NO_TESTS = ${NO_TESTS}" )
57
+ MESSAGE( STATUS "TARGET_ARCH = ${TARGET_ARCH}" )
58
+ MESSAGE( STATUS "TOOL CHAIN FILE = ${CMAKE_TOOLCHAIN_FILE}")
59
+ MESSAGE( STATUS
60
+ "-------------------------------------------------------------------------------"
61
+ )
62
+ MESSAGE( STATUS )
63
+
64
+
65
+
66
+ # Detect machine architecture, on UNIX:
67
+ get_arch()
68
+
69
+ # STORE NEWLY SET VARIABLES IN *.h.cmake FILES
70
+ load_config_files("${CMAKE_CURRENT_SOURCE_DIR}")
71
+
72
+ ###############################################################################
73
+ # COMPILING
74
+ ###############################################################################
75
+
76
+ # MSVC: link the C and C++ runtime statically (/MT), so that percolator.exe
77
+ # and qvality.exe run without the Visual C++ Redistributable. This has to be
78
+ # set before the targets (including GoogleTest's) are defined. OpenMP's
79
+ # vcomp140.dll has no static version; it is installed next to the
80
+ # executables (see INSTALLING below).
81
+ option(USE_MSVC_STATIC_RUNTIME "Link the MSVC runtime statically (/MT)" ON)
82
+ if(MSVC AND USE_MSVC_STATIC_RUNTIME AND NOT DEFINED CMAKE_MSVC_RUNTIME_LIBRARY)
83
+ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
84
+ endif()
85
+
86
+ add_subdirectory(src)
87
+
88
+ ###############################################################################
89
+ # TESTING
90
+ ###############################################################################
91
+
92
+ if(NOT NO_TESTS)
93
+ # Enabling system level tests (Ctest)
94
+ enable_testing()
95
+ # Scheduling system level tests
96
+ add_subdirectory(data/system_tests/percolator)
97
+ add_subdirectory(tests/integration_tests/percolator)
98
+ # Scheduling unit level tests
99
+ if(NOT WITHOUT_GTEST)
100
+ add_subdirectory(tests/unit_tests/percolator)
101
+ endif()
102
+ endif()
103
+
104
+ ###############################################################################
105
+ # INSTALLING
106
+ ###############################################################################
107
+
108
+
109
+ # MSVC: install the redistributable DLLs, among them vcomp140.dll (OpenMP),
110
+ # next to the executables, which makes the installed bin directory portable.
111
+ if( MSVC )
112
+ set( CMAKE_INSTALL_OPENMP_LIBRARIES TRUE )
113
+ include( InstallRequiredSystemLibraries )
114
+ endif( MSVC )
115
+
116
+
117
+ # ###############################################################################
118
+ # # PACKAGING
119
+ # ###############################################################################
120
+ # # PACKAGING OPTIONS: GENERAL
121
+ set(PACKAGE_NICKNAME "percolator${NICKNAME_SUFFIX}")
122
+
123
+ set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Percolator and qvality, two post processors for shotgun proteomics data.")
124
+ include("CPack.txt")
125
+
126
+ include(CPack)
@@ -0,0 +1,155 @@
1
+ ###############################################################################
2
+ # PACKAGING
3
+ ###############################################################################
4
+
5
+ # PACKAGING OPTIONS: GENERAL
6
+
7
+ set(CPACK_SET_DESTDIR TRUE) # Enabling absolute paths for CPack (important!)
8
+ set(CPACK_SOURCE_GENERATOR "TGZ") # This file format is used to package source code ("make package_source")
9
+ set(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_CURRENT_BINARY_DIR};${CMAKE_PROJECT_NAME};ALL;/")
10
+ set(CPACK_PACKAGE_VENDOR "Percolator")
11
+ set(CPACK_PACKAGE_NAME ${PACKAGE_NICKNAME})
12
+ file(COPY ${PERCOLATOR_SOURCE_DIR}/ReadMe.txt DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
13
+ file(COPY ${PERCOLATOR_SOURCE_DIR}/license.txt DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
14
+ set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_BINARY_DIR}/ReadMe.txt")
15
+ set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/license.txt")
16
+ set(PERLUQVAL_VERSION "v${CPACK_PACKAGE_VERSION_MAJOR}-${CPACK_PACKAGE_VERSION_MINOR}")
17
+
18
+ IF(APPLE)
19
+ set(CPACK_GENERATOR productbuild)
20
+ set(CPACK_COMPONENTS_ALL Unspecified)
21
+ # CMAKE_INSTALL_PREFIX is not set here: it defaults to /usr/local on macOS,
22
+ # and a conda build must install into $PREFIX.
23
+ set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
24
+ set(CPACK_PACKAGE_FILE_NAME "${PACKAGE_NICKNAME}-${PERLUQVAL_VERSION}-osx-${TARGET_ARCH}")
25
+ set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PACKAGE_NICKNAME}-${PERLUQVAL_VERSION}-osx-src")
26
+ set(CPACK_PACKAGE_ICON "${PERCOLATOR_SOURCE_DIR}/admin/win/nsi/percolator.ico")
27
+ set(CPACK_BUNDLE_NAME ${PACKAGE_NICKNAME})
28
+ elseif(UNIX)
29
+ set(CPACK_PACKAGE_FILE_NAME "${PACKAGE_NICKNAME}-${PERLUQVAL_VERSION}-linux-${TARGET_ARCH}")
30
+ set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PACKAGE_NICKNAME}-${PERLUQVAL_VERSION}-linux-src")
31
+ set(CPACK_PACKAGE_INSTALL_DIRECTORY "${PACKAGE_NICKNAME}-${PERLUQVAL_VERSION}")
32
+ elseif(MINGW)
33
+ set(CPACK_SET_DESTDIR FALSE)
34
+ set(CPACK_GENERATOR "NSIS") # Distribution packaging formats ("make package")
35
+ set(CPACK_PACKAGE_FILE_NAME "${PACKAGE_NICKNAME}-${PERLUQVAL_VERSION}-${MINGW_PACK_NAME}")
36
+ set(CPACK_NSIS_PACKAGE_NAME "${PACKAGE_NICKNAME}-${PERLUQVAL_VERSION}")
37
+ set(CPACK_NSIS_MODIFY_PATH "ON")
38
+ set(CPACK_PACKAGE_ICON "${PERCOLATOR_SOURCE_DIR}/admin/win/nsi/page_header.bmp")
39
+ set(CPACK_NSIS_MUI_ICON "${PERCOLATOR_SOURCE_DIR}/admin/win/nsi/percolator.ico")
40
+ set(CPACK_NSIS_CONTACT "Lukas Kall <lukas.kall@scilifelab.se>")
41
+ set(CPACK_PACKAGE_INSTALL_DIRECTORY "${PACKAGE_NICKNAME}-${PERLUQVAL_VERSION}")
42
+ elseif(MSVC)
43
+ set(CPACK_SET_DESTDIR FALSE)
44
+ set(CPACK_GENERATOR "NSIS") # Distribution packaging formats ("make package")
45
+ set(CPACK_PACKAGE_FILE_NAME "${PACKAGE_NICKNAME}-${PERLUQVAL_VERSION}")
46
+ set(CPACK_NSIS_PACKAGE_NAME "${PACKAGE_NICKNAME}-${PERLUQVAL_VERSION}")
47
+ set(CPACK_NSIS_MODIFY_PATH "ON")
48
+ set(CPACK_PACKAGE_ICON "${PERCOLATOR_SOURCE_DIR}/admin/win/nsi\\\\page_header.bmp")
49
+ set(CPACK_NSIS_MUI_ICON "${PERCOLATOR_SOURCE_DIR}/admin/win/nsi\\\\percolator.ico")
50
+ set(CPACK_NSIS_CONTACT "Lukas Kall <lukas.kall@scilifelab.se>")
51
+ set(CPACK_PACKAGE_INSTALL_DIRECTORY "${PACKAGE_NICKNAME}-${PERLUQVAL_VERSION}")
52
+ endif()
53
+
54
+ if(UNIX)
55
+ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
56
+ set(SPECIFIC_SYSTEM_VERSION_NAME "${CMAKE_SYSTEM_NAME}")
57
+ set(CPACK_GENERATOR "TGZ")
58
+ if(EXISTS "/etc/redhat-release")
59
+ set(LINUX_NAME "")
60
+ file(READ "/etc/redhat-release" LINUX_ISSUE)
61
+ elseif(EXISTS "/etc/issue")
62
+ set(LINUX_NAME "")
63
+ file(READ "/etc/issue" LINUX_ISSUE)
64
+ endif()
65
+ if(DEFINED LINUX_ISSUE)
66
+ # Fedora case
67
+ if(LINUX_ISSUE MATCHES "Fedora")
68
+ string(REGEX MATCH "release ([0-9]+)" FEDORA "${LINUX_ISSUE}")
69
+ set(LINUX_NAME "FC${CMAKE_MATCH_1}")
70
+ set(CPACK_GENERATOR "RPM")
71
+ endif(LINUX_ISSUE MATCHES "Fedora")
72
+ # Red Hat case
73
+ if(LINUX_ISSUE MATCHES "Red")
74
+ string(REGEX MATCH "release ([0-9]+\\.[0-9]+)" REDHAT "${LINUX_ISSUE}")
75
+ set(LINUX_NAME "RHEL_${CMAKE_MATCH_1}")
76
+ set(CPACK_GENERATOR "RPM")
77
+ endif(LINUX_ISSUE MATCHES "Red")
78
+ # CentOS case
79
+ if(LINUX_ISSUE MATCHES "CentOS")
80
+ string(REGEX MATCH "release ([0-9]+\\.[0-9]+)" CENTOS "${LINUX_ISSUE}")
81
+ set(LINUX_NAME "CentOS_${CMAKE_MATCH_1}")
82
+ set(CPACK_GENERATOR "RPM")
83
+ endif(LINUX_ISSUE MATCHES "CentOS")
84
+ # AlmaLinux case
85
+ if(LINUX_ISSUE MATCHES "AlmaLinux")
86
+ string(REGEX MATCH "release ([0-9]+\\.[0-9]+)" ALMALINUX "${LINUX_ISSUE}")
87
+ set(LINUX_NAME "AlmaLinux_${CMAKE_MATCH_1}")
88
+ set(CPACK_GENERATOR "RPM")
89
+ endif(LINUX_ISSUE MATCHES "AlmaLinux")
90
+ # Rocky Linux case
91
+ if(LINUX_ISSUE MATCHES "Rocky")
92
+ string(REGEX MATCH "release ([0-9]+\\.[0-9]+)" ROCKY "${LINUX_ISSUE}")
93
+ set(LINUX_NAME "Rocky_${CMAKE_MATCH_1}")
94
+ set(CPACK_GENERATOR "RPM")
95
+ endif(LINUX_ISSUE MATCHES "Rocky")
96
+ # Ubuntu case
97
+ if(LINUX_ISSUE MATCHES "Ubuntu")
98
+ string(REGEX MATCH "buntu ([0-9]+\\.[0-9]+)" UBUNTU "${LINUX_ISSUE}")
99
+ set(LINUX_NAME "Ubuntu_${CMAKE_MATCH_1}")
100
+ set(CPACK_GENERATOR "DEB")
101
+ endif(LINUX_ISSUE MATCHES "Ubuntu")
102
+ # Debian case
103
+ if(LINUX_ISSUE MATCHES "Debian")
104
+ string(REGEX MATCH "Debian .*ux ([a-zA-Z]*/?[a-zA-Z]*) .*" DEBIAN "${LINUX_ISSUE}")
105
+ set(LINUX_NAME "Debian_${CMAKE_MATCH_1}")
106
+ string(REPLACE "/" "_" LINUX_NAME ${LINUX_NAME})
107
+ set(CPACK_GENERATOR "DEB")
108
+ endif(LINUX_ISSUE MATCHES "Debian")
109
+ # Open SuSE case
110
+ if(LINUX_ISSUE MATCHES "SUSE")
111
+ string(REGEX MATCH "SUSE ([0-9]+\\.[0-9]+)" SUSE "${LINUX_ISSUE}")
112
+ set(LINUX_NAME "openSUSE_${CMAKE_MATCH_1}")
113
+ string(REPLACE "/" "_" LINUX_NAME ${LINUX_NAME})
114
+ set(CPACK_GENERATOR "RPM")
115
+ endif(LINUX_ISSUE MATCHES "SUSE")
116
+ endif(DEFINED LINUX_ISSUE)
117
+ endif(CMAKE_SYSTEM_NAME MATCHES "Linux")
118
+ endif(UNIX)
119
+
120
+ set(CPACK_STRIP_FILES TRUE)
121
+
122
+ file(GLOB_RECURSE DOT_FILES_BEGIN ".*") # To be ignored by Cpack
123
+ file(GLOB_RECURSE TILD_FILES "*~*") # To be ignored by Cpack
124
+
125
+ set(CPACK_SOURCE_IGNORE_FILES "/CVS/;/.svn/;/.swp$/;cscope.*;/.git/;${CMAKE_CURRENT_BINARY_DIR}/;/.bzr/;/.settings/;${DOT_FILES_BEGIN};${TILD_FILES}")
126
+
127
+ if( CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS )
128
+ install( PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} DESTINATION bin COMPONENT System )
129
+ endif( CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS )
130
+
131
+ set(CPACK_PACKAGE_DESCRIPTION
132
+ "Percolator rescores the peptide-spectrum matches (PSMs) of a shotgun
133
+ proteomics database search with a semi-supervised linear SVM trained on
134
+ target and decoy PSMs, and reports q values and posterior error
135
+ probabilities for PSMs, peptides and proteins. qvality estimates q values
136
+ and posterior error probabilities from lists of target and decoy scores.")
137
+ set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/percolator/percolator")
138
+
139
+ # PACKAGING OPTIONS: DEB
140
+ set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Lukas Kall <lukas.kall@scilifelab.se>")
141
+ set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${TARGET_ARCH})
142
+ set(CPACK_DEBIAN_PACKAGE_SECTION "science")
143
+ # Depends is computed from the shared libraries the binaries need (e.g.
144
+ # libc6, libgomp1, libstdc++6), so the package cannot be installed where
145
+ # they are missing or too old.
146
+ set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
147
+
148
+
149
+ # PACKAGING OPTIONS: RPM
150
+ set(CPACK_RPM_PACKAGE_LICENSE "Apache 2.0 license")
151
+ set(CPACK_RPM_PACKAGE_VENDOR "Percolator")
152
+ set(CPACK_RPM_PACKAGE_GROUP "Applications/Engineering")
153
+ set(CPACK_RPM_PACKAGE_RELOCATABLE FALSE)
154
+ set(CPACK_RPM_PACKAGE_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION}")
155
+ # rpmbuild adds the shared-library requirements itself (AutoReq)
@@ -0,0 +1,145 @@
1
+ # Sets a cache variable unless the user gave it a value. project() defines
2
+ # some variables (e.g. CMAKE_BUILD_TYPE) as empty, so empty counts as unset.
3
+ macro(my_set variable default options)
4
+ if(NOT DEFINED ${variable} OR "${${variable}}" STREQUAL "")
5
+ set(${variable} ${default} CACHE STRING ${options} FORCE)
6
+ endif()
7
+ endmacro(my_set)
8
+
9
+ # STORE NEWLY SET VARIABLES IN *.h.cmake FILES
10
+ macro(load_config_files location)
11
+ file(GLOB_RECURSE configurefiles
12
+ RELATIVE "${location}"
13
+ "${location}/*.h.cmake"
14
+ "${location}/*.py.cmake"
15
+ )
16
+ foreach(i ${configurefiles})
17
+ # Determine output extension
18
+ if(i MATCHES "\\.h\\.cmake$")
19
+ string(REPLACE ".h.cmake" ".h" outputFile "${i}")
20
+ elseif(i MATCHES "\\.py\\.cmake$")
21
+ string(REPLACE ".py.cmake" ".py" outputFile "${i}")
22
+ else()
23
+ message(WARNING "Unrecognized config file pattern: ${i}")
24
+ continue()
25
+ endif()
26
+
27
+ # Create output directory if needed
28
+ get_filename_component(outputDir "${outputFile}" DIRECTORY)
29
+ if(NOT outputDir STREQUAL "")
30
+ file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${outputDir}")
31
+ endif()
32
+
33
+ # Configure the file
34
+ configure_file("${location}/${i}" "${CMAKE_CURRENT_BINARY_DIR}/${outputFile}" @ONLY)
35
+ endforeach()
36
+ endmacro()
37
+
38
+ # Sets TARGET_ARCH, the architecture in the package names, in the calling
39
+ # scope unless it was given (-DTARGET_ARCH=...): on Linux the Debian
40
+ # architecture (e.g. amd64) where dpkg is available, otherwise the processor
41
+ # (e.g. x86_64); on macOS the architecture in CMAKE_OSX_ARCHITECTURES, or
42
+ # "universal" for several, or the processor of the build machine.
43
+ function(get_arch)
44
+ if(NOT "${TARGET_ARCH}" STREQUAL "")
45
+ return()
46
+ endif()
47
+ set(arch "")
48
+ if(APPLE)
49
+ list(LENGTH CMAKE_OSX_ARCHITECTURES num_archs)
50
+ if(num_archs GREATER 1)
51
+ set(arch "universal")
52
+ elseif(num_archs EQUAL 1)
53
+ set(arch "${CMAKE_OSX_ARCHITECTURES}")
54
+ endif()
55
+ elseif(UNIX)
56
+ find_program(DPKG_EXECUTABLE dpkg)
57
+ mark_as_advanced(DPKG_EXECUTABLE)
58
+ if(DPKG_EXECUTABLE)
59
+ execute_process(COMMAND ${DPKG_EXECUTABLE} --print-architecture
60
+ OUTPUT_VARIABLE arch
61
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
62
+ endif()
63
+ endif()
64
+ if(UNIX AND arch STREQUAL "")
65
+ execute_process(COMMAND uname -m
66
+ OUTPUT_VARIABLE arch
67
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
68
+ endif()
69
+ message(STATUS "Architecture: ${arch}")
70
+ set(TARGET_ARCH "${arch}" PARENT_SCOPE)
71
+ endfunction()
72
+
73
+ ###############################################################################
74
+ # SET LOCATION OF MODULE FINDERS
75
+ ###############################################################################
76
+
77
+ set(CMAKE_MODULE_PATH ${PERCOLATOR_SOURCE_DIR}/cmake)
78
+
79
+ ###############################################################################
80
+ # SET GLOBAL VARIABLES
81
+ ###############################################################################
82
+
83
+
84
+ # VERSION AND NAMESPACES
85
+ set(CPACK_PACKAGE_VERSION_MAJOR "4")
86
+ set(CPACK_PACKAGE_VERSION_MINOR "00")
87
+ set(CPACK_PACKAGE_VERSION_PATCH "0")
88
+ set(PIN_VERSION_MAJOR "1")
89
+ set(PIN_VERSION_MINOR "3")
90
+ set(POUT_VERSION_MAJOR "1")
91
+ set(POUT_VERSION_MINOR "5")
92
+ set(MZIDENTML_VERSION_MAJOR "1")
93
+ set(MZIDENTML_VERSION_MINOR "1")
94
+ set(GAML_TANDEM_VERSION_MAJOR "1")
95
+ set(GAML_TANDEM_VERSION_MINOR "0")
96
+ set(TANDEM_VERSION "2011.12.01.1")
97
+
98
+ # UPDATE PATCH VERSION FOR INTERMEDIATE BUILDS
99
+ INCLUDE(VersionGen)
100
+ NIGHTLY_VERSION_GEN(CPACK_PACKAGE_VERSION_PATCH ${CPACK_PACKAGE_VERSION_MAJOR} ${CPACK_PACKAGE_VERSION_MINOR} ${CPACK_PACKAGE_VERSION_PATCH})
101
+ #MESSAGE(STATUS "NIGHTLY_VERSION ${CPACK_PACKAGE_VERSION_PATCH}")
102
+
103
+
104
+ IF(MINGW OR WIN32)
105
+ set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" ".dll" ${CMAKE_FIND_LIBRARY_SUFFIXES})
106
+ set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} ${CMAKE_SOURCE_DIR}/lib/include)
107
+ set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${CMAKE_SOURCE_DIR}/lib/lib)
108
+ add_definitions(-D_WIN32)
109
+ ELSE(MINGW OR WIN32)
110
+ list(APPEND CMAKE_INCLUDE_PATH /usr/include)
111
+ list(APPEND CMAKE_LIBRARY_PATH /usr/lib /usr/lib64)
112
+ ENDIF(MINGW OR WIN32)
113
+
114
+ set(PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
115
+
116
+ #STATIC/DYNAMIC LIBRARY INCLUSION
117
+ # Static libraries are preferred by default on Windows only. The macOS
118
+ # installer (admin/builders/osx64_build.sh), the portable Linux build and the
119
+ # wheels (pyproject.toml) ask for them with -DSTATIC=ON; package managers
120
+ # such as conda need dynamic linking.
121
+ if(MINGW OR WIN32 OR APPLE)
122
+ OPTION(BUILD_SHARED_LIBS "build static binaries." OFF)
123
+ endif()
124
+ if(MINGW OR WIN32)
125
+ OPTION(STATIC "build static binaries. This is mainly intended for the win32-package and the MACOSX-bundle." ON )
126
+ else()
127
+ OPTION(STATIC "build static binaries. This is mainly intended for the win32-package and the MACOSX-bundle." OFF )
128
+ endif()
129
+ if(UNIX AND STATIC)
130
+ list(PREPEND CMAKE_FIND_LIBRARY_SUFFIXES .a)
131
+ endif()
132
+
133
+ ###############################################################################
134
+ # SET COMPILER OPTIONS
135
+ ###############################################################################
136
+
137
+ set (CMAKE_CXX_STANDARD 17)
138
+ set (CMAKE_CXX_STANDARD_REQUIRED YES)
139
+ set (CMAKE_CXX_EXTENSIONS OFF)
140
+
141
+ if(UNIX OR APPLE OR MINGW)
142
+ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DNDEBUG")
143
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g")
144
+ endif()
145
+
@@ -0,0 +1,25 @@
1
+ FROM docker.io/library/ubuntu:24.04 AS builder
2
+ # The image needs no tests. To build them (-DNO_TESTS=OFF), also install
3
+ # libgtest-dev, or git and ca-certificates so that GoogleTest is downloaded.
4
+ ARG percolator_cmake_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DNO_TESTS=ON"
5
+
6
+ RUN apt-get update \
7
+ && apt-get install -y --no-install-recommends build-essential cmake \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ COPY / /percolator
11
+
12
+ WORKDIR /build/percolator
13
+
14
+ RUN cmake ${percolator_cmake_args} /percolator \
15
+ && make -j"$(nproc)" \
16
+ && make install
17
+
18
+ FROM docker.io/library/ubuntu:24.04 AS runtime
19
+
20
+ # OpenMP runtime
21
+ RUN apt-get update \
22
+ && apt-get install -y --no-install-recommends libgomp1 \
23
+ && rm -rf /var/lib/apt/lists/*
24
+
25
+ COPY --from=builder /usr/bin/percolator /usr/bin/qvality /usr/bin/
@@ -0,0 +1,54 @@
1
+ Metadata-Version: 2.4
2
+ Name: percolator-cpp
3
+ Version: 4.0.0
4
+ Summary: Percolator and qvality: semi-supervised learning for peptide identification from shotgun proteomics data (command line programs)
5
+ License-Expression: Apache-2.0
6
+ License-File: license.txt
7
+ Classifier: Environment :: Console
8
+ Classifier: Intended Audience :: Science/Research
9
+ Classifier: Programming Language :: C++
10
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
11
+ Project-URL: Homepage, http://percolator.ms
12
+ Project-URL: Source, https://github.com/percolator/percolator
13
+ Requires-Python: >=3.8
14
+ Description-Content-Type: text/markdown
15
+
16
+ ## Percolator
17
+ [![Build status](https://github.com/percolator/percolator/actions/workflows/build.yml/badge.svg)](https://github.com/percolator/percolator/actions/workflows/build.yml) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code_of_conduct.md)
18
+
19
+ This repository holds the source code for percolator and format
20
+ converters software packages; a software for postprocessing of shotgun
21
+ proteomics data.
22
+
23
+ The source code is hosted at github, binary downloads can be found in the release repository:
24
+ https://github.com/percolator/percolator/releases
25
+
26
+ The building procedure is cmake-based. Helper scripts for building on
27
+ different platforms can be found in: admin/builders/
28
+
29
+ cmake -S . -B build
30
+ cmake --build build -j 4
31
+ cd build && ctest
32
+
33
+ Requirements: CMake 3.15 or later and a C++17 compiler. The oldest
34
+ supported GCC is 9; from GCC 11 on, reading and writing numbers use the
35
+ faster std::from_chars and std::to_chars. The continuous integration builds
36
+ with GCC 11 and 13 on Linux (x86-64 and arm64), AppleClang on macOS 15 (the
37
+ binaries run on macOS 12 and later) and Visual Studio 2022 on Windows; its
38
+ job with GCC 9 does not block yet.
39
+ For a profile or a coverage report, pass the compiler's flag, e.g.
40
+ `-DCMAKE_CXX_FLAGS=-pg` (gprof) or `-DCMAKE_CXX_FLAGS=--coverage` (gcov);
41
+ there are no separate CMake options for them.
42
+ Results can differ in a printed digit between platforms, since compilers and
43
+ math libraries round differently; the Build workflow lists the differences
44
+ (job platform-differences).
45
+
46
+ A Python wheel that holds only the percolator and qvality executables is
47
+ built with `python -m build --wheel` (pyproject.toml), and for all
48
+ platforms by the Wheels workflow. Its name on PyPI is percolator-cpp; a
49
+ run of the Wheels workflow started by hand on a release tag, with publish
50
+ ticked, uploads the wheels and the source distribution there if their
51
+ version, read from CommonCMake.txt, is that of the tag.
52
+
53
+ The cleanest way to build is to use the vagrant virtual machine
54
+ system, which can be setup using the script: admin/vagrant/manager.sh
@@ -0,0 +1,39 @@
1
+ ## Percolator
2
+ [![Build status](https://github.com/percolator/percolator/actions/workflows/build.yml/badge.svg)](https://github.com/percolator/percolator/actions/workflows/build.yml) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code_of_conduct.md)
3
+
4
+ This repository holds the source code for percolator and format
5
+ converters software packages; a software for postprocessing of shotgun
6
+ proteomics data.
7
+
8
+ The source code is hosted at github, binary downloads can be found in the release repository:
9
+ https://github.com/percolator/percolator/releases
10
+
11
+ The building procedure is cmake-based. Helper scripts for building on
12
+ different platforms can be found in: admin/builders/
13
+
14
+ cmake -S . -B build
15
+ cmake --build build -j 4
16
+ cd build && ctest
17
+
18
+ Requirements: CMake 3.15 or later and a C++17 compiler. The oldest
19
+ supported GCC is 9; from GCC 11 on, reading and writing numbers use the
20
+ faster std::from_chars and std::to_chars. The continuous integration builds
21
+ with GCC 11 and 13 on Linux (x86-64 and arm64), AppleClang on macOS 15 (the
22
+ binaries run on macOS 12 and later) and Visual Studio 2022 on Windows; its
23
+ job with GCC 9 does not block yet.
24
+ For a profile or a coverage report, pass the compiler's flag, e.g.
25
+ `-DCMAKE_CXX_FLAGS=-pg` (gprof) or `-DCMAKE_CXX_FLAGS=--coverage` (gcov);
26
+ there are no separate CMake options for them.
27
+ Results can differ in a printed digit between platforms, since compilers and
28
+ math libraries round differently; the Build workflow lists the differences
29
+ (job platform-differences).
30
+
31
+ A Python wheel that holds only the percolator and qvality executables is
32
+ built with `python -m build --wheel` (pyproject.toml), and for all
33
+ platforms by the Wheels workflow. Its name on PyPI is percolator-cpp; a
34
+ run of the Wheels workflow started by hand on a release tag, with publish
35
+ ticked, uploads the wheels and the source distribution there if their
36
+ version, read from CommonCMake.txt, is that of the tag.
37
+
38
+ The cleanest way to build is to use the vagrant virtual machine
39
+ system, which can be setup using the script: admin/vagrant/manager.sh
@@ -0,0 +1,14 @@
1
+ [![https://github.com/percolator/percolator/actions?query=workflow%3A%22Build+and+release%22](https://github.com/percolator/percolator/workflows/Build%20and%20release/badge.svg)](https://github.com/percolator/percolator/actions?query=workflow%3A%22Build+and+release%22)
2
+
3
+ This repository holds the source code for percolator and format
4
+ converters software packages; a software for postprocessing of shotgun
5
+ proteomics data.
6
+
7
+ The source code is hosted at github, binary downloads can be found in the release repository:
8
+ https://github.com/percolator/percolator/releases
9
+
10
+ The building procedure is cmake-based. Helper scripts for building on
11
+ different platforms can be found in: admin/builders/
12
+
13
+ The cleanest way to build is to use the vagrant virtual machine
14
+ system, which can be setup using the script: admin/vagrant/manager.sh
@@ -0,0 +1,3 @@
1
+ IF(WIN32)
2
+ INSTALL(DIRECTORY win DESTINATION share/percolator/admin )
3
+ ENDIF(WIN32)
@@ -0,0 +1,5 @@
1
+ # Centralized place for urls and files for all linux builders ...
2
+ # please do not change compression type in urls, since decompression is
3
+ # hardcoded in the respective buiding scripts
4
+
5
+ # Not used anymore
@@ -0,0 +1,59 @@
1
+ #!/bin/bash
2
+
3
+ [ "$(id -u)" -eq 0 ] && SUDO="" || SUDO="sudo"
4
+
5
+ # managing input arguments
6
+ while getopts "s:b:r:t:" OPTION; do
7
+ case $OPTION in
8
+ s) src_dir=${OPTARG};;
9
+ t) branch=${OPTARG};;
10
+ r) release_dir=${OPTARG};;
11
+ b) build_dir=${OPTARG};;
12
+ \?) echo "Invalid option: -${OPTARG}" >&2;;
13
+ esac
14
+ done
15
+
16
+ if [[ -z ${build_dir} ]]; then
17
+ build_dir="$(mktemp -d --tmpdir build_XXXX)"
18
+ fi
19
+ if [[ -z ${src_dir} ]]; then
20
+ if [[ -n ${branch} ]]; then
21
+ ${SUDO} dnf -y install git
22
+ src_dir="$(mktemp -d --tmpdir build_XXXX)"
23
+ git clone --branch "$1" https://github.com/percolator/percolator.git "${src_dir}/percolator"
24
+ else
25
+ src_dir=$(dirname ${BASH_SOURCE})/../../../
26
+ fi
27
+ fi
28
+ if [[ -z ${release_dir} ]]; then
29
+ release_dir=${HOME}/release
30
+ fi
31
+
32
+ echo "The Builder $0 is building the Percolator packages with src=${src_dir} and build=${build_dir} for the user"
33
+ whoami
34
+
35
+ ${SUDO} dnf clean all
36
+ ${SUDO} dnf -y distro-sync
37
+ ${SUDO} dnf -y install gcc gcc-c++ wget rpm-build cmake git
38
+ ${SUDO} dnf -y install epel-release
39
+ ${SUDO} dnf -y install gtest-devel
40
+
41
+ cd ${src_dir}
42
+
43
+ # download, compile and link percolator
44
+
45
+ echo "Installing percolator"
46
+
47
+ echo "cmake percolator ....."
48
+ mkdir -p ${build_dir}/percolator
49
+ cd ${build_dir}/percolator
50
+ (set -x; \
51
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ${src_dir}/percolator; \
52
+ )
53
+ make -j 4
54
+ make test
55
+ make -j 4 package
56
+
57
+ echo "build directory was : ${build_dir}"
58
+
59
+ cp -v ${build_dir}/percolator/percolator*.rpm ${release_dir}