You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//! -p, --paired-end The input reads are interleaved paired-end
19
-
//! -v, --verbose Print more status messages
20
-
//! -s, --snps INT Number of SNPs (point mutations) to include per read.
23
+
//! --verbose Print more status messages
24
+
//! --version Print the version of Fasten and exit
25
+
//! -s, --snps INT Maximum number of SNPs (point mutations) to include
26
+
//! per read.
21
27
//! -m, --mark lowercase all reads but uppercase the SNPs (not yet
22
28
//! implemented)
29
+
//!
23
30
//! ```
24
31
25
32
externcrate getopts;
@@ -37,14 +44,20 @@ use fasten::fasten_base_options;
37
44
use fasten::fasten_base_options_matches;
38
45
use fasten::logmsg;
39
46
47
+
use regex::Regex;
40
48
41
49
fnmain(){
42
50
letmut opts = fasten_base_options();
43
51
// Options specific to this script
44
-
opts.optopt("s","snps","Number of SNPs (point mutations) to include per read.","INT");
52
+
opts.optopt("s","snps","Maximum number of SNPs (point mutations) to include per read.","INT");
45
53
opts.optflag("m","mark","lowercase all reads but uppercase the SNPs (not yet implemented)");
46
54
47
-
let matches = fasten_base_options_matches("Mutates reads. There is no mutation model; only randomness.", opts);
55
+
let description = "Introduces point mutations randomly. There is no evolutionary model; multiple hits are allowed. Therefore, the number of SNPs through --snps is an upper limit."
56
+
.to_string();
57
+
let regex = Regex::new(r"(.{1,60}\s+)").unwrap();
58
+
let wrapped_description = regex.replace_all(&description,"$1\n");
59
+
60
+
let matches = fasten_base_options_matches(&wrapped_description, opts);
48
61
49
62
if matches.opt_present("paired-end"){
50
63
logmsg("WARNING: --paired-end is not utilized in this script");
0 commit comments