[med-svn] [Git][med-team/salmon][upstream] New upstream version 1.10.1+ds1

Andreas Tille (@tille) gitlab at salsa.debian.org
Sun Mar 12 14:49:25 GMT 2023



Andreas Tille pushed to branch upstream at Debian Med / salmon


Commits:
475c60bd by Andreas Tille at 2023-03-12T14:01:56+01:00
New upstream version 1.10.1+ds1
- - - - -


9 changed files:

- CMakeLists.txt
- cmake/Modules/FindCereal.cmake → cmake/Modules/Findcereal.cmake
- current_version.txt
- doc/source/conf.py
- doc/source/salmon.rst
- docker/Dockerfile
- docker/build_test.sh
- include/SalmonConfig.hpp
- scripts/fetchPufferfish.sh


Changes:

=====================================
CMakeLists.txt
=====================================
@@ -224,10 +224,10 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
     endif()
 
     set(WARNING_IGNORE_FLAGS "${WARNING_IGNORE_FLAGS} -Wno-unused-local-typedefs")
-    set(BOOST_TOOLSET "${CC}")
+    set(BOOST_TOOLSET "gcc")
     set(BOOST_CONFIGURE_TOOLSET "--with-toolset=gcc")
     set(BCXX_FLAGS "${CXXSTDFLAG} ${SCHAR_FLAG}")
-    set(BOOST_EXTRA_FLAGS toolset=${CC} cxxflags=${BCXX_FLAGS})
+    set(BOOST_EXTRA_FLAGS toolset=gcc cxxflags=${BCXX_FLAGS})
 # Tentatively, we support clang now
 elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
     set(CLANG TRUE)
@@ -580,22 +580,21 @@ set(EXTERNAL_LIBRARY_PATH $CMAKE_CURRENT_SOURCE_DIR/lib)
 #  set(SUFFARRAY_INCLUDE_DIRS ${SUFFARRAY_INCLUDE_DIR})
 #endif()
 
-
-find_package(Cereal)
+find_package(cereal "1.3.2")
 if (NOT CEREAL_FOUND)
-  message("Build system will fetch and build the Cereal serialization library")
+  message("Build system will fetch and build the cereal serialization library")
   message("==================================================================")
   include(ExternalProject)
   externalproject_add(libcereal
     DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external
-    DOWNLOAD_COMMAND curl -k -L https://github.com/USCiLab/cereal/archive/v1.3.0.tar.gz -o cereal-v1.3.0.tar.gz &&
-      ${SHASUM} 329ea3e3130b026c03a4acc50e168e7daff4e6e661bc6a7dfec0d77b570851d5 cereal-v1.3.0.tar.gz &&
-      tar -xzvf cereal-v1.3.0.tar.gz
+    DOWNLOAD_COMMAND curl -k -L https://github.com/USCiLab/cereal/archive/refs/tags/v1.3.2.tar.gz -o cereal-v1.3.2.tar.gz &&
+      ${SHASUM} 16a7ad9b31ba5880dac55d62b5d6f243c3ebc8d46a3514149e56b5e7ea81f85f cereal-v1.3.2.tar.gz &&
+      tar -xzvf cereal-v1.3.2.tar.gz
 
-    SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/cereal-1.3.0
+    SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/cereal-1.3.2
     INSTALL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/install
     #UPDATE_COMMAND sh -c "mkdir -p <SOURCE_DIR>/build"
-    BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/cereal-1.3.0/build
+    BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/cereal-1.3.2/build
     CONFIGURE_COMMAND ""
     BUILD_COMMAND ""
     INSTALL_COMMAND sh -c "mkdir -p <INSTALL_DIR>/include && cp -r <SOURCE_DIR>/include/cereal <INSTALL_DIR>/include"


=====================================
cmake/Modules/FindCereal.cmake → cmake/Modules/Findcereal.cmake
=====================================
@@ -11,11 +11,34 @@ find_path(CEREAL_INCLUDE_DIR cereal
 
 set(CEREAL_INCLUDE_DIRS ${CEREAL_INCLUDE_DIR})
 
+if(CEREAL_INCLUDE_DIR)
+  set(CEREAL_FOUND YES)
+  set(CEREAL_VERSION_MAJOR 0)
+  set(CEREAL_VERSION_MINOR 0)
+  set(CEREAL_VERSION_PATCH 0)
+  if(EXISTS "${CEREAL_INCLUDE_DIR}/cereal/version.hpp")
+    # Read and parse cereal version header file for version number
+    file(READ "${CEREAL_INCLUDE_DIR}/cereal/version.hpp"
+        _CEREAL_HEADER_CONTENTS)
+    string(REGEX REPLACE ".*#define CEREAL_VERSION_MAJOR ([0-9]+).*" "\\1"
+        CEREAL_VERSION_MAJOR "${_CEREAL_HEADER_CONTENTS}")
+    string(REGEX REPLACE ".*#define CEREAL_VERSION_MINOR ([0-9]+).*" "\\1"
+        CEREAL_VERSION_MINOR "${_CEREAL_HEADER_CONTENTS}")
+    string(REGEX REPLACE ".*#define CEREAL_VERSION_PATCH ([0-9]+).*" "\\1"
+        CEREAL_VERSION_PATCH "${_CEREAL_HEADER_CONTENTS}")
+    set(CEREAL_VERSION_STRING "${CEREAL_VERSION_MAJOR}.${CEREAL_VERSION_MINOR}.${CEREAL_VERSION_PATCH}")
+  else()
+    set(CEREAL_FOUND NO)
+  endif()
+endif()
+
 include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(Cereal DEFAULT_MSG CEREAL_INCLUDE_DIR)
+find_package_handle_standard_args(cereal 
+  REQUIRED_VARS CEREAL_INCLUDE_DIR
+  VERSION_VAR CEREAL_VERSION_STRING)
 
 mark_as_advanced(CEREAL_INCLUDE_DIR)
 
 if(CEREAL_FOUND)
-  message(STATUS "Cereal found (include: ${CEREAL_INCLUDE_DIRS})")
+  message(STATUS "cereal found (include: ${CEREAL_INCLUDE_DIRS})")
 endif(CEREAL_FOUND)


=====================================
current_version.txt
=====================================
@@ -1,3 +1,3 @@
 VERSION_MAJOR 1
 VERSION_MINOR 10
-VERSION_PATCH 0
+VERSION_PATCH 1


=====================================
doc/source/conf.py
=====================================
@@ -57,7 +57,7 @@ copyright = u'2013-2021, Rob Patro, Geet Duggal, Mike Love, Rafael Irizarry and
 # The short X.Y version.
 version = '1.10'
 # The full version, including alpha/beta/rc tags.
-release = '1.10.0'
+release = '1.10.1'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.


=====================================
doc/source/salmon.rst
=====================================
@@ -269,8 +269,8 @@ mode, and a description of each, run ``salmon quant --help-alignment``.
     header sections must be identical).
 
 
-Description of important options
---------------------------------
+Description of some important options
+-------------------------------------
 
 Salmon exposes a number of useful optional command-line parameters to the user.
 The particularly important ones are explained here, but you can always run
@@ -296,6 +296,20 @@ by RSEM), but using the default scoring scheme and allowing both mismatches and
 indels in alignments. These setting essentially disallow indels in the resulting
 alignments.
 
