kallisto bootstrap / condo installation problem
0
0
Entering edit mode
12 months ago
micecanfly ▴ 10

I have used kallisto in the past, but am now struggling to get it to work on a new computer (MacBook M1).

  1. When I download kallisto using brew, and try to run kallisto quant, I get an error not generating bootstraps 'Warning: kallisto was not compiled with HDF5 support so no bootstrapping will be performed. Run quant with --plaintext option or recompile with HDF5 support to obtain bootstrap estimates.'

% for file in *fastq.gz; do kallisto quant -i kallisto_index_musmus.idx -o "$file.kallisto" -b 100 --single --rf-stranded -l 260 -s 20 "$file"; done

[quant] fragment length distribution is truncated gaussian with mean = 260, sd = 20 Warning: kallisto was not compiled with HDF5 support so no bootstrapping will be performed. Run quant with --plaintext option or recompile with HDF5 support to obtain bootstrap estimates. [index] k-mer length: 31 [index] number of targets: 118,489 [index] number of k-mers: 100,614,952

  1. I have read that this might be an issue installing kallisto from brew. I installed conda and tried to install kallisto using condo, but get the following

      ~ % conda install kallisto
        Collecting package metadata (current_repodata.json): done
        Solving environment: failed with initial frozen solve. Retrying with flexible solve.
        Collecting package metadata (repodata.json): done
        Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    

PackagesNotFoundError: The following packages are not available from current channels:

  • kallisto

Could you please help me to resolve this?

hfd5 kallisto condo • 2.1k views
ADD COMMENT
0
Entering edit mode

Make sure you have the appropriate channels specified.

conda install -c conda-forge -c bioconda kallisto
ADD REPLY
0
Entering edit mode

Thank you! I have tried that, still the same error. Any idea what else I could try?

PackagesNotFoundError: The following packages are not available from current channels:

  - kallisto
ADD REPLY
0
Entering edit mode

Looks like there might not be a kallisto for M1 macs on anaconda. If you search specifically for kallisto for ARM64 nothing comes up.

conda search -c conda-forge -c bioconda 'kallisto[subdir=osx-arm64]'

However, if you search for the old AMD64, kallisto does show up.

conda search -c conda-forge -c bioconda 'kallisto[subdir=osx-64]'

If you go to the kallisto github they do have binaries available (listed as Rock64). It might be worth trying those.

Someone with more knowledge of running/installing kallisto on ARM64 might be able to give more specific advice.

ADD REPLY
0
Entering edit mode

Thank you!! I am not sure if doing binaries vs building from the source is the same thing? Sorry this might be a very silly question. When trying to build, the following ran OK:

git clone https://github.com/pachterlab/kallisto.git
cd kallisto/
mkdir build
cd build
cmake .. -DUSE_HDF5=ON

But then I got the following error after running 'make':

make

[  3%] Creating directories for 'htslib'

[  6%] No download step for 'htslib'

[ 10%] No update step for 'htslib'

[ 13%] No patch step for 'htslib'

[ 17%] Performing configure step for 'htslib'

configure: error: cannot find required auxiliary files: config.guess config.sub

make[2]: *** [/Users/***/kallisto/ext/htslib/src/htslib-stamp/htslib-configure] Error 1

make[1]: *** [CMakeFiles/htslib.dir/all] Error 2

make: *** [all] Error 2

In the latter attempt I am not really sure what exactly I am doing, so probably would need to learn that first unless there is something what is obviously wrong to you?..

ADD REPLY
1
Entering edit mode

Here is why it's failing to build from source and here's a simple solution to fix it (after this, it will work):

https://github.com/pachterlab/kallisto/issues/303#issuecomment-884612169

ADD REPLY
0
Entering edit mode

thank you so much! I ran the indicated code, but am getting the following error. I also tried to manually delete previously generated kallisto folders (did not find an uninstall option). Could there be files associated with autoconf that I should delete? Or should I try to install autoconf2.69, as also suggested in the reply?

(base) user-MacBook-Pro ~ % git clone https://github.com/pachterlab/kallisto.git
cd kallisto/ext/htslib
sed '/AC_PROG_CC/a \
AC_CANONICAL_HOST \
AC_PROG_INSTALL \
' configure.ac > configure.ac2
mv configure.ac2 configure.ac
autoreconf -i
autoheader
autoconf
cd ../../
mkdir build
cd build
cmake ..
make
make install
Cloning into 'kallisto'...
remote: Enumerating objects: 4140, done.
remote: Counting objects: 100% (154/154), done.
remote: Compressing objects: 100% (78/78), done.
remote: Total 4140 (delta 82), reused 119 (delta 68), pack-reused 3986
Receiving objects: 100% (4140/4140), 4.24 MiB | 24.27 MiB/s, done.
Resolving deltas: 100% (2697/2697), done.
Can't exec "aclocal": No such file or directory at /opt/homebrew/Cellar/autoconf/2.71/share/autoconf/Autom4te/FileUtils.pm line 274.
autoreconf: error: aclocal failed with exit status: 2
-- The C compiler identification is AppleClang 12.0.5.12050022
-- The CXX compiler identification is AppleClang 12.0.5.12050022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
shared build
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/lib/libz.tbd (found version "1.2.11")  
-- Configuring done (0.5s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/user/kallisto/build
[  3%] Creating directories for 'htslib'
[  6%] No download step for 'htslib'
[ 10%] No update step for 'htslib'
[ 13%] No patch step for 'htslib'
[ 17%] Performing configure step for 'htslib'
configure: error: cannot find required auxiliary files: install-sh config.guess config.sub
make[2]: *** [/Users/user/kallisto/ext/htslib/src/htslib-stamp/htslib-configure] Error 1
make[1]: *** [CMakeFiles/htslib.dir/all] Error 2
make: *** [all] Error 2
[  3%] Performing configure step for 'htslib'
configure: error: cannot find required auxiliary files: install-sh config.guess config.sub
make[2]: *** [/Users/user/kallisto/ext/htslib/src/htslib-stamp/htslib-configure] Error 1
make[1]: *** [CMakeFiles/htslib.dir/all] Error 2
make: *** [all] Error 2
(base) user-MacBook-Pro build % 
ADD REPLY
0
Entering edit mode

It seems like you're missing aclocal. You need to make sure you have all the automake tools installed and that they're in your path. Try brew install automake

ADD REPLY
0
Entering edit mode

Binaries are them building it for you, whereas what you're doing is building it yourself form source. I would start off trying the binaries first.

  1. Next to the latest kallisto release (0.46.1) download the Rock64 binary.
  2. Untar it tar -xf kallisto_rock64-v0.46.1.tar.gz
  3. Make it executable chmod +x kallisto/kallisto
  4. Move it to some place that is accessible by your path, such as mv kallisto/kallisto /usr/local/bin
ADD REPLY
0
Entering edit mode

Thank you so much for still bearing with me!! After untar, still an error...

chmod: kallisto/kallisto: Not a directory

Or

chmod: kallisto/kallisto: No such file or directory
ADD REPLY

Login before adding your answer.

Traffic: 3280 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6