Skip to content

Commit c380f53

Browse files
authored
Merge pull request #836 from COMBINE-lab/develop
Develop
2 parents 35558d5 + 74fe0ed commit c380f53

File tree

10 files changed

+78
-42
lines changed

10 files changed

+78
-42
lines changed

CMakeLists.txt

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
224224
endif()
225225

226226
set(WARNING_IGNORE_FLAGS "${WARNING_IGNORE_FLAGS} -Wno-unused-local-typedefs")
227-
set(BOOST_TOOLSET "${CC}")
227+
set(BOOST_TOOLSET "gcc")
228228
set(BOOST_CONFIGURE_TOOLSET "--with-toolset=gcc")
229229
set(BCXX_FLAGS "${CXXSTDFLAG} ${SCHAR_FLAG}")
230-
set(BOOST_EXTRA_FLAGS toolset=${CC} cxxflags=${BCXX_FLAGS})
230+
set(BOOST_EXTRA_FLAGS toolset=gcc cxxflags=${BCXX_FLAGS})
231231
# Tentatively, we support clang now
232232
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
233233
set(CLANG TRUE)
@@ -580,22 +580,21 @@ set(EXTERNAL_LIBRARY_PATH $CMAKE_CURRENT_SOURCE_DIR/lib)
580580
# set(SUFFARRAY_INCLUDE_DIRS ${SUFFARRAY_INCLUDE_DIR})
581581
#endif()
582582

583-
584-
find_package(Cereal)
583+
find_package(cereal "1.3.2")
585584
if (NOT CEREAL_FOUND)
586-
message("Build system will fetch and build the Cereal serialization library")
585+
message("Build system will fetch and build the cereal serialization library")
587586
message("==================================================================")
588587
include(ExternalProject)
589588
externalproject_add(libcereal
590589
DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external
591-
DOWNLOAD_COMMAND curl -k -L https://github.com/USCiLab/cereal/archive/v1.3.0.tar.gz -o cereal-v1.3.0.tar.gz &&
592-
${SHASUM} 329ea3e3130b026c03a4acc50e168e7daff4e6e661bc6a7dfec0d77b570851d5 cereal-v1.3.0.tar.gz &&
593-
tar -xzvf cereal-v1.3.0.tar.gz
590+
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 &&
591+
${SHASUM} 16a7ad9b31ba5880dac55d62b5d6f243c3ebc8d46a3514149e56b5e7ea81f85f cereal-v1.3.2.tar.gz &&
592+
tar -xzvf cereal-v1.3.2.tar.gz
594593

595-
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/cereal-1.3.0
594+
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/cereal-1.3.2
596595
INSTALL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/install
597596
#UPDATE_COMMAND sh -c "mkdir -p <SOURCE_DIR>/build"
598-
BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/cereal-1.3.0/build
597+
BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/cereal-1.3.2/build
599598
CONFIGURE_COMMAND ""
600599
BUILD_COMMAND ""
601600
INSTALL_COMMAND sh -c "mkdir -p <INSTALL_DIR>/include && cp -r <SOURCE_DIR>/include/cereal <INSTALL_DIR>/include"

cmake/Modules/FindCereal.cmake

Lines changed: 0 additions & 21 deletions
This file was deleted.

cmake/Modules/Findcereal.cmake

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
###############################################################################
2+
# Find Cereal
3+
#
4+
# This sets the following variables:
5+
# CEREAL_FOUND - True if Cereal was found.
6+
# CEREAL_INCLUDE_DIRS - Directories containing the Cereal include files.
7+
# CEREAL_DEFINITIONS - Compiler flags for Cereal.
8+
9+
find_path(CEREAL_INCLUDE_DIR cereal
10+
HINTS "${CEREAL_ROOT}/include" "$ENV{CEREAL_ROOT}/include" "/usr/include" "$ENV{PROGRAMFILES}/cereal/include")
11+
12+
set(CEREAL_INCLUDE_DIRS ${CEREAL_INCLUDE_DIR})
13+
14+
if(CEREAL_INCLUDE_DIR)
15+
set(CEREAL_FOUND YES)
16+
set(CEREAL_VERSION_MAJOR 0)
17+
set(CEREAL_VERSION_MINOR 0)
18+
set(CEREAL_VERSION_PATCH 0)
19+
if(EXISTS "${CEREAL_INCLUDE_DIR}/cereal/version.hpp")
20+
# Read and parse cereal version header file for version number
21+
file(READ "${CEREAL_INCLUDE_DIR}/cereal/version.hpp"
22+
_CEREAL_HEADER_CONTENTS)
23+
string(REGEX REPLACE ".*#define CEREAL_VERSION_MAJOR ([0-9]+).*" "\\1"
24+
CEREAL_VERSION_MAJOR "${_CEREAL_HEADER_CONTENTS}")
25+
string(REGEX REPLACE ".*#define CEREAL_VERSION_MINOR ([0-9]+).*" "\\1"
26+
CEREAL_VERSION_MINOR "${_CEREAL_HEADER_CONTENTS}")
27+
string(REGEX REPLACE ".*#define CEREAL_VERSION_PATCH ([0-9]+).*" "\\1"
28+
CEREAL_VERSION_PATCH "${_CEREAL_HEADER_CONTENTS}")
29+
set(CEREAL_VERSION_STRING "${CEREAL_VERSION_MAJOR}.${CEREAL_VERSION_MINOR}.${CEREAL_VERSION_PATCH}")
30+
else()
31+
set(CEREAL_FOUND NO)
32+
endif()
33+
endif()
34+
35+
include(FindPackageHandleStandardArgs)
36+
find_package_handle_standard_args(cereal
37+
REQUIRED_VARS CEREAL_INCLUDE_DIR
38+
VERSION_VAR CEREAL_VERSION_STRING)
39+
40+
mark_as_advanced(CEREAL_INCLUDE_DIR)
41+
42+
if(CEREAL_FOUND)
43+
message(STATUS "cereal found (include: ${CEREAL_INCLUDE_DIRS})")
44+
endif(CEREAL_FOUND)

current_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
VERSION_MAJOR 1
22
VERSION_MINOR 10
3-
VERSION_PATCH 0
3+
VERSION_PATCH 1

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
# The short X.Y version.
5858
version = '1.10'
5959
# The full version, including alpha/beta/rc tags.
60-
release = '1.10.0'
60+
release = '1.10.1'
6161

6262
# The language for content autogenerated by Sphinx. Refer to documentation
6363
# for a list of supported languages.

doc/source/salmon.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ mode, and a description of each, run ``salmon quant --help-alignment``.
269269
header sections must be identical).
270270

