Dear Biostars, This is my first post on an online forum. I am seeking help with the installation and running of the Trinity software suite for the assembly of transcriptomes. I have spent two days trying different things to fix different errors but this is one sequence of commands I have tried to install and run the software. I am using a Mac OS X El Capitan version 10.11.5. I have highlighted the important lines in the sequences of commands, websites visited and outputs below. Thank you for your help.
brew install homebrew/science/trinity
==> Installing trinity from homebrew/science
==> Downloading https://homebrew.bintray.com/bottles-science/trinity-2.2.0_1.el_
Already downloaded: /Users/cr7/Library/Caches/Homebrew/trinity-2.2.0_1.el_capitan.bottle.tar.gz
==> Pouring trinity-2.2.0_1.el_capitan.bottle.tar.gz
**Warning: homebrew/science/trinity dependency bamtools was built with a different C++ standard
library (libc++ from clang). This may cause problems at runtime.**
==> Caveats
Trinity only officially supports Java 1.7. To skip this check pass the
option --bypass_java_version_check to Trinity. A specific Java version may
also be set via environment variable:
JAVA_HOME=`/usr/libexec/java_home -v 1.7`
==> Summary
🍺 /Users/cr7/homebrew/Cellar/trinity/2.2.0_1: 1,222 files, 226.3M
http://stackoverflow.com/questions/18033255/install-libc-on-mac-10-6-8
https://github.com/Homebrew/homebrew-versions/blob/master/llvm33.rb
brew search llvm33
brew install homebrew/versions/llvm33
==> Installing llvm33 from homebrew/versions
==> Downloading http://llvm.org/releases/3.3/llvm-3.3.src.tar.gz
######################################################################## 100.0%
==> Patching
patching file Makefile.rules
patching file tools/llvm-shlib/Makefile
patching file tools/lto/Makefile
==> Downloading http://llvm.org/releases/3.3/cfe-3.3.src.tar.gz
######################################################################## 100.0%
==> Downloading http://llvm.org/releases/3.3/libcxx-3.3.src.tar.gz
######################################################################## 100.0%
==> Downloading http://llvm.org/releases/3.3/polly-3.3.src.tar.gz
######################################################################## 100.0%
==> Downloading http://llvm.org/releases/3.3/clang-tools-extra-3.3.src.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/Users/cr7/homebrew/Cellar/llvm33/3.3_1/lib/llvm-3.3 --enable-optimized --disable-b
==> make VERBOSE=1
==> make VERBOSE=1 install
==> make -C /private/tmp/llvm33-20160805-87927-1sdv239/llvm-3.3.src/projects/libcxx install CC=/Users/cr7/ho
==> Caveats
Extra tools are installed in /Users/cr7/homebrew/opt/llvm33/share/clang-3.3
To link to libc++, something like the following is required:
CXX="clang++-3.3 -stdlib=libc++"
CXXFLAGS="$CXXFLAGS -nostdinc++ -I/Users/cr7/homebrew/opt/llvm33/lib/llvm-3.3/lib/c++/v1"
LDFLAGS="$LDFLAGS -L/Users/cr7/homebrew/opt/llvm33/lib/llvm-3.3/lib"
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
mkdir -p /Users/cr7/.local/lib/python2.7/site-packages
echo 'import site; site.addsitedir("/Users/cr7/homebrew/lib/python2.7/site-packages")' >> /Users/cr7/.local/lib/python2.7/site-packages/homebrew.pth
==> Summary
🍺 /Users/cr7/homebrew/Cellar/llvm33/3.3_1: 1,299 files, 140.8M, built in 8 minutes 45 seconds
brew reinstall homebrew/science/trinity
==> Reinstalling homebrew/science/trinity
==> Downloading https://homebrew.bintray.com/bottles-science/trinity-2.2.0_1.el_capitan.bottle.tar.gz
Already downloaded: /Users/cr7/Library/Caches/Homebrew/trinity-2.2.0_1.el_capitan.bottle.tar.gz
==> Pouring trinity-2.2.0_1.el_capitan.bottle.tar.gz
Warning: homebrew/science/trinity dependency bamtools was built with a different C++ standard
library (libc++ from clang). This may cause problems at runtime.
==> Caveats
Trinity only officially supports Java 1.7. To skip this check pass the
option --bypass_java_version_check to Trinity. A specific Java version may
also be set via environment variable:
JAVA_HOME=`/usr/libexec/java_home -v 1.7`
==> Summary
🍺 /Users/cr7/homebrew/Cellar/trinity/2.2.0_1: 1,222 files, 226.3M
In the trinity installation folder
make -stdlib=libc++
Too much output to copy here
make
make: `all' is up to date.
cd sample_data/test_Trinity_Assembly
Running the sample data that comes with Trinity
**./runMe.sh**
#!/bin/bash -ve
if [ -e reads.right.fq.gz ] && [ ! -e reads.right.fq ]; then
gunzip -c reads.right.fq.gz > reads.right.fq
fi
if [ -e reads.left.fq.gz ] && [ ! -e reads.left.fq ]; then
gunzip -c reads.left.fq.gz > reads.left.fq
fi
if [ -e reads2.right.fq.gz ] && [ ! -e reads2.right.fq ]; then
gunzip -c reads2.right.fq.gz > reads2.right.fq
fi
if [ -e reads2.left.fq.gz ] && [ ! -e reads2.left.fq ]; then
gunzip -c reads2.left.fq.gz > reads2.left.fq
fi
Run Trinity to Generate Transcriptome Assemblies
../../Trinity --seqType fq --max_memory 2G --left reads.left.fq.gz,reads2.left.fq.gz --right reads.right.fq.gz,reads2.right.fq.gz --SS_lib_type RF --CPU 4 --no_cleanup --normalize_reads
Trinity version: v2.2.0
-currently using the latest production release of Trinity.
Friday, August 5, 2016: 01:00:00 CMD: java -Xmx64m -XX:ParallelGCThreads=2 -jar /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/util/support_scripts/ExitTester.jar 0
Friday, August 5, 2016: 01:00:00 CMD: java -Xmx64m -XX:ParallelGCThreads=2 -jar /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/util/support_scripts/ExitTester.jar 1
Friday, August 5, 2016: 01:00:00 CMD: mkdir -p /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/trinity_out_dir
Friday, August 5, 2016: 01:00:00 CMD: mkdir -p /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/trinity_out_dir/chrysalis
Trinity Phase 1: Clustering of RNA-Seq Reads
---------------------------------------------------------------
------------ In silico Read Normalization ---------------------
-- (Removing Excess Reads Beyond 50 Coverage --
-- /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/trinity_out_dir/insilico_read_normalization --
---------------------------------------------------------------
Friday, August 5, 2016: 01:00:00
CMD: /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/util/insilico_read_normalization.pl --seqType fq --JM 2G --max_cov 50 --CPU 4 --output /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/trinity_out_dir/insilico_read_normalization --SS_lib_type RF --no_cleanup --left /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/reads.left.fq.gz,/Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/reads2.left.fq.gz --right /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/reads.right.fq.gz,/Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/reads2.right.fq.gz --pairs_together --PARALLEL_STATS
Converting input files. (both directions in parallel)CMD: /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/util/..//trinity-plugins/fastool/fastool --rev --illumina-trinity --to-fasta <(gunzip -c /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/reads.left.fq.gz) >> left.fa
CMD: /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/util/..//trinity-plugins/fastool/fastool --illumina-trinity --to-fasta <(gunzip -c /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/reads.right.fq.gz) >> right.fa
Sequences parsed: 30575
CMD finished (0 seconds)
CMD: /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/util/..//trinity-plugins/fastool/fastool --rev --illumina-trinity --to-fasta <(gunzip -c /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/reads2.left.fq.gz) >> left.fa
Sequences parsed: 30575
CMD finished (0 seconds)
Sequences parsed: 30575
CMD finished (0 seconds)
CMD: /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/util/..//trinity-plugins/fastool/fastool --illumina-trinity --to-fasta <(gunzip -c /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/reads2.right.fq.gz) >> right.fa
Sequences parsed: 30575
CMD finished (0 seconds)
CMD: touch left.fa.ok
CMD finished (0 seconds)
CMD: touch right.fa.ok
CMD finished (0 seconds)
Done converting input files.CMD: cat left.fa right.fa > both.fa
CMD finished (0 seconds)
CMD: touch both.fa.ok
CMD finished (0 seconds)
-------------------------------------------
----------- Jellyfish --------------------
-- (building a k-mer catalog from reads) --
-------------------------------------------
CMD: /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/util/..//trinity-plugins/jellyfish/bin/jellyfish count -t 4 -m 25 -s 304805520 both.fa
bash: /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/util/..//trinity-plugins/jellyfish/bin/jellyfish: No such file or directory
**Error, cmd: /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/util/..//trinity-plugins/jellyfish/bin/jellyfish count -t 4 -m 25 -s 304805520 both.fa died with ret 32512 at /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/util/insilico_read_normalization.pl line 736.
Error, cmd: /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/util/insilico_read_normalization.pl --seqType fq --JM 2G** --max_cov 50 --CPU 4 --output /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/trinity_out_dir/insilico_read_normalization --SS_lib_type RF --no_cleanup --left /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/reads.left.fq.gz,/Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/reads2.left.fq.gz --right /Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/reads.right.fq.gz,/Users/cr7/homebrew/Cellar/trinity/2.2.0_1/sample_data/test_Trinity_Assembly/reads2.right.fq.gz --pairs_together --PARALLEL_STATS died with ret 512 at ../../Trinity line 2206.
Welcome to biostars and congratulations on the comprehensive explanation. As suggested by Biogeek, the problem seems to be that trinity can't find jellyfish. Could you check if and where it is installed?
Alternatively, using git:
git clone https://github.com/trinityrnaseq/trinityrnaseq.git
make
Might also do the trick :)