Skip to content

Commit e9a8010

Browse files
authored
Merge pull request #2 from OpenMS/develop
Update my fork
2 parents cef0e0c + 5fe7aec commit e9a8010

File tree

384 files changed

+7567
-4864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

384 files changed

+7567
-4864
lines changed

.gitpod.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
tasks:
2-
- init: cp -r .vscode-gitpod .vscode && echo "Welcome!"
3-
prebuild: git config -f .gitmodules submodule.THIRDPARTY.shallow true &&
4-
git submodule update --init THIRDPARTY &&
5-
export PATH=$PATH$( find ${PWD}/THIRDPARTY/All -type d -printf ":%p" ) &&
6-
export PATH=$PATH$( find ${PWD}/THIRDPARTY/Linux/64bit -type d -printf ":%p" ) &&
7-
mkdir -p build && pushd build && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_PREFIX_PATH='/contrib-build/;/usr/;/usr/local' -DBOOST_USE_STATIC=OFF ../ && make -j16 && popd
8-
command: export PATH=$PATH$( find ${PWD}/THIRDPARTY/All -type d -printf ":%p" ) &&
9-
export PATH=$PATH$( find ${PWD}/THIRDPARTY/Linux/64bit -type d -printf ":%p" )
2+
- init: >
3+
cp -r .vscode-gitpod .vscode && echo "Welcome!"
4+
git config -f .gitmodules submodule.THIRDPARTY.shallow true &&
5+
git submodule update --init THIRDPARTY &&
6+
export PATH=$PATH$( find ${PWD}/THIRDPARTY/All -type d -printf ":%p" ) &&
7+
export PATH=$PATH$( find ${PWD}/THIRDPARTY/Linux/64bit -type d -printf ":%p" ) &&
8+
mkdir -p build && pushd build && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_PREFIX_PATH='/contrib-build/;/usr/;/usr/local' -DBOOST_USE_STATIC=OFF ../ &&
9+
make -j16 && popd
10+
command: >
11+
export PATH=$PATH$( find ${PWD}/THIRDPARTY/All -type d -printf ":%p" ) &&
12+
export PATH=$PATH$( find ${PWD}/THIRDPARTY/Linux/64bit -type d -printf ":%p" )
1013
image:
1114
file: .gitpod.Dockerfile
1215
github:
@@ -37,4 +40,4 @@ vscode:
3740
- cschlosser.doxdocgen@0.7.2:g0DIKlW09t+j2Xi04fzrAA==
3841
- hbenl.vscode-test-explorer@2.19.2:8rKHUShFJJd0UivektEkng==
3942
- fredericbonnet.cmake-test-adapter@0.10.0:Fb9mp0fAtp8s6LKtpzJAyw==
40-
- notskm.clang-tidy@0.5.1:+QMYmPGGWj0QCN6sba42Vw==
43+
- notskm.clang-tidy@0.5.1:+QMYmPGGWj0QCN6sba42Vw==

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ the authors tag in the respective file header.
2121
- Daniel Jameson
2222
- Darren Kessner
2323
- David Wojnar
24+
- David Voigt
2425
- Dilek Dere
2526
- Dimitri Schachmann
2627
- Dominik Schmitz

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Adapters/Third-party support:
1919
- Added basic Triqler export
2020
- ParamEditor with more convenient StringList editing (#5135)
2121
- TOPPAS: add a `recent files` submenu
22+
- removed InspectAdapter
2223

2324
Further fixes:
2425
- support for GLPK 5.x (#5127)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ OpenMS
55
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/93e71bad214f46d2a534ec92dbc2efc9)](https://www.codacy.com/app/OpenMS/OpenMS?utm_source=github.com&utm_medium=referral&utm_content=OpenMS/OpenMS&utm_campaign=badger)
66
[![Build Status](https://travis-ci.org/OpenMS/OpenMS.svg?branch=develop)](https://travis-ci.org/OpenMS/OpenMS)
77
[![Project Stats](https://www.openhub.net/p/open-ms/widgets/project_thin_badge.gif)](https://www.openhub.net/p/open-ms)
8+
![Discord Shield](https://discordapp.com/api/guilds/832282841836159006/widget.png?style=shield)
89
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/OpenMS/OpenMS?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
910
[![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat-square)](http://bioconda.github.io/recipes/openms-meta/README.html)
1011
[![documentation](https://codedocs.xyz/doxygen/doxygen.svg)](https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/latest/html/index.html)
@@ -38,7 +39,7 @@ Berlin, and the ETH Zürich.
3839

3940
Features
4041
--------
41-
- Core C++ library under three-clause BSD licence using modern C++11
42+
- Core C++ library under three-clause BSD licence using modern C++17
4243
- Python bindings to the C++ API through pyOpenMS
4344
- Major community file formats supported (mzML, mzXML, mzIdentXML, pepXML etc)
4445
- Over 150+ individual analysis tools (TOPP Tools), covering most MS and LC-MS data processing and mining tasks

doc/code_examples/Tutorial_Param.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
//
3030

31+
#include <OpenMS/CONCEPT/Types.h>
3132
#include <OpenMS/DATASTRUCTURES/Param.h>
3233
#include <iostream>
3334

@@ -43,7 +44,7 @@ Int main()
4344
param.setValue("file:data:min_int", 0);
4445
param.setValue("file:data:max_int", 16459);
4546

46-
cout << "Name : " << (String)(param.getValue("file:name")) << endl;
47+
cout << "Name : " << (string)(param.getValue("file:name")) << endl;
4748
cout << "Size : " << (float)(param.getValue("file:size(MB)")) << endl;
4849
cout << "Min int: " << (UInt)(param.getValue("file:data:min_int")) << endl;
4950
cout << "Max int: " << (UInt)(param.getValue("file:data:max_int")) << endl;

doc/doxygen/parameters/DefaultParamHandlerDocumenter.cpp

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,22 @@ void writeParameters(const String& class_name, const Param& param, bool table_on
189189
ofstream f((String("output/OpenMS_") + class_name + ".parameters").c_str());
190190

191191
if (!table_only)
192+
{
192193
f << "<B>Parameters of this class are:</B><BR><BR>\n";
194+
}
193195
f << "<table border=\"1\" style=\"border-style:solid; border-collapse:collapse; border-color:#c0c0c0;\" width=\"100%\" cellpadding=\"4\">" << endl;
194196
f << "<tr style=\"border-bottom:1px solid black; background:#fffff0\"><th>Name</th><th>Type</th><th>Default</th><th>Restrictions</th><th>Description</th></tr>" << endl;
195197
String type, description, restrictions;
196198
for (Param::ParamIterator it = param.begin(); it != param.end(); ++it)
197199
{
198200
restrictions = "";
199-
if (it->value.valueType() == DataValue::INT_VALUE || it->value.valueType() == DataValue::INT_LIST)
201+
if (it->value.valueType() == ParamValue::INT_VALUE || it->value.valueType() == ParamValue::INT_LIST)
200202
{
201203
type = "int";
202-
if (it->value.valueType() == DataValue::INT_LIST)
204+
if (it->value.valueType() == ParamValue::INT_LIST)
205+
{
203206
type += " list";
207+
}
204208

205209
//restrictions
206210
bool first = true;
@@ -212,14 +216,16 @@ void writeParameters(const String& class_name, const Param& param, bool table_on
212216
if (it->max_int != (numeric_limits<Int>::max)())
213217
{
214218
if (!first)
219+
{
215220
restrictions += ' ';
221+
}
216222
restrictions += String("max: ") + it->max_int;
217223
}
218224
}
219-
else if (it->value.valueType() == DataValue::DOUBLE_VALUE || it->value.valueType() == DataValue::DOUBLE_LIST)
225+
else if (it->value.valueType() == ParamValue::DOUBLE_VALUE || it->value.valueType() == ParamValue::DOUBLE_LIST)
220226
{
221227
type = "float";
222-
if (it->value.valueType() == DataValue::DOUBLE_LIST)
228+
if (it->value.valueType() == ParamValue::DOUBLE_LIST)
223229
type += " list";
224230

225231
//restrictions
@@ -236,10 +242,10 @@ void writeParameters(const String& class_name, const Param& param, bool table_on
236242
restrictions += String("max: ") + it->max_float;
237243
}
238244
}
239-
else if (it->value.valueType() == DataValue::STRING_VALUE || it->value.valueType() == DataValue::STRING_LIST)
245+
else if (it->value.valueType() == ParamValue::STRING_VALUE || it->value.valueType() == ParamValue::STRING_LIST)
240246
{
241247
type = "string";
242-
if (it->value.valueType() == DataValue::STRING_LIST)
248+
if (it->value.valueType() == ParamValue::STRING_LIST)
243249
type += " list";
244250

245251
//restrictions
@@ -289,7 +295,7 @@ void writeParameters(const String& class_name, const Param& param, bool table_on
289295
}
290296

291297
//replace # and @ in values
292-
String value = it->value;
298+
String value = it->value.toString(true);
293299
value.substitute("@", "XXnot_containedXX");
294300
value.substitute("XXnot_containedXX", "@@");
295301
value.substitute("#", "XXnot_containedXX");
@@ -480,7 +486,7 @@ int main(int argc, char** argv)
480486
// some classes require a QApplication
481487
QApplication app(argc, argv);
482488

483-
DOCME(TOPPViewBase);
489+
DOCME2(TOPPViewBase, TOPPViewBase(TOPPViewBase::TOOL_SCAN::SKIP_SCAN));
484490
DOCME(TOPPASBase);
485491

486492
DOCME2(Plot1DCanvas, Plot1DCanvas(Param(), nullptr));

doc/doxygen/parameters/TOPPDocumenter.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void convertINI2HTML(const Param& p, ostream& os)
100100
s_attr += " item_advanced"; // optionally add advanced class
101101
if (it->tags.find("required") != it->tags.end())
102102
s_req += " item_required"; // optionally add required class
103-
DataValue::DataType value_type = it->value.valueType();
103+
ParamValue::ValueType value_type = it->value.valueType();
104104
//write opening tag
105105
os << indentation
106106
<< "<div class=\"item"
@@ -123,7 +123,7 @@ void convertINI2HTML(const Param& p, ostream& os)
123123

124124
//tags
125125
String list;
126-
for (set<String>::const_iterator tag_it = it->tags.begin(); tag_it != it->tags.end(); ++tag_it)
126+
for (auto tag_it = it->tags.begin(); tag_it != it->tags.end(); ++tag_it)
127127
{
128128
if (*tag_it == "advanced")
129129
continue; // do not list "advanced" or "required" (this is done by color coding)
@@ -139,8 +139,8 @@ void convertINI2HTML(const Param& p, ostream& os)
139139
String restrictions = "";
140140
switch (value_type)
141141
{
142-
case DataValue::INT_VALUE:
143-
case DataValue::INT_LIST:
142+
case ParamValue::INT_VALUE:
143+
case ParamValue::INT_LIST:
144144
{
145145
bool min_set = (it->min_int != -numeric_limits<Int>::max());
146146
bool max_set = (it->max_int != numeric_limits<Int>::max());
@@ -159,8 +159,8 @@ void convertINI2HTML(const Param& p, ostream& os)
159159
}
160160
break;
161161

162-
case DataValue::DOUBLE_VALUE:
163-
case DataValue::DOUBLE_LIST:
162+
case ParamValue::DOUBLE_VALUE:
163+
case ParamValue::DOUBLE_LIST:
164164
{
165165
bool min_set = (it->min_float != -numeric_limits<double>::max());
166166
bool max_set = (it->max_float != numeric_limits<double>::max());
@@ -179,8 +179,8 @@ void convertINI2HTML(const Param& p, ostream& os)
179179
}
180180
break;
181181

182-
case DataValue::STRING_VALUE:
183-
case DataValue::STRING_LIST:
182+
case ParamValue::STRING_VALUE:
183+
case ParamValue::STRING_LIST:
184184
if (it->valid_strings.size() != 0)
185185
{
186186
restrictions.concatenate(it->valid_strings.begin(), it->valid_strings.end(), ",");

doc/doxygen/public/TOPP.doxygen

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
- @subpage TOPP_CompNovo - Performs a peptide/protein identification with the CompNovo engine.
119119
- @subpage TOPP_CompNovoCID - Performs a peptide/protein identification with the CompNovo engine in CID mode.
120120
- @subpage TOPP_CruxAdapter - Identifies peptides in MS/MS spectra via Crux and tide-search (external).
121-
- @subpage TOPP_InspectAdapter - Identifies MS/MS spectra using Inspect (external).
122121
- @subpage TOPP_MascotAdapter - Identifies MS/MS spectra using Mascot (external).
123122
- @subpage TOPP_MascotAdapterOnline - Identifies MS/MS spectra using Mascot (external).
124123
- @subpage TOPP_MSGFPlusAdapter - Identifies MS/MS spectra using MSGFPlus (external).

doc/doxygen/public/UTILS.doxygen

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
- @subpage UTILS_PeakPickerIterative - A tool for peak detection in profile data.
5454

5555
<b>File Handling</b>
56-
- @subpage UTILS_CVInspector - A tool for visualization and validation of PSI mapping and CV files.
5756
- @subpage UTILS_FuzzyDiff - Compares two files, tolerating numeric differences.
5857
- @subpage UTILS_IDSplitter - Splits protein/peptide identifications off of annotated data files.
5958
- @subpage UTILS_MzMLSplitter - Splits an mzML file into multiple parts.
8.55 MB
Binary file not shown.

0 commit comments

Comments
 (0)