Skip to content

Commit b63759e

Browse files
committed
version 0.3
1 parent 20210ac commit b63759e

File tree

9 files changed

+52
-29
lines changed

9 files changed

+52
-29
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
[package]
2-
name = "yarcd"
2+
name = "yacrd"
33
version = "0.3.0"
44
authors = ["Pierre Marijon <[email protected]>"]
55

6+
exclude = ["image/*", "validation/*", "tests/*"]
7+
8+
description = "Using all-against-all read mapping, yacrd performs: computation of pile-up coverage for each read and detection of chimeras"
9+
#documentation = "https://github.com/natir/yacrd"
10+
homepage = "https://github.com/natir/yacrd"
11+
repository = "https://github.com/natir/yacrd"
12+
readme = "Readme.md"
13+
license = "MIT"
14+
keywords = ["bioinformatics", "chimera", "long-read"]
15+
16+
[badges]
17+
travis-ci = { repository = "natir/yacrd", branch = "master" }
18+
619
[dependencies]
7-
bio = "*"
20+
bio = "0.21"
821
csv = "1"
922
xz2 = "0.1"
1023
clap = "2.31.2"
@@ -14,3 +27,7 @@ flate2 = "1.0"
1427
rust-lzma = "0.2"
1528
lazy_static = "1.0"
1629
serde_derive = "1.0"
30+
31+
[[bin]]
32+
name = "yacrd"
33+
path = "src/main.rs"

Readme.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Yet Another Chimeric Read Detector for long reads
22

