percolator-cpp 4.0.0__py3-none-macosx_12_0_arm64.whl
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.
- percolator_cpp-4.0.0.dist-info/METADATA +54 -0
- percolator_cpp-4.0.0.dist-info/RECORD +8 -0
- percolator_cpp-4.0.0.dist-info/WHEEL +6 -0
- percolator_cpp-4.0.0.dist-info/entry_points.txt +4 -0
- percolator_cpp-4.0.0.dist-info/licenses/license.txt +51 -0
- percolator_launcher/__init__.py +51 -0
- percolator_launcher/bin/percolator +0 -0
- percolator_launcher/bin/qvality +0 -0
|
@@ -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
|
+
[](https://github.com/percolator/percolator/actions/workflows/build.yml) [](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,8 @@
|
|
|
1
|
+
percolator_launcher/__init__.py,sha256=RJNZDpQoHWRgjcTvMUQK9vixLpTcm3Qwt-yXBBXA3m8,1592
|
|
2
|
+
percolator_launcher/bin/percolator,sha256=kNsruXh1oEkijVgfxLe0sbCbIwADtjMG2ZRsTx15yMQ,1354648
|
|
3
|
+
percolator_launcher/bin/qvality,sha256=Bvlx-GefRC3mhQf9yfQbSmX5ThHPPyrVezSykpuohDY,236056
|
|
4
|
+
percolator_cpp-4.0.0.dist-info/RECORD,,
|
|
5
|
+
percolator_cpp-4.0.0.dist-info/WHEEL,sha256=oy9zFFjYUDjtu41ecHwKfdsR3R1-Ypgl_nDoJvDdbb0,137
|
|
6
|
+
percolator_cpp-4.0.0.dist-info/entry_points.txt,sha256=zRfR0ew6sD3Mzo8wYL52BkcJXX9j_UWgrqb_zfF97nw,101
|
|
7
|
+
percolator_cpp-4.0.0.dist-info/METADATA,sha256=T7UfoEppKOpuxdoQJy7QkyaS2c7xOGVEp1cD9mfRlEU,2733
|
|
8
|
+
percolator_cpp-4.0.0.dist-info/licenses/license.txt,sha256=R68UNz3NBGlxqV48HVz5qWEqrp76lUW2YxH5QseQLRo,2791
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Percolator, qvality, sqt2pin, mzidentml2pin are distributed under
|
|
2
|
+
Apache 2.0 license with the following boiler-plate meassage:
|
|
3
|
+
|
|
4
|
+
Copyright 2006-2012 Lukas Käll <lukas.kall@scilifelab.se>
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
you may not use this file except in compliance with the License.
|
|
7
|
+
You may obtain a copy of the License at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
See the License for the specific language governing permissions and
|
|
15
|
+
limitations under the License.
|
|
16
|
+
|
|
17
|
+
The source code bundle includes a couple of other software packages as well:
|
|
18
|
+
|
|
19
|
+
*The Fido Suite is written by Oliver R. Serang in Department of Genome Science
|
|
20
|
+
at the University of Washington, Copyright © 2008-9 Oliver Serang, under MIT
|
|
21
|
+
license.
|
|
22
|
+
|
|
23
|
+
*libSVM by Chih-Chung Chang and Chih-Jen Lin:
|
|
24
|
+
|
|
25
|
+
Copyright © 2000-2008 Chih-Chung Chang and Chih-Jen Lin All rights
|
|
26
|
+
reserved.
|
|
27
|
+
Redistribution and use in source and binary forms, with or without
|
|
28
|
+
modification, are permitted provided that the following conditions
|
|
29
|
+
are met:
|
|
30
|
+
1. Redistributions of source code must retain the above copyright
|
|
31
|
+
notice, this list of conditions and the following disclaimer.
|
|
32
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
33
|
+
notice, this list of conditions and the following disclaimer in the
|
|
34
|
+
documentation and/or other materials provided with the distribution.
|
|
35
|
+
3. Neither name of copyright holders nor the names of its contributors
|
|
36
|
+
may be used to endorse or promote products derived from this software
|
|
37
|
+
without specific prior written permission.
|
|
38
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
39
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
40
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
41
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
|
|
42
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
43
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
44
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
45
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
|
46
|
+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
47
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
48
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
49
|
+
|
|
50
|
+
*MSToolkit written by Michael Hoopman, University of Washington, provided
|
|
51
|
+
under BSD license.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Starts the percolator and qvality executables that the wheel bundles.
|
|
2
|
+
|
|
3
|
+
The wheel holds the binaries of the CMake build in the bin directory of this
|
|
4
|
+
package (see pyproject.toml). The console commands "percolator" and
|
|
5
|
+
"qvality" call the functions of the same names below. There is no Python
|
|
6
|
+
API: the functions pass the command line on and end with the exit status of
|
|
7
|
+
the program.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import os
|
|
11
|
+
import subprocess
|
|
12
|
+
import sys
|
|
13
|
+
|
|
14
|
+
__all__ = ["executable", "percolator", "qvality"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def executable(name):
|
|
18
|
+
"""Returns the path of the bundled program (percolator or qvality)."""
|
|
19
|
+
suffix = ".exe" if os.name == "nt" else ""
|
|
20
|
+
path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "bin",
|
|
21
|
+
name + suffix)
|
|
22
|
+
if not os.path.isfile(path):
|
|
23
|
+
raise FileNotFoundError("the bundled program %s is missing" % path)
|
|
24
|
+
return path
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _run(name):
|
|
28
|
+
exe = executable(name)
|
|
29
|
+
args = [exe] + sys.argv[1:]
|
|
30
|
+
if os.name != "nt":
|
|
31
|
+
# replaces this process, so signals and the exit status are the
|
|
32
|
+
# program's own
|
|
33
|
+
os.execv(exe, args)
|
|
34
|
+
# Windows has no exec that keeps the console waiting: start the program
|
|
35
|
+
# and wait for it. Ctrl-C reaches the child as well, so keep waiting for
|
|
36
|
+
# it to end instead of leaving it behind. vcomp140.dll (OpenMP) is found
|
|
37
|
+
# in the directory of the executable.
|
|
38
|
+
process = subprocess.Popen(args)
|
|
39
|
+
while True:
|
|
40
|
+
try:
|
|
41
|
+
sys.exit(process.wait())
|
|
42
|
+
except KeyboardInterrupt:
|
|
43
|
+
pass
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def percolator():
|
|
47
|
+
_run("percolator")
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def qvality():
|
|
51
|
+
_run("qvality")
|
|
Binary file
|
|
Binary file
|