GATB / dsk

k-mer counting software

Home Page:https://gatb.inria.fr/software/dsk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to accomodate large k-mers

b2jia opened this issue · comments

To support finding long k-mers, I tried re-installing in the build folder following instructions:

rm -Rf CMake* && cmake -DKSIZE_LIST="32 64 92" .. && make

where I chose multiples of 32, complying with instructions. However, it throws the following error. Can't seem to find any resource specific to DSK online to help with this problem. Compiling from source did not throw any errors, just when I tried to extend the search to include longer k-mers! Would the authors be able to help identify the key problem here? I realize perhaps people don't search for long k-mers very often.

/home/b2jia/Downloads/Software/dsk/thirdparty/gatb-core/gatb-core/thirdparty/boost/variant/get.hpp:233:107: error: static assertion failed: boost::variant does not contain specified type U, call to boost::get<U>(const boost::variant<T...>*) will always return NULL
  233 |         (boost::detail::variant::holds_element<boost::variant< BOOST_VARIANT_ENUM_PARAMS(T) >, const U >::value),
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/home/b2jia/Downloads/Software/dsk/thirdparty/gatb-core/gatb-core/thirdparty/boost/static_assert.hpp:31:59: note: in definition of macro ‘BOOST_STATIC_ASSERT_MSG’
   31 | #     define BOOST_STATIC_ASSERT_MSG( ... ) static_assert(__VA_ARGS__)
      |                                                           ^~~~~~~~~~~
make[2]: *** [ext/gatb-core/src/CMakeFiles/gatbcore-static.dir/build.make:2013: ext/gatb-core/src/CMakeFiles/gatbcore-static.dir/gatb/template/TemplateSpecialization5.cpp.in_10000.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:336: ext/gatb-core/src/CMakeFiles/gatbcore-static.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

Hi,

92 is not a multiple of 32, try with 96 instead.
Note that by default DSK is compiled to handle kmer-sizes up to 127. (default -DKSIZE_LIST="32 64 96 128")

Claire