+""""""""""""""""""""""""""""""
+``--meta``
+""""""""""""""""""""""""""""""
+
+As with the flags described above, this is a "meta-flag" that simply enables some options
+that may make more sense when quantifying metagenomic data.  Specifically, the ``--meta``
+flag sets the following options: 
+
+* The abundance optimization is initialized from the uniform distribution (compared to the default of using a weighted combination of the uniform intialization and the abundances learned during the online optimization)
+
+* Rich equivalence classes are disabled. Using rich equivalence classes with metagenomic data should not be particularly problematic, but since they have been developed and tested most in the context of bulk RNA-seq quantification, they are currently disabled under this flag.
+
+* The EM algorithm is used for abundance optimization instead of the default VBEM optimization.  Neither is universally better than the other, but the parameters for the VBEM (e.g. the prior size and type) are set based on typical bulk RNA-seq transcriptome samples, and so may be less appropriate in the metagenomic context. Hence the ``--meta`` flags opts for the basic EM algorithm instead.
+
 """"""""""""""""""""""""""""""
 ``--recoverOrphans``
 """"""""""""""""""""""""""""""


=====================================
docker/Dockerfile
=====================================
@@ -6,7 +6,7 @@ MAINTAINER salmon.maintainer at gmail.com
 
 ENV PACKAGES git gcc make g++ libboost-all-dev liblzma-dev libbz2-dev \
     ca-certificates zlib1g-dev libcurl4-openssl-dev curl unzip autoconf apt-transport-https ca-certificates gnupg software-properties-common wget
-ENV SALMON_VERSION 1.10.0
+ENV SALMON_VERSION 1.10.1
 
 # salmon binary will be installed in /home/salmon/bin/salmon
 


=====================================
docker/build_test.sh
=====================================
@@ -1,3 +1,3 @@
 #! /bin/bash
-SALMON_VERSION=1.10.0
-docker build --no-cache -t combinelab/salmon:${SALMON_VERSION} -t combinelab/salmon:latest .
+SALMON_VERSION=1.10.1
+TMPDIR=/mnt/scratch2/DELETE_ME_TEMP docker build --no-cache -t combinelab/salmon:${SALMON_VERSION} -t combinelab/salmon:latest .


=====================================
include/SalmonConfig.hpp
=====================================
@@ -27,8 +27,8 @@
 namespace salmon {
 constexpr char majorVersion[] = "1";
 constexpr char minorVersion[] = "10";
-constexpr char patchVersion[] = "0";
-constexpr char version[] = "1.10.0";
+constexpr char patchVersion[] = "1";
+constexpr char version[] = "1.10.1";
 constexpr uint32_t indexVersion = 5;
 constexpr char requiredQuasiIndexVersion[] = "p7";
 } // namespace salmon


=====================================
scripts/fetchPufferfish.sh
=====================================
@@ -23,11 +23,11 @@ if [ -d ${INSTALL_DIR}/src/pufferfish ] ; then
     rm -fr ${INSTALL_DIR}/src/pufferfish
 fi
 
-SVER=salmon-v1.10.0
+SVER=salmon-v1.10.1
 #SVER=develop
 #SVER=sketch-mode
 
-EXPECTED_SHA256=c961b9c252856b53c6538d22103b711c924ea1e649516de81efb85870aa8b143
+EXPECTED_SHA256=cf2a007f3817c1087abd4170db70e6b3c04aa24babecf92a2d9d2eb7784b6021
 
 mkdir -p ${EXTERNAL_DIR}
 curl -k -L https://github.com/COMBINE-lab/pufferfish/archive/${SVER}.zip -o ${EXTERNAL_DIR}/pufferfish.zip



View it on GitLab: https://salsa.debian.org/med-team/salmon/-/commit/475c60bdeffc0f55ec21756e37734c0a91a2be87

-- 
View it on GitLab: https://salsa.debian.org/med-team/salmon/-/commit/475c60bdeffc0f55ec21756e37734c0a91a2be87
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20230312/7714864f/attachment-0001.htm>


More information about the debian-med-commit mailing list