Skip to content

Commit 2078e98

Browse files
author
eric
committed
优化
1 parent ad39c84 commit 2078e98

File tree

3 files changed

+9
-36
lines changed

3 files changed

+9
-36
lines changed

README.md

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,19 @@
33

44
## 从 NCBI 下载数据
55
```
6-
cargo run --bin ncbi -- -h
7-
Compiling ncbi v0.1.0 (/Users/eric/kraken2-rust/ncbi)
8-
Finished dev [unoptimized + debuginfo] target(s) in 0.79s
9-
Running `target/debug/ncbi -h`
6+
$ ./ncbi -h
107
ncbi download resource
118
129
Usage: ncbi [OPTIONS]
1310
1411
Options:
15-
-l, --list 列出 NCBI 站点上的种类列表信息,实时拉取
16-
-d, --database <DATABASE> 构建数据库的目录 [default: lib]
17-
-g, --group <GROUP> 从 NCBI 站点上下载某个种类的数据信息,必须是列表中所列名称
18-
-c, --check-md5 <CHECK_MD5> 检查文件的 md5 [default: true] [possible values: true, false]
19-
-p, --parallel <PARALLEL> 下载时的并行大小 [default: 8]
20-
-h, --help Print help (see more with '--help')
21-
-V, --version Print version
22-
23-
```
24-
25-
### md5 文件校验
26-
```
27-
cargo run --bin ncbi_md5 -- -h
28-
Finished dev [unoptimized + debuginfo] target(s) in 0.07s
29-
Running `target/debug/ncbi_md5 -h`
30-
ncbi check genomics file md5sum
31-
32-
Usage: ncbi_md5 [OPTIONS]
33-
34-
Options:
35-
-d, --database <DATABASE> 数据库的路径 [default: lib]
36-
-g, --group <GROUP> 从 NCBI 站点上下载某个种类的数据信息,必须是列表中所列名称
37-
--delete 删除校验错误的文件
12+
-l, --list 列出 NCBI 站点上的种类列表信息,实时拉取
13+
-d, --database <DATABASE> 构建数据库的目录 [default: lib]
14+
-g, --group <GROUP> 从 NCBI 站点上下载某个种类的数据信息,必须是列表中所列名称,archaea,bacteria,fungi...
15+
-m, --md5 仅检查文件的 md5
16+
-t, --threads <THREADS> 下载时的并行大小 [default: 8]
3817
-h, --help Print help (see more with '--help')
3918
-V, --version Print version
19+
4020
```
21+

ncbi/Cargo.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
[package]
22
name = "ncbi"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

8-
[[bin]]
9-
name = "ncbi"
10-
path = "src/bin/ncbi.rs"
11-
12-
# [[bin]]
13-
# name = "ncbi_md5"
14-
# path = "src/bin/md5.rs"
15-
168
[dependencies]
179
reqwest = { version = "0.11", features = ["stream", "multipart", "gzip"] }
1810
tokio = { version = "1", features = ["full"] }
File renamed without changes.

0 commit comments

Comments
 (0)