美文网首页
03.linux -- 软件安装 -- eg: bowtie2

03.linux -- 软件安装 -- eg: bowtie2

作者: QXPLUS | 来源:发表于2022-05-23 09:54 被阅读0次

bowtie2 安装

shiyanlou:~/ $ mkdir -p ~/biosoft/bowtie2                                                   [17:07:30]
shiyanlou:~/ $ cd ~/biosoft/bowtie2
shiyanlou:bowtie2/ $ pwd                                                                    [17:04:04]
/home/shiyanlou/biosoft/bowtie2

shiyanlou:bowtie2/ $ wget https://sourceforge.net/projects/bowtie-bio/files/bowtie2/2.4.5/bowtie2-2.4.5-linux-x86_64.zip --no-check-certificate
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 75427858 (72M) [application/octet-stream]
正在保存至: “bowtie2-2.4.5-linux-x86_64.zip”

bowtie2-2.4.5-linux-x86_6 100%[====================================>]  71.93M  11.4MB/s    in 6.6s    

2022-05-20 17:11:52 (10.9 MB/s) - 已保存 “bowtie2-2.4.5-linux-x86_64.zip” [75427858/75427858])

shiyanlou:bowtie2/ $ ls -lh                                                                 [17:12:46]
总用量 72M
-rw-rw-r-- 1 shiyanlou shiyanlou 72M 1月  17 12:03 bowtie2-2.4.5-linux-x86_64.zip
# 解压
shiyanlou:bowtie2/ $ unzip bowtie2-2.4.5-linux-x86_64.zip                                   [17:50:09]
Archive:  bowtie2-2.4.5-linux-x86_64.zip
   creating: bowtie2-2.4.5-linux-x86_64/
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-inspect-s-debug  
  inflating: bowtie2-2.4.5-linux-x86_64/LICENSE  
   creating: bowtie2-2.4.5-linux-x86_64/doc/
  inflating: bowtie2-2.4.5-linux-x86_64/doc/README  
  inflating: bowtie2-2.4.5-linux-x86_64/doc/manual.html  
  inflating: bowtie2-2.4.5-linux-x86_64/doc/style.css  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-align-s  
  inflating: bowtie2-2.4.5-linux-x86_64/MANUAL  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-build-s  
  inflating: bowtie2-2.4.5-linux-x86_64/NEWS  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-build-l-debug  
  inflating: bowtie2-2.4.5-linux-x86_64/AUTHORS  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-inspect-l  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-align-s-debug  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-align-l-debug  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-align-l  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-build-s-debug  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-build-l  
  inflating: bowtie2-2.4.5-linux-x86_64/README.md  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-inspect-s  
 extracting: bowtie2-2.4.5-linux-x86_64/BOWTIE2_VERSION  
   creating: bowtie2-2.4.5-linux-x86_64/scripts/
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/bowtie2-hbb.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_hg18.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_rn4.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_e_coli.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_canFam2.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_c_elegans.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/gen_2b_occ_lookup.pl  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/convert_quals.pl  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_m_musculus_ncbi37.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_mm10.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_mm9.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_h_sapiens_ncbi37.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_h_sapiens_ncbi36.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/gen_solqual_lookup.pl  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_b_taurus_UMD3.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_a_thaliana_tair.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/gen_occ_lookup.pl  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_s_cerevisiae.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_d_melanogaster.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/make_hg19.sh  
  inflating: bowtie2-2.4.5-linux-x86_64/scripts/infer_fraglen.pl  
   creating: bowtie2-2.4.5-linux-x86_64/example/
   creating: bowtie2-2.4.5-linux-x86_64/example/reads/
  inflating: bowtie2-2.4.5-linux-x86_64/example/reads/combined_reads.bam  
  inflating: bowtie2-2.4.5-linux-x86_64/example/reads/simulate.pl  
  inflating: bowtie2-2.4.5-linux-x86_64/example/reads/reads_2.fq  
  inflating: bowtie2-2.4.5-linux-x86_64/example/reads/longreads.fq  
  inflating: bowtie2-2.4.5-linux-x86_64/example/reads/reads_1.fq  
   creating: bowtie2-2.4.5-linux-x86_64/example/index/
  inflating: bowtie2-2.4.5-linux-x86_64/example/index/lambda_virus.rev.2.bt2  
  inflating: bowtie2-2.4.5-linux-x86_64/example/index/lambda_virus.3.bt2  
  inflating: bowtie2-2.4.5-linux-x86_64/example/index/lambda_virus.4.bt2  
  inflating: bowtie2-2.4.5-linux-x86_64/example/index/lambda_virus.2.bt2  
  inflating: bowtie2-2.4.5-linux-x86_64/example/index/lambda_virus.rev.1.bt2  
  inflating: bowtie2-2.4.5-linux-x86_64/example/index/lambda_virus.1.bt2  
   creating: bowtie2-2.4.5-linux-x86_64/example/reference/
  inflating: bowtie2-2.4.5-linux-x86_64/example/reference/lambda_virus.fa  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-build  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-inspect  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2  
  inflating: bowtie2-2.4.5-linux-x86_64/bowtie2-inspect-l-debug  
  inflating: bowtie2-2.4.5-linux-x86_64/MANUAL.markdown  
  inflating: bowtie2-2.4.5-linux-x86_64/TUTORIAL  

