溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

vt軟件如何安裝

發(fā)布時間:2022-02-24 11:46:51 來源:億速云 閱讀:485 作者:小新 欄目:開發(fā)技術(shù)

這篇文章主要介紹了vt軟件如何安裝,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

vt安裝

軟件安裝文檔很簡單:https://genome.sph.umich.edu/wiki/Vt#Installation

 #this will create a directory named vt in the directory you cloned the repository
 1. git clone https://github.com/atks/vt.git  

 #change directory to vt
 2. cd vt 

 #run make, note that compilers need to support the c++0x standard 
 3. make 

 #you can test the build
 4. make test

報錯1:

gcc -g -Wall -O2 -I.  -c -o cram/cram_index.o cram/cram_index.c
gcc -g -Wall -O2 -I.  -c -o cram/cram_io.o cram/cram_io.c
cram/cram_io.c:61:18: error: lzma.h: No such file or directory
cram/cram_io.c: In function ‘lzma_mem_deflate’:
cram/cram_io.c:678: warning: implicit declaration of function ‘lzma_stream_buffer_bound’
cram/cram_io.c:684: error: ‘LZMA_OK’ undeclared (first use in this function)
cram/cram_io.c:684: error: (Each undeclared identifier is reported only once
cram/cram_io.c:684: error: for each function it appears in.)
cram/cram_io.c:684: warning: implicit declaration of function ‘lzma_easy_buffer_encode’
cram/cram_io.c:684: error: ‘LZMA_CHECK_CRC32’ undeclared (first use in this function)
cram/cram_io.c: In function ‘lzma_mem_inflate’:
cram/cram_io.c:694: error: ‘lzma_stream’ undeclared (first use in this function)
cram/cram_io.c:694: error: expected ‘;’ before ‘strm’
cram/cram_io.c:700: error: ‘LZMA_OK’ undeclared (first use in this function)
cram/cram_io.c:700: warning: implicit declaration of function ‘lzma_stream_decoder’
cram/cram_io.c:700: error: ‘strm’ undeclared (first use in this function)
cram/cram_io.c:700: warning: implicit declaration of function ‘lzma_easy_decoder_memusage’
cram/cram_io.c:715: warning: implicit declaration of function ‘lzma_code’
cram/cram_io.c:715: error: ‘LZMA_RUN’ undeclared (first use in this function)
cram/cram_io.c:716: error: ‘LZMA_STREAM_END’ undeclared (first use in this function)
cram/cram_io.c:728: error: ‘LZMA_FINISH’ undeclared (first use in this function)
cram/cram_io.c:737: warning: implicit declaration of function ‘lzma_end’
make[1]: *** [cram/cram_io.o] Error 1
make[1]: Leaving directory `/share/work/biosoft/vt/vt-0.57721/lib/htslib'
make: *** [lib/htslib/libhts.a] Error 1

這是因為make htslib時候找不到xz軟件的include導(dǎo)致,找到htslib的Makefile:  vi lib/htslib/Makefile  添加如下內(nèi)容:

-I/share/work/biosoft/xz/xz-v5.2.3/include/

保存之后繼續(xù)make。

報錯2:

svm_train.cpp: In member function ‘void<unnamed>::Igor::inverse_normalize(std::vector<float, std::allocator svm_train.cpp:165: error: no matching function for call to ‘sort(__gnu_cxx::__normal_iterator<float**, std:erator<float**, std::vector<float*, std::allocator<float*> > >, <unnamed>::Igor::inverse_normalize(std::vecator<float> >&)::<anonymous struct>&)’

這是因為你的gcc版本太低,最低要求4.8.1,更換較高版本:

export PATH=/share/work/biosoft/gcc/gcc-v4.8.0/bin/:$PATH

報錯3:

g++ -pipe -std=c++0x -O3 -I./lib -I. -I./lib/htslib -I./lib/Rmath -I./lib/pcre2 -I/share/work/biosoft/xz/xz-v5.2.3/include/ -D__STDC_LIMIT_MACROS -o vt ahmm.o align.o allele.o annotate_1000g.o annotate_dbsnp_rsid.o annotate_indels.o annotate_indels2.o annotate_regions.o annotate_variants.o annotate_vntrs.o augmented_bam_record.o bcf_genotyping_buffered_reader.o bcf_single_genotyping_buffered_reader.o bam_ordered_reader.o bcf_ordered_reader.o bcf_ordered_writer.o bcf_synced_reader.o bed.o candidate_motif_picker.o candidate_region_extractor.o cat.o chmm.o complex_genotyping_record.o compute_concordance.o compute_features.o compute_features2.o compute_rl_dist.o config.o consolidate_multiallelics.o consolidate_vntrs.o consolidate.o construct_probes.o decompose.o decompose2.o decompose_blocksub.o discover.o duplicate.o estimate.o estimator.o extract_vntrs.o filter.o filter_overlap.o flank_detector.o fuzzy_aligner.o fuzzy_partition.o gencode.o genome_interval.o genotype.o genotyping_record.o ghmm.o hts_utils.o hfilter.o indel_annotator.o indel_genotyping_record.o index.o info2tab.o interval_tree.o interval.o lfhmm.o lhmm.o lhmm1.o liftover.o log_tool.o merge.o merge_candidate_variants.o merge_genotypes.o milk_filter.o motif_tree.o motif_map.o multi_partition.o multiallelics_consolidator.o needle.o normalize.o nuclear_pedigree.o ordered_bcf_overlap_matcher.o ordered_region_overlap_matcher.o partition.o paste.o paste_and_compute_features_sequential.o paste_genotypes.o pedigree.o peek.o pileup.o pregex.o profile_afs.o profile_chm1.o profile_chrom.o profile_fic_hwe.o profile_hwe.o profile_indels.o profile_len.o profile_mendelian.o profile_na12878.o profile_snps.o profile_vntrs.o program.o read_filter.o reference_sequence.o rfhmm.o rfhmm_x.o rminfo.o seq.o set_ref.o snp_genotyping_record.o sort.o subset.o sv_tree.o svm_train.o svm_predict.o tbx_ordered_reader.o test.o trio.o union_variants.o uniq.o utils.o validate.o variant.o variant_manip.o variant_filter.o view.o vntr.o vntr_annotator.o vntr_consolidator.o vntr_extractor.o vntr_genotyping_record.o vntr_tree.o vntrize.o wdp_ahmm.o main.o lib/htslib/libhts.a lib/Rmath/libRmath.a lib/pcre2/libpcre2.a lib/libdeflate/libdeflate.a -lz -lpthread -lbz2 -llzma -lcurl -lcrypto
/usr/bin/ld: cannot find -llzma
collect2: error: ld returned 1 exit status
make: *** [vt] Error 1

添加library路徑:

export LIBRARY_PATH=/share/work/biosoft/xz/xz-v5.2.3/lib/:$LIBRARY_PATH

再make順利編譯完成

感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“vt軟件如何安裝”這篇文章對大家有幫助,同時也希望大家多多支持億速云,關(guān)注億速云行業(yè)資訊頻道,更多相關(guān)知識等著你來學(xué)習(xí)!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

vt
AI