Skip to content

Commit 325ccb8

Browse files
committed
Merge branch 'develop'
2 parents e856ef6 + 09825f7 commit 325ccb8

11 files changed

Lines changed: 438 additions & 13 deletions

File tree

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2017-09-18 Li Jianfeng <lee_jianfeng@sjtu.edu.cn>
2+
3+
* fix invalid test link
4+
* ANNOVAR databases can be download use
5+
inst/extdata/databases/ANNOVAR.toml
6+
* Move databases toml file to inst/extdata/databases/
7+
* DRAT and fastq-tools be added
8+
19
2017-07-24 Li Jianfeng <lee_jianfeng@sjtu.edu.cn>
210

311
* picard/mutect be added in inst/extdata/docker.toml

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Package: BioInstaller
22
Title: Lightweight Biology Software Installer
3-
Version: 0.2.0
3+
Version: 0.2.1
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.
77
Depends:
88
R (>= 3.3.0)
9-
URL: https://github.com/JhuangLab/BioInstaller, http://bioinfo.rjh.com.cn/labs/jhuang/tools/BioInstaller
9+
URL: https://github.com/JhuangLab/BioInstaller
1010
BugReports: https://github.com/JhuangLab/BioInstaller/issues
1111
License: MIT + file LICENSE
1212
Encoding: UTF-8

inst/extdata/databases/ANNOVAR.toml

Lines changed: 393 additions & 0 deletions
Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.

inst/extdata/github.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,3 +801,17 @@ make_dir = "ensembl-vep"
801801
[vep.install]
802802
linux = 'perl INSTALL.pl'
803803
mac = 'perl INSTALL.pl'
804+
805+
[dart]
806+
github_url = "https://github.com/hsinnan75/DART"
807+
808+
[dart.install]
809+
linux = "make"
810+
mac = "make"
811+
812+
[fastq_tools]
813+
github_url = "https://github.com/dcjones/fastq-tools"
814+
815+
[fastq_tools.install]
816+
linux = ["sh autogen.sh && ./configure --prefix={{destdir}} && make", "make install"]
817+
mac = ["sh autogen.sh && ./configure --prefix={{destdir}} && make", "make install"]

inst/extdata/nongithub.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Configuration file of install.softwares(Non-Github)
22
title = "Non-Github Configuration File"
33
[demo]
4-
source_url = "http://bioinfo.rjh.com.cn/download/annovarR/humandb/{{version}}_MT_ensGene.txt"
4+
source_url = "https://github.com/Miachol/ftp/blob/master/files/{{version}}_MT_ensGene.txt"
55
decompress = false
66
url_all_download = false
77
version_newest = "GRCh37"
@@ -12,7 +12,7 @@ make_dir = ["./"]
1212
bin_dir = ["./"]
1313

1414
[demo_2]
15-
source_url = "http://bioinfo.rjh.com.cn/download/annovarR/humandb/{{version}}_MT_ensGene.txt.gz"
15+
source_url = "https://github.com/Miachol/ftp/blob/master/files/{{version}}_MT_ensGene.txt.gz"
1616
url_all_download = false
1717
version_newest = "GRCh37"
1818
version_available = ["GRCh37"]
@@ -229,7 +229,7 @@ linux = "python setup.py install"
229229
mac = "python setup.py install"
230230

231231
[novoalign]
232-
source_url = ["http://bioinfo.rjh.com.cn/download/novocraft/novocraft{{version}}.tar.gz"]
232+
source_url = ["https://github.com/Miachol/novocraft_releases/raw/master/novocraft{{version}}.tar.gz"]
233233

234234
version_newest = "V3.07.01.Linux3.0"
235235

@@ -268,11 +268,11 @@ linux = "mkdir -p {{destdir}}/bin; fn=`ls -F |grep '*' | tr -d '*'`;cp $fn {{des
268268
mac = "mkdir -p {{destdir}}/bin; fn=`ls -F |grep '*' | tr -d '*'`;cp $fn {{destdir}}/bin"
269269

270270
[gatk]
271-
source_url = ["http://bioinfo.rjh.com.cn/download/gatk/gatk{{version}}.tar.gz"]
271+
source_url = ["https://github.com/Miachol/gatk_releases/raw/master/gatk{{version}}.tar.gz"]
272272

273-
version_newest = "3.7-0"
273+
version_newest = "3.8-0"
274274

275-
version_available = ["3.7-0", "3.7", "3.6", "3.5", "3.4-46"]
275+
version_available = ["3.8-0", "3.7-0", "3.7", "3.6", "3.5", "3.4-46"]
276276

277277
after_failure = "echo 'fail!'"
278278

@@ -287,7 +287,7 @@ linux = "mkdir -p {{destdir}}/bin; cp *.jar {{destdir}}/bin"
287287
mac = "mkdir -p {{destdir}}/bin; cp *.jar {{destdir}}/bin"
288288

289289
[mutect]
290-
source_url = ["http://bioinfo.rjh.com.cn/download/gatk/mutect{{version}}.zip"]
290+
source_url = ["https://github.com/Miachol/gatk_releases/raw/master/mutect{{version}}.zip"]
291291

292292
version_newest = "1.1.7"
293293

tests/testthat/test_utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ test_that("get.file.type", {
9999
})
100100

101101
test_that("download.file.custom", {
102-
url <- "http://bioinfo.rjh.com.cn/download/annovarR/humandb/GRCh37_MT_ensGene.txt"
102+
url <- "https://github.com/Miachol/ftp/blob/master/files/GRCh37_MT_ensGene.txt"
103103
destfile <- sprintf("%s/GRCh37", tempdir())
104104
x <- download.file.custom(url, destfile, quiet = T)
105105
expect_that(x, equals(0))

vignettes/BioInstaller.Rmd

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ download.dir <- sprintf('%s/demo_3', tempdir())
6161
install.bioinfo('demo', download.dir = download.dir,
6262
download.only = TRUE, verbose = TRUE)
6363
64-
# Set download.dir rrr destdir (destdir like /usr/local
64+
# Set download.dir and destdir (destdir like /usr/local
6565
# including bin, lib, include and others),
6666
# destdir will work if install step {{destdir}} be used
6767
download.dir <- sprintf('%s/demo_source', tempdir())
@@ -116,3 +116,13 @@ BioInstaller provide a `craw.all.version` function to try download all avaliable
116116
download.dir <- sprintf('%s/craw_all_versions', tempdir())
117117
craw.all.versions('demo', download.dir = download.dir)
118118
```
119+
120+
## Download ANNOVAR databases
121+
122+
```{r}
123+
download.dir <- sprintf('%s/ANNOVAR', tempdir())
124+
config.toml <- system.file("extdata", "databases/ANNOVAR.toml",
125+
package = "BioInstaller")
126+
install.bioinfo('raw_ucsc_refgene', download.dir = download.dir,
127+
nongithub.cfg = config.toml, extra.list = list(buildver = "hg19"))
128+
```

0 commit comments

Comments
 (0)