# 查看软件包含的文件(绿色是可执行的文件)
shiyanlou:bowtie2/ $ cd bowtie2-2.4.5-linux-x86_64                                          [17:54:04]
shiyanlou:bowtie2-2.4.5-linux-x86_64/ $ ls                                                  [17:54:09]
AUTHORS                bowtie2-build          bowtie2-inspect-l        example          scripts
bowtie2                bowtie2-build-l        bowtie2-inspect-l-debug  LICENSE          TUTORIAL
bowtie2-align-l        bowtie2-build-l-debug  bowtie2-inspect-s        MANUAL
bowtie2-align-l-debug  bowtie2-build-s        bowtie2-inspect-s-debug  MANUAL.markdown
bowtie2-align-s        bowtie2-build-s-debug  BOWTIE2_VERSION          NEWS
bowtie2-align-s-debug  bowtie2-inspect        doc                      README.md

一般,帮助文档出来就说明软件安装成功

# 通过绝对路劲执行软件(不加任何参数,就会打印帮助文档)
shiyanlou:bowtie2-2.4.5-linux-x86_64/ $ /home/shiyanlou/biosoft/bowtie2/bowtie2-2.4.5-linux-x86_64/bowtie2
No index, query, or output file specified!
Bowtie 2 version 2.4.5 by Ben Langmead (langmea@cs.jhu.edu, www.cs.jhu.edu/~langmea)
Usage: 
  bowtie2 [options]* -x <bt2-idx> {-1 <m1> -2 <m2> | -U <r> | --interleaved <i> | -b <bam>} [-S <sam>]

  <bt2-idx>  Index filename prefix (minus trailing .X.bt2).
             NOTE: Bowtie 1 and Bowtie 2 indexes are not compatible.
  <m1>       Files with #1 mates, paired with files in <m2>.
             Could be gzip'ed (extension: .gz) or bzip2'ed (extension: .bz2).
  <m2>       Files with #2 mates, paired with files in <m1>.
             Could be gzip'ed (extension: .gz) or bzip2'ed (extension: .bz2).
  <r>        Files with unpaired reads.
             Could be gzip'ed (extension: .gz) or bzip2'ed (extension: .bz2).
  <i>        Files with interleaved paired-end FASTQ/FASTA reads
             Could be gzip'ed (extension: .gz) or bzip2'ed (extension: .bz2).
  <bam>      Files are unaligned BAM sorted by read name.
  <sam>      File for SAM output (default: stdout)

  <m1>, <m2>, <r> can be comma-separated lists (no whitespace) and can be
  specified many times.  E.g. '-U file1.fq,file2.fq -U file3.fq'.