271271

272-
Description of important options
273-
--------------------------------
272+
Description of some important options
273+
-------------------------------------
274274

275275
Salmon exposes a number of useful optional command-line parameters to the user.
276276
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
296296
indels in alignments. These setting essentially disallow indels in the resulting
297297
alignments.
298298

299+
""""""""""""""""""""""""""""""
300+
``--meta``
301+
""""""""""""""""""""""""""""""
302+
303+
As with the flags described above, this is a "meta-flag" that simply enables some options
304+
that may make more sense when quantifying metagenomic data. Specifically, the ``--meta``
305+
flag sets the following options:
306+
307+
* 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)
308+
309+
* 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.
310+
311+
* 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.
312+
299313
""""""""""""""""""""""""""""""
300314
``--recoverOrphans``
301315
""""""""""""""""""""""""""""""

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MAINTAINER [email protected]
66

77
ENV PACKAGES git gcc make g++ libboost-all-dev liblzma-dev libbz2-dev \
88
ca-certificates zlib1g-dev libcurl4-openssl-dev curl unzip autoconf apt-transport-https ca-certificates gnupg software-properties-common wget
9-
ENV SALMON_VERSION 1.10.0
9+
ENV SALMON_VERSION 1.10.1
1010

1111
# salmon binary will be installed in /home/salmon/bin/salmon
1212

docker/build_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#! /bin/bash
2-
SALMON_VERSION=1.10.0
3-
docker build --no-cache -t combinelab/salmon:${SALMON_VERSION} -t combinelab/salmon:latest .
2+
SALMON_VERSION=1.10.1
3+
TMPDIR=/mnt/scratch2/DELETE_ME_TEMP docker build --no-cache -t combinelab/salmon:${SALMON_VERSION} -t combinelab/salmon:latest .

include/SalmonConfig.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
namespace salmon {
2828
constexpr char majorVersion[] = "1";
2929
constexpr char minorVersion[] = "10";
30-
constexpr char patchVersion[] = "0";
31-
constexpr char version[] = "1.10.0";
30+
constexpr char patchVersion[] = "1";
31+
constexpr char version[] = "1.10.1";
3232
constexpr uint32_t indexVersion = 5;
3333
constexpr char requiredQuasiIndexVersion[] = "p7";
3434
} // namespace salmon

scripts/fetchPufferfish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ if [ -d ${INSTALL_DIR}/src/pufferfish ] ; then
2323
rm -fr ${INSTALL_DIR}/src/pufferfish
2424
fi
2525

26-
SVER=salmon-v1.10.0
26+
SVER=salmon-v1.10.1
2727
#SVER=develop
2828
#SVER=sketch-mode
2929

30-
EXPECTED_SHA256=c961b9c252856b53c6538d22103b711c924ea1e649516de81efb85870aa8b143
30+
EXPECTED_SHA256=cf2a007f3817c1087abd4170db70e6b3c04aa24babecf92a2d9d2eb7784b6021
3131

3232
mkdir -p ${EXTERNAL_DIR}
3333
curl -k -L https://github.com/COMBINE-lab/pufferfish/archive/${SVER}.zip -o ${EXTERNAL_DIR}/pufferfish.zip

0 commit comments

Comments
 (0)