3+
[![Build Status](https://travis-ci.org/natir/yacrd.svg?branch=master)](https://travis-ci.org/natir/yacrd)
4+
35
![yacrd pipeline presentation](image/pipeline.svg)
46

57
Using all-against-all read mapping, yacrd performs:
@@ -21,7 +23,7 @@ DAStrim (from the [DASCRUBBER suite](https://github.com/thegenemyers/DASCRUBBER)
2123

2224
## Input
2325

24-
Any set of long reads (PacBio, Nanopore, anything that can be given to [https://github.com/lh3/minimap2](minimap2) ).
26+
Any set of long reads (PacBio, Nanopore, anything that can be given to [minimap2](https://github.com/lh3/minimap2) ).
2527
yacrd takes the resulting PAF (Pairwise Alignement Format) from minimap2 or MHAP file from some other long reads overlapper as input.
2628

2729
## Requirements
@@ -30,9 +32,17 @@ yacrd takes the resulting PAF (Pairwise Alignement Format) from minimap2 or MHAP
3032

3133
## Instalation
3234

35+
### With cargo
36+
37+
If you have a rust environment setup you can run :
38+
39+
```
40+
cargo install yacrd
41+
```
42+
3343
### With conda
3444

35-
yacrd are avaible in [bioconda channel](https://bioconda.github.io/)
45+
yacrd is avaible in [bioconda channel](https://bioconda.github.io/)
3646

3747
if bioconda channel is setup you can run :
3848

@@ -58,7 +68,7 @@ cargo install
5868
2)
5969

6070
```
61-
yacrd 0.3 Mew
71+
yacrd 0.3 Ninetales
6272
Pierre Marijon <[email protected]>
6373
Yet Another Chimeric Read Detector
6474
@@ -81,7 +91,7 @@ OPTIONS:
8191
Mapping input file in PAF or MHAP format (with .paf or .mhap extension), use - for read standard input (no
8292
compression allowed, paf format by default) [default: -]
8393
-o, --output <output>
84-
Path where yacrd report are write, use - for write in standard output same compression as input or use
94+
Path where yacrd report are writen, use - for write in standard output same compression as input or use
8595
--compression-out [default: -]
8696
-f, --filter <filter>...
8797
File containing reads that will be filtered (fasta|fastq|mhap|paf), new file are create like
@@ -91,7 +101,7 @@ OPTIONS:
91101
Overlap depth threshold below which a gap should be created [default: 0]
92102
93103
-n, --not-covered-threshold <not-covered-threshold>
94-
Coverage depth threshold above which a read are mark as not covered [default: 0.80]
104+
Coverage depth threshold above which a read are marked as not covered [default: 0.80]
95105
96106
--filtered-suffix <filtered-suffix>
97107
Change the suffix of file generate by filter option [default: _filtered]

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ use std::collections::HashSet;
5050

5151
fn main() {
5252
let matches = App::new("yacrd")
53-
.version("0.3 Mew")
53+
.version("0.3 Ninetales")
5454
.author("Pierre Marijon <[email protected]>")
5555
.about("Yet Another Chimeric Read Detector")
5656
.usage("yacrd [-i|--input] <input> [-o|--output] <output> [-f|--filter] <file1, file2, …>
@@ -75,7 +75,7 @@ fn main() {
7575
.display_order(2)
7676
.takes_value(true)
7777
.default_value("-")
78-
.help("Path where yacrd report are write, use - for write in standard output same compression as input or use --compression-out")
78+
.help("Path where yacrd report are writen, use - for write in standard output same compression as input or use --compression-out")
7979
)
8080
.arg(Arg::with_name("filter")
8181
.short("f")
@@ -107,7 +107,7 @@ fn main() {
107107
.takes_value(true)
108108
.default_value("0.80")
109109
.long("not-covered-threshold")
110-
.help("Coverage depth threshold above which a read are mark as not covered")
110+
.help("Coverage depth threshold above which a read are marked as not covered")
111111
)
112112
.arg(Arg::with_name("filtered-suffix")
113113
.display_order(7)

tests/data/test.yacrd

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/data/test.yacrd.gz

-110 Bytes
Binary file not shown.

tests/data/test_filtered.fasta

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/not_run.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SOFTWARE.
2222

2323
use std::process::Command;
2424

25-
static HELP_MESSAGE: &'static str = "yacrd 0.3 Mew
25+
static HELP_MESSAGE: &'static str = "yacrd 0.3 Ninetales
2626
Pierre Marijon <[email protected]>
2727
Yet Another Chimeric Read Detector
2828
@@ -45,7 +45,7 @@ OPTIONS:
4545
Mapping input file in PAF or MHAP format (with .paf or .mhap extension), use - for read standard input (no
4646
compression allowed, paf format by default) [default: -]
4747
-o, --output <output>
48-
Path where yacrd report are write, use - for write in standard output same compression as input or use
48+
Path where yacrd report are writen, use - for write in standard output same compression as input or use
4949
--compression-out [default: -]
5050
-f, --filter <filter>...
5151
File containing reads that will be filtered (fasta|fastq|mhap|paf), new file are create like
@@ -55,7 +55,7 @@ OPTIONS:
5555
Overlap depth threshold below which a gap should be created [default: 0]
5656
5757
-n, --not-covered-threshold <not-covered-threshold>
58-
Coverage depth threshold above which a read are mark as not covered [default: 0.80]
58+
Coverage depth threshold above which a read are marked as not covered [default: 0.80]
5959
6060
--filtered-suffix <filtered-suffix>
6161
Change the suffix of file generate by filter option [default: _filtered]
@@ -72,18 +72,18 @@ mod not_run {
7272

7373
#[test]
7474
fn version() {
75-
let output = Command::new("./target/debug/yarcd")
75+
let output = Command::new("./target/debug/yacrd")
7676
.arg("-V")
7777
.output()
7878
.expect("Could not run yacrd");
7979

80-
assert_eq!(output.stdout, b"yacrd 0.3 Mew\n");
80+
assert_eq!(output.stdout, b"yacrd 0.3 Ninetales\n");
8181
println!("{:?}", output);
8282
}
8383

8484
#[test]
8585
fn help() {
86-
let output = Command::new("./target/debug/yarcd")
86+
let output = Command::new("./target/debug/yacrd")
8787
.arg("-h")
8888
.output()
8989
.expect("Could not run yacrd");
@@ -93,7 +93,7 @@ mod not_run {
9393

9494
#[test]
9595
fn no_argument() {
96-
let output = Command::new("./target/debug/yarcd")
96+
let output = Command::new("./target/debug/yacrd")
9797
.output()
9898
.expect("Could not run yacrd");
9999

tests/realistic_scenario.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mod realistic_scenario {
3535

3636
#[test]
3737
fn default() {
38-
let child = Command::new("./target/debug/yarcd")
38+
let child = Command::new("./target/debug/yacrd")
3939
.stdin(Stdio::from(fs::File::open("tests/data/test.paf").unwrap()))
4040
.stdout(Stdio::piped())
4141
.spawn()
@@ -49,7 +49,7 @@ mod realistic_scenario {
4949

5050
#[test]
5151
fn file_mhap_gz_out_same_paf_default_default() {
52-
let child = Command::new("./target/debug/yarcd")
52+
let child = Command::new("./target/debug/yacrd")
5353
.arg("-i")
5454
.arg("tests/data/test.mhap.gz")
5555
.arg("-F")
@@ -81,7 +81,7 @@ Chimeric 1 10000 2000,0,2000;1000,4500,5500;2000,8000,10000
8181
";
8282
let good: HashSet<&str> = expected.split("\n").collect();
8383

84-
Command::new("./target/debug/yarcd")
84+
Command::new("./target/debug/yacrd")
8585
.arg("-i")
8686
.arg("-")
8787
.arg("-o")
@@ -92,7 +92,7 @@ Chimeric 1 10000 2000,0,2000;1000,4500,5500;2000,8000,10000
9292
fs::File::open("tests/data/test_cov_1.paf").unwrap(),
9393
))
9494
.stdout(Stdio::piped())
95-
.spawn()
95+
.output()
9696
.expect("Could ot run yacrd");
9797

9898
assert_eq!(
@@ -113,7 +113,7 @@ Not_covered 3 10000 5500,4500,10000
113113
";
114114
let good: HashSet<&str> = expected.split("\n").collect();
115115

116-
let child = Command::new("./target/debug/yarcd")
116+
let child = Command::new("./target/debug/yacrd")
117117
.arg("-i")
118118
.arg("tests/data/test.paf.bz2")
119119
.arg("-o")
@@ -169,7 +169,7 @@ Chimeric 1 10000 2000,0,2000;1000,4500,5500;2000,8000,10000
169169

170170
let good: HashSet<&str> = expected.split("\n").collect();
171171

172-
Command::new("./target/debug/yarcd")
172+
Command::new("./target/debug/yacrd")
173173
.arg("-i")
174174
.arg("tests/data/test_cov_1.mhap.xz")
175175
.arg("-o")
@@ -184,7 +184,7 @@ Chimeric 1 10000 2000,0,2000;1000,4500,5500;2000,8000,10000
184184
.arg("tests/data/test.fasta")
185185
.stdin(Stdio::piped())
186186
.stdout(Stdio::piped())
187-
.spawn()
187+
.output()
188188
.expect("Could not run yacrd");
189189

190190
{

0 commit comments

Comments
 (0)