Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/openms_ci_matrix_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -453,14 +453,17 @@ jobs:
- name: Create tarball
if: steps.set-vars.outputs.pkg_type != 'none' && startsWith(matrix.os, 'ubuntu') && runner.arch == 'arm64'
run: |
# Write the archive to RUNNER_TEMP, i.e. OUTSIDE ${{ github.workspace }} (the directory
# being archived). Writing it in-tree makes the output file grow inside the directory tar
# is reading, so GNU tar reports "tar: .: file changed as we read it" and exits 1, which
# fails the step under `bash -e`.
tar --exclude='bld/*' \
--exclude='OpenMS-${{ steps.create_changelog.outputs.version_number }}.tar.gz' \
--exclude='THIRDPARTY/**' \
--exclude='contrib/**' \
--exclude='.git/**' \
--exclude='.github/**' \
--exclude='vcpkg*/**' \
-czf OpenMS-${{ steps.create_changelog.outputs.version_number }}.tar.gz -C ${{ github.workspace }} .
-czf ${{ runner.temp }}/OpenMS-${{ steps.create_changelog.outputs.version_number }}.tar.gz -C ${{ github.workspace }} .

# Upload the source tar
- name: Upload source tar as artifact
Expand All @@ -469,7 +472,7 @@ jobs:
with:
name: OpenMS-${{ steps.create_changelog.outputs.version_number }}.tar.gz
path: |
${{ github.workspace }}/OpenMS-${{ steps.create_changelog.outputs.version_number }}.tar.gz
${{ runner.temp }}/OpenMS-${{ steps.create_changelog.outputs.version_number }}.tar.gz