Options (defaults in parentheses):

 Input:
  -q                 query input files are FASTQ .fq/.fastq (default)
  --tab5             query input files are TAB5 .tab5
  --tab6             query input files are TAB6 .tab6
  --qseq             query input files are in Illumina's qseq format
  -f                 query input files are (multi-)FASTA .fa/.mfa
  -r                 query input files are raw one-sequence-per-line
  -F k:<int>,i:<int> query input files are continuous FASTA where reads
                     are substrings (k-mers) extracted from a FASTA file <s>
                     and aligned at offsets 1, 1+i, 1+2i ... end of reference
  -c                 <m1>, <m2>, <r> are sequences themselves, not files
  -s/--skip <int>    skip the first <int> reads/pairs in the input (none)
  -u/--upto <int>    stop after first <int> reads/pairs (no limit)
  -5/--trim5 <int>   trim <int> bases from 5'/left end of reads (0)
  -3/--trim3 <int>   trim <int> bases from 3'/right end of reads (0)
  --trim-to [3:|5:]<int> trim reads exceeding <int> bases from either 3' or 5' end
                     If the read end is not specified then it defaults to 3 (0)
  --phred33          qualities are Phred+33 (default)
  --phred64          qualities are Phred+64
  --int-quals        qualities encoded as space-delimited integers

 Presets:                 Same as:
  For --end-to-end:
   --very-fast            -D 5 -R 1 -N 0 -L 22 -i S,0,2.50
   --fast                 -D 10 -R 2 -N 0 -L 22 -i S,0,2.50
   --sensitive            -D 15 -R 2 -N 0 -L 22 -i S,1,1.15 (default)
   --very-sensitive       -D 20 -R 3 -N 0 -L 20 -i S,1,0.50

  For --local:
   --very-fast-local      -D 5 -R 1 -N 0 -L 25 -i S,1,2.00
   --fast-local           -D 10 -R 2 -N 0 -L 22 -i S,1,1.75
   --sensitive-local      -D 15 -R 2 -N 0 -L 20 -i S,1,0.75 (default)
   --very-sensitive-local -D 20 -R 3 -N 0 -L 20 -i S,1,0.50

 Alignment:
  -N <int>           max # mismatches in seed alignment; can be 0 or 1 (0)
  -L <int>           length of seed substrings; must be >3, <32 (22)
  -i <func>          interval between seed substrings w/r/t read len (S,1,1.15)
  --n-ceil <func>    func for max # non-A/C/G/Ts permitted in aln (L,0,0.15)
  --dpad <int>       include <int> extra ref chars on sides of DP table (15)
  --gbar <int>       disallow gaps within <int> nucs of read extremes (4)
  --ignore-quals     treat all quality values as 30 on Phred scale (off)
  --nofw             do not align forward (original) version of read (off)
  --norc             do not align reverse-complement version of read (off)
  --no-1mm-upfront   do not allow 1 mismatch alignments before attempting to
                     scan for the optimal seeded alignments
  --end-to-end       entire read must align; no clipping (on)
   OR
  --local            local alignment; ends might be soft clipped (off)

 Scoring:
  --ma <int>         match bonus (0 for --end-to-end, 2 for --local) 
  --mp <int>         max penalty for mismatch; lower qual = lower penalty (6)
  --np <int>         penalty for non-A/C/G/Ts in read/ref (1)
  --rdg <int>,<int>  read gap open, extend penalties (5,3)
  --rfg <int>,<int>  reference gap open, extend penalties (5,3)
  --score-min <func> min acceptable alignment score w/r/t read length
                     (G,20,8 for local, L,-0.6,-0.6 for end-to-end)

 Reporting:
  (default)          look for multiple alignments, report best, with MAPQ
   OR
  -k <int>           report up to <int> alns per read; MAPQ not meaningful
   OR
  -a/--all           report all alignments; very slow, MAPQ not meaningful

 Effort:
  -D <int>           give up extending after <int> failed extends in a row (15)
  -R <int>           for reads w/ repetitive seeds, try <int> sets of seeds (2)

 Paired-end:
  -I/--minins <int>  minimum fragment length (0)
  -X/--maxins <int>  maximum fragment length (500)
  --fr/--rf/--ff     -1, -2 mates align fw/rev, rev/fw, fw/fw (--fr)
  --no-mixed         suppress unpaired alignments for paired reads
  --no-discordant    suppress discordant alignments for paired reads
  --dovetail         concordant when mates extend past each other
  --no-contain       not concordant when one mate alignment contains other
  --no-overlap       not concordant when mates overlap at all

 BAM:
  --align-paired-reads
                     Bowtie2 will, by default, attempt to align unpaired BAM reads.
                     Use this option to align paired-end reads instead.
  --preserve-tags    Preserve tags from the original BAM record by
                     appending them to the end of the corresponding SAM output.

 Output:
  -t/--time          print wall-clock time taken by search phases
  --un <path>        write unpaired reads that didn't align to <path>
  --al <path>        write unpaired reads that aligned at least once to <path>
  --un-conc <path>   write pairs that didn't align concordantly to <path>
  --al-conc <path>   write pairs that aligned concordantly at least once to <path>
    (Note: for --un, --al, --un-conc, or --al-conc, add '-gz' to the option name, e.g.
    --un-gz <path>, to gzip compress output, or add '-bz2' to bzip2 compress output.)
  --quiet            print nothing to stderr except serious errors
  --met-file <path>  send metrics to file at <path> (off)
  --met-stderr       send metrics to stderr (off)
  --met <int>        report internal counters & metrics every <int> secs (1)
  --no-unal          suppress SAM records for unaligned reads
  --no-head          suppress header lines, i.e. lines starting with @
  --no-sq            suppress @SQ header lines
  --rg-id <text>     set read group id, reflected in @RG line and RG:Z: opt field
  --rg <text>        add <text> ("lab:value") to @RG line of SAM header.
                     Note: @RG line only printed when --rg-id is set.
  --omit-sec-seq     put '*' in SEQ and QUAL fields for secondary alignments.
  --sam-no-qname-trunc
                     Suppress standard behavior of truncating readname at first whitespace 
                     at the expense of generating non-standard SAM.
  --xeq              Use '='/'X', instead of 'M,' to specify matches/mismatches in SAM record.
  --soft-clipped-unmapped-tlen
                     Exclude soft-clipped bases when reporting TLEN
  --sam-append-comment
                     Append FASTA/FASTQ comment to SAM record

 Performance:
  -p/--threads <int> number of alignment threads to launch (1)
  --reorder          force SAM output order to match order of input reads
  --mm               use memory-mapped I/O for index; many 'bowtie's can share

 Other:
  --qc-filter        filter out reads that are bad according to QSEQ filter
  --seed <int>       seed for random number generator (0)
  --non-deterministic
                     seed rand. gen. arbitrarily instead of using read attributes
  --version          print version information and quit
  -h/--help          print this usage message
(ERR): bowtie2-align exited with value 1

环境变量

相关文章

网友评论

      本文标题:03.linux -- 软件安装 -- eg: bowtie2

      本文链接:https://www.haomeiwen.com/subject/pgwfprtx.html