Skip to content

Commit 46d7076

Browse files
committed
v0.3.3
1 parent f6f8623 commit 46d7076

10 files changed

Lines changed: 77 additions & 49 deletions

File tree

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2018-01-20 Li Jianfeng <lee_jianfeng@sjtu.edu.cn>
2+
3+
* added mutsig in nongithub
4+
15
2018-01-19 Li Jianfeng <lee_jianfeng@sjtu.edu.cn>
26

37
* added db_annovar_docm, db_annovar_intogen,

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: BioInstaller
22
Title: Lightweight Biology Software Installer
3-
Version: 0.3.2.3
3+
Version: 0.3.3
44
Authors@R: person("Jianfeng", "Li", email = "lee_jianfeng@sjtu.edu.cn", role = c("aut", "cre"))
55
Description:
66
Can be used to install and download massive bioinformatics analysis softwares and databases, such as NGS reads mapping tools with its required databases.

NEWS.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# BioInstaller v0.3.3
2+
3+
## Softwares
4+
5+
- Supported 148 softwares
6+
7+
## Databases
8+
9+
- Supported 169 databases
10+
11+
## Bug Fixed
12+
13+
- Fixed a bug when set save.to.db to FALSE. It can raise installed fail

R/info.R

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#' @param source.dir Directorie of softwares source code
66
#' @param bin.dir Directorie of softwares bin
77
#' @param executable.files Executable files in bin.dir
8-
#' @param db File of saving softwares infomation
8+
#' @param db File saving softwares infomation
99
#' @param ... Other key and value paired need be saved in BioInstaller
1010
#' @param verbose Ligical indicating wheather show the log message
1111
#' @export
@@ -17,8 +17,7 @@
1717
#' bin.dir = '', excutable.files = c('demo'), others.customer = 'demo')
1818
#' unlink(db)
1919
change.info <- function(name = "", installed = TRUE, source.dir = "", bin.dir = "",
20-
executable.files = "", db = Sys.getenv("BIO_SOFTWARES_DB_ACTIVE", system.file("extdata",
21-
"demo/softwares_db_demo.yaml", package = "BioInstaller")), ..., verbose = TRUE) {
20+
executable.files = "", db = Sys.getenv("BIO_SOFTWARES_DB_ACTIVE", tempfile()), ..., verbose = TRUE) {
2221
msg <- sprintf("Running change.info for %s and be saved to %s", name, db)
2322
info.msg(msg, verbose = verbose)
2423
source.dir <- normalizePath(source.dir, mustWork = F)
@@ -40,7 +39,7 @@ change.info <- function(name = "", installed = TRUE, source.dir = "", bin.dir =
4039
#' Show biologly softwares infomation of system
4140
#'
4241
#' @param name Software name
43-
#' @param db File of saving softwares infomation
42+
#' @param db File saving softwares infomation
4443
#' @param verbose Ligical indicating wheather show the log message
4544
#' @export
4645
#' @return Bool Value
@@ -51,8 +50,7 @@ change.info <- function(name = "", installed = TRUE, source.dir = "", bin.dir =
5150
#' bin.dir = '', excutable.files = c('demo'), others.customer = 'demo')
5251
#' get.info('bwa')
5352
#' unlink(db)
54-
get.info <- function(name = "", db = Sys.getenv("BIO_SOFTWARES_DB_ACTIVE", system.file("extdata",
55-
"demo/softwares_db_demo.yaml", package = "BioInstaller")), verbose = TRUE) {
53+
get.info <- function(name = "", db = Sys.getenv("BIO_SOFTWARES_DB_ACTIVE", tempfile()), verbose = TRUE) {
5654
db <- normalizePath(db, mustWork = FALSE)
5755
if (!db.check(db)) {
5856
return(FALSE)
@@ -72,7 +70,7 @@ get.info <- function(name = "", db = Sys.getenv("BIO_SOFTWARES_DB_ACTIVE", syste
7270
#' Delete biologly softwares infomation of system
7371
#'
7472
#' @param name Software name
75-
#' @param db File of saving softwares infomation
73+
#' @param db File saving softwares infomation
7674
#' @param verbose Ligical indicating wheather show the log message
7775
#' @export
7876
#' @return Bool Value
@@ -83,8 +81,7 @@ get.info <- function(name = "", db = Sys.getenv("BIO_SOFTWARES_DB_ACTIVE", syste
8381
#' bin.dir = '', excutable.files = c('demo'), others.customer = 'demo')
8482
#' del.info('bwa')
8583
#' unlink(db)
86-
del.info <- function(name = "", db = Sys.getenv("BIO_SOFTWARES_DB_ACTIVE", system.file("extdata",
87-
"demo/softwares_db_demo.yaml", package = "BioInstaller")), verbose = TRUE) {
84+
del.info <- function(name = "", db = Sys.getenv("BIO_SOFTWARES_DB_ACTIVE", tempfile()), verbose = TRUE) {
8885
db <- normalizePath(db, mustWork = FALSE)
8986
if (!db.check(db)) {
9087
return(FALSE)
@@ -104,7 +101,7 @@ del.info <- function(name = "", db = Sys.getenv("BIO_SOFTWARES_DB_ACTIVE", syste
104101

105102
#' Show all installed bio-softwares in system
106103
#'
107-
#' @param db File of saving softwares infomation
104+
#' @param db File saving softwares infomation
108105
#' @param only.installed Logical wheather only show installed softwares in db
109106
#' @param verbose Ligical indicating wheather show the log message
110107
#' @export
@@ -116,8 +113,7 @@ del.info <- function(name = "", db = Sys.getenv("BIO_SOFTWARES_DB_ACTIVE", syste
116113
#' bin.dir = '', excutable.files = c('demo'), others.customer = 'demo')
117114
#' show.installed()
118115
#' unlink(db)
119-
show.installed <- function(db = Sys.getenv("BIO_SOFTWARES_DB_ACTIVE", system.file("extdata",
120-
"demo/softwares_db_demo.yaml", package = "BioInstaller")), only.installed = TRUE,
116+
show.installed <- function(db = Sys.getenv("BIO_SOFTWARES_DB_ACTIVE", tempfile()), only.installed = TRUE,
121117
verbose = TRUE) {
122118
db <- normalizePath(db, mustWork = FALSE)
123119
if (!db.check(db)) {

inst/extdata/config/nongithub/nongithub.toml

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ linux = ["mkdir -p {{destdir}}/bin; fn=`ls -F bin|grep '*' | tr -d '*'` ;cd bin;
198198
mac = ["mkdir -p {{destdir}}/bin; fn=`ls -F bin|grep '*' | tr -d '*'` ;cd bin;", " cp $fn {{destdir}}/bin"]
199199

200200
[fusioncatcher]
201-
source_url = ["https://sourceforge.net/projects/fusioncatcher/files/fusioncatcher_{{version}}.zip",
201+
source_url = ["https://sourceforge.net/projects/fusioncatcher/files/fusioncatcher_{{version}}.zip",
202202
"https://sourceforge.net/projects/fusioncatcher/files/bootstrap.py"]
203203
decompress = [true, false]
204204
#dependence = ["bwa", "blat", "faToTwoBit", "bowtie", "bowtie2", "star", "sratools", "velvet", "lzo", "pigz", "seqtk", "picard", "samtools_old", "pxz", "liftover"]
@@ -304,7 +304,7 @@ version_available = ["1.2.11", "1.2.10", "1.2.9", "1.2.7", "1.2.8", "1.2.6", "1.
304304
make_dir = ["./"]
305305
bin_dir = ["{{destdir}}/lib"]
306306

307-
[zlib.source_url]
307+
[zlib.source_url]
308308
linux = ["https://sourceforge.net/projects/libpng/files/zlib/{{version}}/zlib-{{version}}.tar.gz"]
309309
mac = ["https://sourceforge.net/projects/libpng/files/zlib/{{version}}/zlib-{{version}}.tar.gz"]
310310

@@ -543,18 +543,18 @@ bin_dir = ["{{destdir}}/bin"]
543543
url_all_download = false
544544

545545
[r.source_url]
546-
linux = ["https://cran.r-project.org/src/base/R-3/R-{{version}}.tar.gz",
547-
"https://cran.r-project.org/src/base/R-2/R-{{version}}.tar.gz",
548-
"https://cran.r-project.org/src/base/R-1/R-{{version}}.tgz",
546+
linux = ["https://cran.r-project.org/src/base/R-3/R-{{version}}.tar.gz",
547+
"https://cran.r-project.org/src/base/R-2/R-{{version}}.tar.gz",
548+
"https://cran.r-project.org/src/base/R-1/R-{{version}}.tgz",
549549
"https://cran.r-project.org/src/base/R-0/R-{{version}}.tgz"]
550-
mac = ["https://cran.r-project.org/bin/macosx/R-{{version}}.pkg",
550+
mac = ["https://cran.r-project.org/bin/macosx/R-{{version}}.pkg",
551551
"https://cran.r-project.org/bin/macosx/old/R-{{version}}.pkg"]
552-
windows = ["https://cran.r-project.org/bin/windows/base/R-{{version}}-win.exe",
552+
windows = ["https://cran.r-project.org/bin/windows/base/R-{{version}}-win.exe",
553553
"https://cran.r-project.org/bin/windows/base/old/{{versions}}/R-{{version}}-win.exe"]
554554

555555
[r.install]
556556
linux = ["""./configure --enable-R-shlib --prefix={{destdir}} CFLAGS='\
557-
@>@
557+
@>@
558558
library(stringr)
559559
include.flag <- unique(c('-I{{zlib:install.dir}}/include', '-I{{bzip2:install.dir}}/include', '-I{{xz:install.dir}}/include', '-I{{pcre:install.dir}}/include', '-I{{curl:install.dir}}/include'))
560560
include.flag <- include.flag[!str_detect(include.flag, ':')]
@@ -564,11 +564,11 @@ LDFLAGS='\
564564
@>@
565565
lib.flag <- unique(c('-I{{zlib:install.dir}}/lib', '-I{{bzip2:install.dir}}/lib', '-I{{xz:install.dir}}/lib', '-I{{pcre:install.dir}}/lib', '-I{{curl:install.dir}}/lib'))
566566
lib.flag <- lib.flag[!str_detect(lib.flag, ':')]
567-
paste(lib.flag, collapse=' ')
567+
paste(lib.flag, collapse=' ')
568568
@<@' \
569569
&& make""", "make install"]
570570
mac = ["""./configure --enable-R-shlib --prefix={{destdir}} CFLAGS='\
571-
@>@
571+
@>@
572572
library(stringr)
573573
include.flag <- unique(c('-I{{zlib:install.dir}}/include', '-I{{bzip2:install.dir}}/include', '-I{{xz:install.dir}}/include', '-I{{pcre:install.dir}}/include', '-I{{curl:install.dir}}/include'))
574574
include.flag <- include.flag[!str_detect(include.flag, ':')]
@@ -578,7 +578,7 @@ LDFLAGS='\
578578
@>@
579579
lib.flag <- unique(c('-I{{zlib:install.dir}}/lib', '-I{{bzip2:install.dir}}/lib', '-I{{xz:install.dir}}/lib', '-I{{pcre:install.dir}}/lib', '-I{{curl:install.dir}}/lib'))
580580
lib.flag <- lib.flag[!str_detect(lib.flag, ':')]
581-
paste(lib.flag, collapse=' ')
581+
paste(lib.flag, collapse=' ')
582582
@<@' \
583583
&& make""", "make install"]
584584

@@ -593,8 +593,8 @@ mac = "pip install ."
593593
decompress = false
594594
url_all_download = false
595595

596-
[miniconda2.source_url]
597-
windows = ["https://repo.continuum.io/miniconda/Miniconda2-{{version}}-Windows-x86_64.exe",
596+
[miniconda2.source_url]
597+
windows = ["https://repo.continuum.io/miniconda/Miniconda2-{{version}}-Windows-x86_64.exe",
598598
"http://bioinfo.rjh.com.cn/download/miniconda/Miniconda2-{{version}}-Windows-x86_64.exe"]
599599
mac = ["https://repo.continuum.io/miniconda/Miniconda2-{{version}}-MacOSX-x86_64.sh",
600600
"http://bioinfo.rjh.com.cn/download/miniconda/Miniconda2-{{version}}-MacOSX-x86_64.sh"]
@@ -610,7 +610,7 @@ decompress = false
610610
url_all_download = false
611611

612612
[miniconda3.source_url]
613-
windows = ["https://repo.continuum.io/miniconda/Miniconda3-{{version}}-Windows-x86_64.exe",
613+
windows = ["https://repo.continuum.io/miniconda/Miniconda3-{{version}}-Windows-x86_64.exe",
614614
"http://bioinfo.rjh.com.cn/download/miniconda/Miniconda3-{{version}}-Windows-x86_64.exe"]
615615
mac = ["https://repo.continuum.io/miniconda/Miniconda3-{{version}}-MacOSX-x86_64.sh",
616616
"http://bioinfo.rjh.com.cn/download/miniconda/Miniconda3-{{version}}-MacOSX-x86_64.sh"]
@@ -624,7 +624,7 @@ mac = "sh Miniconda3-{{version}}-MacOSX-x86_64.sh"
624624
[strelka]
625625
source_url = "ftp://strelka@ftp.illumina.com/v1-branch/v{{version}}/strelka_workflow-{{version}}.tar.gz"
626626
version_order_fixed = true
627-
version_available = ["1.0.15", "1.0.4", "1.0.5", "1.0.6", "1.0.7", "1.0.10",
627+
version_available = ["1.0.15", "1.0.4", "1.0.5", "1.0.6", "1.0.7", "1.0.10",
628628
"1.0.11", "1.0.12", "1.0.13", "1.0.14"]
629629

630630
[strelka.install]
@@ -644,7 +644,7 @@ version_available = "latest"
644644
version_available = ["2.7.1", "2.6.0", "2.5.0", "2.4.0", "2.3.0"]
645645
[blast.source_url]
646646
linux = "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/{{version}}/ncbi-blast-{{version}}+-x64-linux.tar.gz"
647-
mac = ["ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/{{version}}/ncbi-blast-{{version}}+-x64-macosx.tar.gz",
647+
mac = ["ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/{{version}}/ncbi-blast-{{version}}+-x64-macosx.tar.gz",
648648
"ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/{{version}}/ncbi-blast-{{version}}+.dmg"]
649649
win = ["ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/{{version}}/ncbi-blast-{{version}}+-x64-win64.tar.gz",
650650
"ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/{{version}}/ncbi-blast-{{version}}+-win64.exe"]
@@ -658,7 +658,7 @@ mac = "mkdir -p {{destdir}}/bin; cp {{download.dir}}/*.jar {{destdir}}/bin"
658658

659659
[interproscan]
660660
source_url = [
661-
"ftp://ftp.ebi.ac.uk/pub/software/unix/iprscan/5/{{version}}/interproscan-{{version}}-64-bit.tar.gz",
661+
"ftp://ftp.ebi.ac.uk/pub/software/unix/iprscan/5/{{version}}/interproscan-{{version}}-64-bit.tar.gz",
662662
"http://bioinfo.rjh.com.cn/download/bioinstaller/interproscan/interproscan-{{version}}-64-bit.tar.gz"
663663
]
664664
url_all_download = false
@@ -675,7 +675,7 @@ make_dir = ["./src"]
675675
linux = "make -f Makefile.Linux"
676676
mac = "make -f Makefile.MacOS"
677677

678-
[vcfanno.source_url]
678+
[vcfanno.source_url]
679679
linux = "https://github.com/brentp/vcfanno/releases/download/{{version}}/vcfanno_linux64"
680680
mac = "https://github.com/brentp/vcfanno/releases/download/{{version}}/vcfanno_osx"
681681
[vcfanno]
@@ -706,11 +706,11 @@ version_available = ["1.4.3", "1.4.1"]
706706

707707
[beagle]
708708
source_url = "http://faculty.washington.edu/browning/beagle/{{version}}"
709-
version_available = ["beagle.08Jun17.d8b.jar", "beagle_4.1_21Jan17.pdf", "run.beagle.08Jun17.d8b.example",
709+
version_available = ["beagle.08Jun17.d8b.jar", "beagle_4.1_21Jan17.pdf", "run.beagle.08Jun17.d8b.example",
710710
"release_notes", "beagle.170608.zip"]
711711

712712
[contest]
713-
source_url = ["http://bioinfo.rjh.com.cn/download/bioinstaller/contest/contest-{{version}}-bin.zip",
713+
source_url = ["http://bioinfo.rjh.com.cn/download/bioinstaller/contest/contest-{{version}}-bin.zip",
714714
"hg19_population_stratified_af_hapmap_3.3.vcf.gz"]
715715
url_all_download = true
716716
version_available = "1.0.24530"
@@ -747,6 +747,18 @@ source_url = "http://bioinfo.rjh.com.cn/download/bioinstaller/meerkat/meerkat.{{
747747
version_available = "0.189"
748748

749749
[vadir]
750-
source_url = ["http://bioinfo.rjh.com.cn/download/bioinstaller/vadir/VaDiR.tar.gz",
750+
source_url = ["http://bioinfo.rjh.com.cn/download/bioinstaller/vadir/VaDiR.tar.gz",
751751
"ftp://penguin.genomics.cn/pub/10.5524/100001_101000/100360/VaDiR.tar.gz"]
752752
version_available = "latest"
753+
754+
[mutsig]
755+
source_url = "http://bioinfo.rjh.com.cn/download/bioinstaller/mutsig/MutSigCV_{{version}}.zip"
756+
version_available = ["1.41"]
757+
758+
[mutsig_dependence]
759+
source_url = "http://bioinfo.rjh.com.cn/download/bioinstaller/mutsig/{{version}}.zip"
760+
version_available = ["exome_full192.coverage", "mutation_type_dictionary_file.txt"]
761+
762+
[mutsig_reffa]
763+
source_url = "http://bioinfo.rjh.com.cn/download/bioinstaller/mutsig/{{version}}.zip"
764+
version_available = ["hg19.fa"]

inst/extdata/config/nongithub/nongithub_meta.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,10 @@ level. We also found that the integration of Tier1 variants with those called by
122122
the highest recall with acceptable precision. Finally, we observed higher rate of mutation discovery in genes
123123
that are expressed at higher levels."""
124124
publication = "Neums L, Suenaga S, Beyerlein P, et al. VaDiR: an integrated approach to Variant Detection in RNA[J]. GigaScience, 2017. https://doi.org/10.1093/gigascience/gix122"
125+
126+
[nongithub.item.mutsig]
127+
title = "Mutational heterogeneity in cancer and the search for new cancer-associated genes"
128+
description = """
129+
MutSig (for "Mutation Significance") is a package of tools for analyzing mutation data. It operates on a cohort of patients and identifies mutations, genes, and other genomic elements predicted to be driver candidates.
130+
"""
131+
publication = "Lawrence, M. et al. Mutational heterogeneity in cancer and the search for new cancer-associated genes. Nature 499, 214-218 (2013) http://dx.doi.org/10.1038/nature12213"

man/change.info.Rd

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/del.info.Rd

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/get.info.Rd

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/show.installed.Rd

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)