# Only upload docs when we are building the package, use the ubuntu build simply 'cause its fast
Expand Down
24 changes: 11 additions & 13 deletions cmake/add_library_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,19 @@ endfunction(convert_to_unity_build)
## @note This macro will do nothing outside of Windows since the linker will find the libs.
macro(copy_dll_to_extern_bin targetname)
if (WIN32)
if (CMAKE_GENERATOR MATCHES "Visual Studio")
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/src/tests/class_tests/bin/$(ConfigurationName)/$(TargetFileName)" DLL_TEST_TARGET)
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/src/tests/class_tests/bin/$(ConfigurationName)" DLL_TEST_TARGET_PATH)
get_property(_copy_dll_is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(_copy_dll_is_multi_config)
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/src/tests/class_tests/bin/$<CONFIG>/$<TARGET_FILE_NAME:${targetname}>" DLL_TEST_TARGET)
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/src/tests/class_tests/bin/$<CONFIG>" DLL_TEST_TARGET_PATH)

file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/doc/doxygen/parameters/$(ConfigurationName)/$(TargetFileName)" DLL_DOC_TARGET)
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/doc/doxygen/parameters/$(ConfigurationName)" DLL_DOC_TARGET_PATH)
elseif(NOT GENERATOR_IS_MULTI_CONFIG)
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/src/tests/class_tests/bin/" DLL_TEST_TARGET)
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/doc/doxygen/parameters/$<CONFIG>/$<TARGET_FILE_NAME:${targetname}>" DLL_DOC_TARGET)
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/doc/doxygen/parameters/$<CONFIG>" DLL_DOC_TARGET_PATH)
else()
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/src/tests/class_tests/bin/$<TARGET_FILE_NAME:${targetname}>" DLL_TEST_TARGET)
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/src/tests/class_tests/bin/" DLL_TEST_TARGET_PATH)

file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/doc/doxygen/parameters/" DLL_DOC_TARGET)
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/doc/doxygen/parameters/$<TARGET_FILE_NAME:${targetname}>" DLL_DOC_TARGET)
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/doc/doxygen/parameters/" DLL_DOC_TARGET_PATH)
else()
message(WARNING "Sorry, multiconfig generators on windows other than Visual Studio not supported yet.
Please look for the line of this error and implement some CMake Generator expressions to copy
DLLs to the binaries, or modify your environment for the tests to find all library DLLs.")
endif()
add_custom_command(TARGET ${targetname}
POST_BUILD
Expand Down Expand Up @@ -237,7 +234,8 @@ function(openms_add_library)
$<TARGET_FILE_DIR:${openms_add_library_TARGET_NAME}>
)

if(GENERATOR_IS_MULTI_CONFIG)
get_property(is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(is_multi_config)
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/src/tests/class_tests/bin/$<CONFIG>/" DLL_TEST_TARGET_PATH)
file(TO_NATIVE_PATH "${OPENMS_HOST_BINARY_DIRECTORY}/doc/doxygen/parameters/$<CONFIG>/" DLL_DOC_TARGET_PATH)
else()
Expand Down
2 changes: 1 addition & 1 deletion contrib
Submodule contrib updated 64 files
+0 −89 .github/workflows/deploy-manylinux-docker.yml
+0 −54 .github/workflows/deploydocker.yml
+0 −203 .github/workflows/main.yml
+0 −17 .github/workflows/vsenv.bat
+0 −1 .gitignore
+0 −10 .gitpod.yml
+153 −204 CMakeLists.txt
+0 −35 LICENSE.md
+0 −0 License.bsd.kissfft.txt
+26 −0 License.bsd.seqan.txt
+0 −0 License.bzip2.txt
+0 −0 License.gpl-2.0.txt
+0 −0 License.gpl-3.0.txt
+0 −0 License.lgpl-2.1.txt
+0 −0 License.libSVM.txt
+10 −19 License.txt
+2 −10 README.md
+0 −67 dockerfiles/Dockerfile
+0 −1 dockerfiles/Dockerfile.dockerignore
+0 −36 dockerfiles/pyopenms/manylinux/ARM64_Dockerfile
+0 −36 dockerfiles/pyopenms/manylinux/Dockerfile
+0 −2 dockerfiles/readme.md
+0 −44 docs/plans/2026-03-06-curl-arrow-integration-design.md
+0 −243 libraries.cmake/arrow.cmake
+26 −67 libraries.cmake/boost.cmake
+4 −5 libraries.cmake/bzip2.cmake
+47 −103 libraries.cmake/coinor.cmake
+0 −99 libraries.cmake/curl.cmake
+17 −21 libraries.cmake/eigen.cmake
+5 −3 libraries.cmake/glpk.cmake
+0 −114 libraries.cmake/hdf5.cmake
+2 −3 libraries.cmake/kissfft.cmake
+9 −9 libraries.cmake/libsvm.cmake
+0 −162 libraries.cmake/libzip.cmake
+0 −69 libraries.cmake/openmp.cmake
+79 −0 libraries.cmake/seqan.cmake
+142 −0 libraries.cmake/sqlite.cmake
+123 −0 libraries.cmake/wildmagic.cmake
+10 −33 libraries.cmake/xercesc.cmake
+101 −115 libraries.cmake/zlib.cmake
+0 −105 licensetexts/License.hdf5.txt
+0 −2 licensetexts/README.md
+43 −73 macros.cmake
+0 −21 patches/boost/boost_xcode11.patch
+1 −1 patches/bzip2/CMakeLists.txt
+0 −18 patches/coinor/Idiot.cpp.diff
+40 −0 patches/eigen/CMakeLists.txt.patch
+20 −0 patches/eigen/blasCMakeLists.txt.patch
+17 −0 patches/eigen/unsupportedCMakeLists.txt.patch
+11 −0 patches/gsl/Makefile_in.diff
+35 −0 patches/gsl/config.diff
+1 −1 patches/kissfft/CMakeLists.txt
+1 −1 patches/libsvm/CMakeLists.txt
+11 −0 patches/seqan/graph_impl_fragment_smaller_than_template.diff
+11 −0 patches/wildmagic/Wm5Assert.cpp.patch
+20 −0 patches/wildmagic/Wm5Assert.h.patch
+11 −0 patches/wildmagic/Wm5CoreLIB.patch
+10 −0 patches/wildmagic/Wm5Vector2.patch
+181 −0 patches/wildmagic/libcore_CMakeLists.txt
+859 −0 patches/wildmagic/libmath_CMakeLists.txt
+27 −0 patches/wildmagic/root_CMakeLists.txt
+0 −11 patches/xercesc/CMakeLists.txt.patch
+0 −14 patches/xercesc/XercesDLL.cmake.patch
+22 −0 patches/zlib/zlib_cmakelists.diff
2 changes: 1 addition & 1 deletion src/openms/include/OpenMS/ANALYSIS/ID/IDBoostGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ namespace OpenMS
template < typename Edge, typename Graph >
void examine_edge(Edge e, const Graph & tg)
{
if (m.find(e.m_target) == m.end())
if (!m.contains(e.m_target))
{
next_v = boost::add_vertex(tg[e.m_target], gs.back());
m[e.m_target] = next_v;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#include <OpenMS/KERNEL/Peak2D.h>

#include <array>
#include <string_view>
#include <utility>
#include <vector>

Expand All @@ -32,6 +34,31 @@ namespace OpenMS
{
public:

/// Identifies a concrete isobaric quantitation method. UNKNOWN is used as a sentinel (disabled/none).
enum class MethodType
{
UNKNOWN = 0,
TMT_6PLEX,
TMT_10PLEX,
TMT_11PLEX,
TMT_16PLEX,
TMT_18PLEX,
TMT_32PLEX,
TMT_35PLEX,
ITRAQ_4PLEX,
ITRAQ_8PLEX,
SIZE_OF_METHODTYPE ///< keep last
};

/// String identifiers for each MethodType, indexed by static_cast<int>(MethodType).
static const std::array<std::string_view, static_cast<int>(MethodType::SIZE_OF_METHODTYPE)> METHOD_TYPE_NAMES;

/// Returns the string identifier for a given MethodType.
static std::string_view methodTypeName(MethodType mt);

/// Returns the MethodType corresponding to @p name, or MethodType::UNKNOWN if not found.
static MethodType methodTypeFromName(std::string_view name);

/**
@brief Summary of an isobaric quantitation channel.
*/
Expand Down Expand Up @@ -78,6 +105,9 @@ namespace OpenMS
*/
virtual const String& getMethodName() const = 0;

/// Returns the MethodType enum value of this quantitation method.
virtual MethodType getMethodType() const = 0;

/**
@brief Returns information on the different channels used by the quantitation method.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ namespace OpenMS

const String& getMethodName() const override;

MethodType getMethodType() const override { return METHOD_TYPE; }

const IsobaricChannelList& getChannelInformation() const override;

Size getNumberOfChannels() const override;
Expand All @@ -50,13 +52,12 @@ namespace OpenMS

/// @}

static constexpr MethodType METHOD_TYPE = MethodType::ITRAQ_8PLEX;

private:
/// the actual information on the different itraq8plex channels.
IsobaricChannelList channels_;

/// The name of the quantitation method.
static const String name_;

/// The reference channel for this experiment.
Size reference_channel_;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,24 @@ namespace OpenMS

const String& getMethodName() const override;

MethodType getMethodType() const override { return METHOD_TYPE; }

const IsobaricChannelList& getChannelInformation() const override;

Size getNumberOfChannels() const override;

Matrix<double> getIsotopeCorrectionMatrix() const override;

Size getReferenceChannel() const override;

/// @}

static constexpr MethodType METHOD_TYPE = MethodType::ITRAQ_4PLEX;

private:
/// the actual information on the different itraq4plex channels.
IsobaricChannelList channels_;

/// The name of the quantitation method.
static const String name_;

/// The reference channel for this experiment.
Size reference_channel_;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ namespace OpenMS

const String& getMethodName() const override;

MethodType getMethodType() const override { return METHOD_TYPE; }

const IsobaricChannelList& getChannelInformation() const override;

Size getNumberOfChannels() const override;
Expand All @@ -50,13 +52,12 @@ namespace OpenMS

/// @}

static constexpr MethodType METHOD_TYPE = MethodType::TMT_18PLEX;

private:
/// the actual information on the different tmt18plex channels.
IsobaricChannelList channels_;

/// The name of the quantitation method.
static const String name_;

/// The reference channel for this experiment.
Size reference_channel_;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ namespace OpenMS

const String& getMethodName() const override;

MethodType getMethodType() const override { return METHOD_TYPE; }

const IsobaricChannelList& getChannelInformation() const override;

Size getNumberOfChannels() const override;
Expand All @@ -50,13 +52,12 @@ namespace OpenMS

/// @}

static constexpr MethodType METHOD_TYPE = MethodType::TMT_11PLEX;

private:
/// the actual information on the different tmt11plex channels.
IsobaricChannelList channels_;

/// The name of the quantitation method.
static const String name_;

/// The reference channel for this experiment.
Size reference_channel_;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ namespace OpenMS

const String& getMethodName() const override;

MethodType getMethodType() const override { return METHOD_TYPE; }

const IsobaricChannelList& getChannelInformation() const override;

Size getNumberOfChannels() const override;
Expand All @@ -50,13 +52,12 @@ namespace OpenMS

/// @}

static constexpr MethodType METHOD_TYPE = MethodType::TMT_6PLEX;

private:
/// the actual information on the different tmt 6plex channels.
IsobaricChannelList channels_;

/// The name of the quantitation method.
static const String name_;

/// The reference channel for this experiment.
Size reference_channel_;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ namespace OpenMS

const String& getMethodName() const override;

MethodType getMethodType() const override { return METHOD_TYPE; }

const IsobaricChannelList& getChannelInformation() const override;

Size getNumberOfChannels() const override;
Expand All @@ -50,13 +52,12 @@ namespace OpenMS

/// @}

static constexpr MethodType METHOD_TYPE = MethodType::TMT_16PLEX;

private:
/// the actual information on the different tmt16plex channels.
IsobaricChannelList channels_;

/// The name of the quantitation method.
static const String name_;

/// The reference channel for this experiment.
Size reference_channel_;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ namespace OpenMS

const String& getMethodName() const override;

MethodType getMethodType() const override { return METHOD_TYPE; }

const IsobaricChannelList& getChannelInformation() const override;

Size getNumberOfChannels() const override;
Expand All @@ -50,13 +52,12 @@ namespace OpenMS

/// @}

static constexpr MethodType METHOD_TYPE = MethodType::TMT_10PLEX;

private:
/// the actual information on the different tmt10plex channels.
IsobaricChannelList channels_;

/// The name of the quantitation method.
static const String name_;

/// The reference channel for this experiment.
Size reference_channel_;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,22 @@ namespace OpenMS{
/// @brief Methods to implement from IsobaricQuantitationMethod
/// @{
const String& getMethodName() const override;
MethodType getMethodType() const override { return METHOD_TYPE; }
const IsobaricChannelList& getChannelInformation() const override;
Size getNumberOfChannels() const override;
Matrix<double> getIsotopeCorrectionMatrix() const override;
Size getReferenceChannel() const override;
/// @}

static constexpr MethodType METHOD_TYPE = MethodType::TMT_35PLEX;

private:
/// The actual information on the different TMT 35plex channels.
IsobaricChannelList channels_;

/// The name of the quantitation method.
static const String name_;

/// The reference channel for this experiment.
Size reference_channel_;

/// List of available channel names as they are presented to the user
static const std::vector<std::string> channel_names_;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,22 @@ namespace OpenMS{
/// @brief Methods to implement from IsobaricQuantitationMethod
/// @{
const String& getMethodName() const override;
MethodType getMethodType() const override { return METHOD_TYPE; }
const IsobaricChannelList& getChannelInformation() const override;
Size getNumberOfChannels() const override;
Matrix<double> getIsotopeCorrectionMatrix() const override;
Size getReferenceChannel() const override;
/// @}

static constexpr MethodType METHOD_TYPE = MethodType::TMT_32PLEX;

private:
/// The actual information on the different TMT 32plex channels.
IsobaricChannelList channels_;

/// The name of the quantitation method.
static const String name_;

/// The reference channel for this experiment.
Size reference_channel_;

/// List of available channel names as they are presented to the user
static const std::vector<std::string> channel_names_;

Expand Down
6 changes: 3 additions & 3 deletions src/openms/include/OpenMS/CHEMISTRY/DigestionEnzymeDB.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,19 @@ namespace OpenMS
/// returns true if the db contains a enzyme with the given name (supports synonym names)
bool hasEnzyme(const String& name) const
{
return (enzyme_names_.find(name) != enzyme_names_.end());
return (enzyme_names_.contains(name));
}

/// returns true if the db contains a enzyme with the given regex
bool hasRegEx(const String& cleavage_regex) const
{
return (enzyme_regex_.find(cleavage_regex) != enzyme_regex_.end());
return (enzyme_regex_.contains(cleavage_regex));
}

/// returns true if the db contains the enzyme of the given pointer
bool hasEnzyme(const DigestionEnzymeType* enzyme) const
{
return (const_enzymes_.find(enzyme) != const_enzymes_.end() );
return (const_enzymes_.contains(enzyme) );
}
//@}

Expand Down
Loading
Loading