Skip to content

Instantly share code, notes, and snippets.

@t-oginogin
Created April 20, 2014 12:14
Show Gist options
  • Select an option

  • Save t-oginogin/11112728 to your computer and use it in GitHub Desktop.

Select an option

Save t-oginogin/11112728 to your computer and use it in GitHub Desktop.
ゲノム解析用ソフトVICUNAをコンパイルする ref: http://qiita.com/t_oginogin/items/79f6af5bee9ba86b622c
OS:Ubuntu 12.04 LTS 64bit
VirtualBox-4.3.10
vagrant_1.5.3
MYPATH=/usr/local/opt/ncbi_cxx/
COMPILER=/usr/bin/g++
$ make
$ cd ..
~/research/VICUNA_v1.3/bin/vicuna-omp-v1.0
$ vi config/vicuna_config.txt
pFqDir /path_to_your_fastq_files_dir/
//npFqDir /path_to_your_fastq_files_dir/
//pFaDir /path_to_your_fasta_files_dir/
//npFaDir /path_to_your_fasta_files_dir/
outputDIR /path_to_your_output_dir/
$ cd ~/research/VICUNA_v1.3/
$ OMP_NUM_THREADS=2 ./bin/vicuna-omp-v1.0 config/vicuna_config.txt
$ cd scripts/vicuna_analysis/
$ make clean
$ make all
$ cd ../../
~/research/VICUNA_v1.3/bin/vicuna_analysis
$ vi config/vanalysis_contig.txt
pFqDir /path_to_your_fastq_files_dir/
//npFqDir /path_to_your_fastq_files_dir/
//pFaDir /path_to_your_fasta_files_dir/
//npFaDir /path_to_your_fasta_files_dir/
trim_log_file /path_to_your_trim_log_file
aln_file /path_to_your_aln_file
outputDIR /path_to_your_analysis_output_dir/
trim_log_fileとaln_fileはvicunaの出力結果のパスです。
$ sudo apt-get install python-software-properties
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update; sudo apt-get install gcc-4.7 g++-4.7
$ sudo update-alternatives --remove-all gcc
$ sudo update-alternatives --remove-all g++
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 20
$ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 20
$ sudo update-alternatives --config gcc
$ sudo update-alternatives --config g++
$ sudo apt-get install make
$ ./bin/vicunAnalysis config/vanalysis config.txt
/Users/xxx/research/ncbi_tools++/12_0_0/ncbi_cxx--12_0_0/include/corelib/impl/ncbi_atomic_defs.h:96:12: fatal error: 'bits/c++config.h' file not found
$ sudo brew tap homebrew/versions
$ sudo brew install gcc47
$ export CC=/usr/local/bin/gcc-4.7
$ export CXX=/usr/local/bin/g++-4.7
$ export LD_LIBRARY_PATH=/usr/local/opt/gcc47/lib/gcc/x86_64-apple-darwin13.1.0/4.7.3/
$ make
ld: symbol(s) not found for architecture x86_64
$ export CFLAGS="-lstdc++"
$ export CXXFLAGS="-lstdc++"
/home/vagrant/research/ncbi_tools++/12_0_0/ncbi_cxx--12_0_0/GCC480-DebugOptMTDLL64/lib/libxobjread.so: undefined reference to `ncbi::objects::CPub_Base::DoSelect(ncbi::objects::CPub_Base::E_Choice, ncbi::CObjectMemoryPool*)'
./configure --prefix=/usr/local/opt/ncbi_cxx --with-optimization --with-mt --with-dll
./configure --prefix=/usr/local/opt/ncbi_cxx --with-optimization --with-mt
./configure --prefix=/usr/local/opt/ncbi_cxx
$ wget ftp://ftp.ddbj.nig.ac.jp/ddbj_database/dra/fastq/SRA054/SRA054092/SRX154465/SRR513075.fastq.bz2
$ wget ftp://ftp.ddbj.nig.ac.jp/ddbj_database/dra/fastq/SRA054/SRA054092/SRX154465/SRR513075_1.fastq.bz2
$ wget ftp://ftp.ddbj.nig.ac.jp/ddbj_database/dra/fastq/SRA054/SRA054092/SRX154465/SRR513075_2.fastq.bz2
$ bzip2 -d SRR513075.fastq.bz2
$ bzip2 -d SRR513075_1.fastq.bz2
$ bzip2 -d SRR513075_2.fastq.bz2
~/research/VICUNA_v1.3
~/research/VICUNA_v1.3/doc/vicuna.pdf
3 Quik Start - for external users
$ cd ~/research/ncbi_tools++/12_0_0/
$ tar xvzf ncbi_cxx--12_0_0.tar.gz
$ cd ncbi_cxx--12_0_0
$ ./configure --prefix=/usr/local/opt/ncbi_cxx --with-optimization --with-mt
$ make
$ sudo make install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/opt/ncbi_cxx/lib
$ cd ~/research/VICUNA_v1.3/src
$ vi Makefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment