miga-base 0.7.26.1 → 1.0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/lib/miga/_data/aai-intax.blast.tsv.gz +0 -0
  3. data/lib/miga/_data/aai-intax.diamond.tsv.gz +0 -0
  4. data/lib/miga/_data/aai-novel.blast.tsv.gz +0 -0
  5. data/lib/miga/_data/aai-novel.diamond.tsv.gz +0 -0
  6. data/lib/miga/cli/action/classify_wf.rb +2 -2
  7. data/lib/miga/cli/action/derep_wf.rb +1 -1
  8. data/lib/miga/cli/action/doctor.rb +57 -14
  9. data/lib/miga/cli/action/doctor/base.rb +47 -23
  10. data/lib/miga/cli/action/init.rb +11 -7
  11. data/lib/miga/cli/action/init/files_helper.rb +1 -0
  12. data/lib/miga/cli/action/ncbi_get.rb +3 -3
  13. data/lib/miga/cli/action/tax_dist.rb +2 -2
  14. data/lib/miga/cli/action/wf.rb +5 -4
  15. data/lib/miga/common.rb +1 -0
  16. data/lib/miga/daemon.rb +11 -4
  17. data/lib/miga/dataset/result.rb +10 -6
  18. data/lib/miga/json.rb +5 -4
  19. data/lib/miga/metadata.rb +5 -1
  20. data/lib/miga/parallel.rb +36 -0
  21. data/lib/miga/project.rb +8 -8
  22. data/lib/miga/project/base.rb +4 -4
  23. data/lib/miga/project/result.rb +2 -2
  24. data/lib/miga/sqlite.rb +10 -2
  25. data/lib/miga/version.rb +23 -9
  26. data/scripts/aai_distances.bash +16 -18
  27. data/scripts/ani_distances.bash +16 -17
  28. data/scripts/assembly.bash +31 -16
  29. data/scripts/haai_distances.bash +3 -27
  30. data/scripts/miga.bash +6 -4
  31. data/scripts/p.bash +1 -1
  32. data/scripts/read_quality.bash +9 -18
  33. data/scripts/trimmed_fasta.bash +14 -30
  34. data/scripts/trimmed_reads.bash +36 -36
  35. data/test/parallel_test.rb +31 -0
  36. data/test/project_test.rb +2 -1
  37. data/test/remote_dataset_test.rb +1 -1
  38. data/utils/distance/commands.rb +1 -0
  39. data/utils/distance/database.rb +0 -1
  40. data/utils/distance/runner.rb +2 -4
  41. data/utils/enveomics/Manifest/Tasks/fasta.json +39 -3
  42. data/utils/enveomics/Manifest/Tasks/fastq.json +50 -2
  43. data/utils/enveomics/Manifest/Tasks/mapping.json +70 -0
  44. data/utils/enveomics/Manifest/Tasks/other.json +77 -0
  45. data/utils/enveomics/Manifest/Tasks/sequence-identity.json +138 -1
  46. data/utils/enveomics/Manifest/categories.json +13 -4
  47. data/utils/enveomics/Scripts/Aln.cat.rb +206 -148
  48. data/utils/enveomics/Scripts/FastA.N50.pl +33 -29
  49. data/utils/enveomics/Scripts/FastA.fragment.rb +69 -61
  50. data/utils/enveomics/Scripts/FastA.sample.rb +61 -46
  51. data/utils/enveomics/Scripts/FastA.toFastQ.rb +69 -0
  52. data/utils/enveomics/Scripts/FastQ.maskQual.rb +89 -0
  53. data/utils/enveomics/Scripts/FastQ.tag.rb +59 -52
  54. data/utils/enveomics/Scripts/SRA.download.bash +6 -8
  55. data/utils/enveomics/Scripts/Table.prefScore.R +60 -0
  56. data/utils/enveomics/Scripts/aai.rb +3 -2
  57. data/utils/enveomics/Scripts/anir.rb +137 -0
  58. data/utils/enveomics/Scripts/lib/enveomics_rb/anir.rb +293 -0
  59. data/utils/enveomics/Scripts/lib/enveomics_rb/bm_set.rb +175 -0
  60. data/utils/enveomics/Scripts/lib/enveomics_rb/enveomics.rb +17 -17
  61. data/utils/enveomics/Scripts/lib/enveomics_rb/errors.rb +17 -0
  62. data/utils/enveomics/Scripts/lib/enveomics_rb/gmm_em.rb +30 -0
  63. data/utils/enveomics/Scripts/lib/enveomics_rb/match.rb +63 -0
  64. data/utils/enveomics/Scripts/lib/enveomics_rb/rbm.rb +49 -0
  65. data/utils/enveomics/Scripts/lib/enveomics_rb/stats.rb +3 -0
  66. data/utils/enveomics/Scripts/lib/enveomics_rb/stats/rand.rb +31 -0
  67. data/utils/enveomics/Scripts/lib/enveomics_rb/stats/sample.rb +152 -0
  68. data/utils/enveomics/Scripts/lib/enveomics_rb/utils.rb +73 -0
  69. data/utils/enveomics/Scripts/rbm-legacy.rb +172 -0
  70. data/utils/enveomics/Scripts/rbm.rb +87 -133
  71. data/utils/enveomics/Scripts/sam.filter.rb +148 -0
  72. data/utils/enveomics/enveomics.R/DESCRIPTION +2 -2
  73. data/utils/enveomics/enveomics.R/NAMESPACE +1 -1
  74. data/utils/enveomics/enveomics.R/R/prefscore.R +79 -0
  75. data/utils/enveomics/enveomics.R/R/utils.R +30 -0
  76. data/utils/enveomics/enveomics.R/README.md +1 -0
  77. data/utils/enveomics/enveomics.R/man/cash-enve.GrowthCurve-method.Rd +0 -1
  78. data/utils/enveomics/enveomics.R/man/cash-enve.RecPlot2-method.Rd +0 -1
  79. data/utils/enveomics/enveomics.R/man/cash-enve.RecPlot2.Peak-method.Rd +0 -1
  80. data/utils/enveomics/enveomics.R/man/enve.__tribs.Rd +10 -2
  81. data/utils/enveomics/enveomics.R/man/enve.barplot.Rd +16 -4
  82. data/utils/enveomics/enveomics.R/man/enve.cliopts.Rd +13 -3
  83. data/utils/enveomics/enveomics.R/man/enve.df2dist.Rd +8 -2
  84. data/utils/enveomics/enveomics.R/man/enve.df2dist.group.Rd +8 -2
  85. data/utils/enveomics/enveomics.R/man/enve.df2dist.list.Rd +9 -2
  86. data/utils/enveomics/enveomics.R/man/enve.growthcurve.Rd +13 -5
  87. data/utils/enveomics/enveomics.R/man/enve.prefscore.Rd +50 -0
  88. data/utils/enveomics/enveomics.R/man/enve.prune.dist.Rd +9 -2
  89. data/utils/enveomics/enveomics.R/man/enve.recplot.Rd +23 -6
  90. data/utils/enveomics/enveomics.R/man/enve.recplot2.Rd +13 -4
  91. data/utils/enveomics/enveomics.R/man/enve.recplot2.compareIdentities.Rd +8 -2
  92. data/utils/enveomics/enveomics.R/man/enve.recplot2.extractWindows.Rd +7 -2
  93. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__mow_one.Rd +14 -3
  94. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.em.Rd +10 -2
  95. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.emauto.Rd +8 -2
  96. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.mower.Rd +17 -9
  97. data/utils/enveomics/enveomics.R/man/enve.recplot2.windowDepthThreshold.Rd +6 -2
  98. data/utils/enveomics/enveomics.R/man/enve.selvector.Rd +23 -0
  99. data/utils/enveomics/enveomics.R/man/enve.tribs.Rd +14 -5
  100. data/utils/enveomics/enveomics.R/man/plot.enve.GrowthCurve.Rd +19 -4
  101. data/utils/enveomics/enveomics.R/man/plot.enve.TRIBS.Rd +11 -3
  102. data/utils/enveomics/enveomics.R/man/plot.enve.TRIBStest.Rd +11 -4
  103. data/utils/enveomics/enveomics.R/man/plot.enve.recplot2.Rd +26 -12
  104. data/utils/multitrim/Multitrim How-To.pdf +0 -0
  105. data/utils/multitrim/README.md +67 -0
  106. data/utils/multitrim/multitrim.py +1555 -0
  107. data/utils/multitrim/multitrim.yml +13 -0
  108. data/utils/requirements.txt +4 -3
  109. data/utils/subclade/pipeline.rb +2 -2
  110. metadata +35 -7
  111. data/utils/enveomics/Scripts/lib/enveomics_rb/stat.rb +0 -30
@@ -1,5 +1,5 @@
1
1
  Package: enveomics.R
2
- Version: 1.7.1
2
+ Version: 1.8.0
3
3
  Authors@R: c(person("Luis M.","Rodriguez-R",role=c("aut","cre"),
4
4
  email="lmrodriguezr@gmail.com"))
5
5
  Title: Various Utilities for Microbial Genomics and Metagenomics
@@ -28,4 +28,4 @@ Suggests:
28
28
  License: Artistic-2.0
29
29
  LazyData: yes
30
30
  Encoding: UTF-8
31
- RoxygenNote: 6.1.1
31
+ RoxygenNote: 7.0.2
@@ -36,4 +36,4 @@ export(
36
36
  enve.recplot2.compareIdentities,
37
37
  enve.recplot2.coordinates, enve.recplot2.seqdepth, enve.recplot2.ANIr,
38
38
  enve.growthcurve, plot.enve.GrowthCurve, summary.enve.GrowthCurve,
39
- enve.col2alpha, enve.truncate)
39
+ enve.col2alpha, enve.truncate, enve.selvector, enve.prefscore)
@@ -0,0 +1,79 @@
1
+ #' Enveomics: Pref Score
2
+ #'
3
+ #' Estimate preference score of species based on occupancy in biased sample sets
4
+ #'
5
+ #' @param x
6
+ #' Occupancy matrix (logical or numeric binary) with species as rows and samples
7
+ #' as columns
8
+ #' @param set
9
+ #' Vector indicating samples in the test set. It can be any selection vector:
10
+ #' boolean (same length as the number of columns in \code{x}), or numeric or
11
+ #' character vector with indexes of the \code{x} columns.
12
+ #' @param ignore
13
+ #' Vector indicating species to ignore. It can be any selection vector with
14
+ #' respect to the rows in \code{x} (see \code{set}).
15
+ #' @param signif.thr Absolute value of the significance threshold
16
+ #' @param plot Indicates if a plot should be generated
17
+ #' @param col.above Color for points significantly above zero
18
+ #' @param col.equal Color for points not significantly different from zero
19
+ #' @param col.below Color for points significantly below zero
20
+ #' @param ... Any additional parameters supported by \code{plot}
21
+ #'
22
+ #' @return Returns a named vector of preference scores.
23
+ #'
24
+ #' @author Luis M. Rodriguez-R [aut, cre]
25
+ #'
26
+ #' @export
27
+
28
+ enve.prefscore <- function
29
+ (
30
+ x,
31
+ set,
32
+ ignore = NULL,
33
+ signif.thr,
34
+ plot = TRUE,
35
+ col.above = rgb(148, 17, 0, maxColorValue = 255),
36
+ col.equal = rgb(189, 189, 189, maxColorValue = 255),
37
+ col.below = rgb(47, 84, 150, maxColorValue = 255),
38
+ ...
39
+ ) {
40
+ # Normalize classes and filter universe
41
+ x <- !!as.matrix(x)
42
+ if(is.null(colnames(x))) colnames(x) <- 1:ncol(x)
43
+ if(is.null(rownames(x))) rownames(x) <- 1:nrow(x)
44
+ set <- enve.selvector(set, colnames(x))
45
+ universe <- !enve.selvector(ignore, rownames(x))
46
+ x.u <- x[universe, ]
47
+ if(missing(signif.thr)) signif.thr <- 1 + 100 / length(universe)
48
+
49
+ # Base (null) probabilities
50
+ p_a <- (rowSums(x.u) + 1) / (ncol(x.u) + 2)
51
+ p_b <- (colSums(x.u) + 1) / (nrow(x.u) + 2)
52
+ p_p <- p_a %*% t(p_b)
53
+
54
+ # Set preference score
55
+ expected <- (rowSums(p_p[, set]) - rowSums(p_p[, !set])) / sum(p_p)
56
+ observed <- (rowSums(x.u[, set]) - rowSums(x.u[, !set])) / sum(x.u)
57
+ y <- observed / abs(expected)
58
+ names(y) <- rownames(x)[universe]
59
+ y.code <- cut(y, c(-Inf, -signif.thr, signif.thr, Inf), 1:3)
60
+
61
+ # Plot
62
+ if(plot) {
63
+ idx <- (1:nrow(x))[universe]
64
+ opts.def <- list(x = idx, y = y, ylim = c(-1, 1) * max(abs(y)),
65
+ xlab = 'Species', ylab = 'Preference score', xlim = c(0, nrow(x)+1),
66
+ col = c(col.above, col.equal, col.below)[y.code],
67
+ las = 1, xaxs = 'i', pch = 15)
68
+ opts <- list(...)
69
+ for(i in names(opts.def)) if(is.null(opts[[i]])) opts[[i]] <- opts.def[[i]]
70
+ do.call('plot', opts)
71
+ abline(h = 0, lty = 1, col = rgb(0, 0, 0, 1/4))
72
+ abline(h = c(-1, 1) * signif.thr, lty = 2, col = rgb(0, 0, 0, 1/4))
73
+ }
74
+
75
+ # Print and return
76
+ print(table(c(c('<', '=', '>')[y.code], rep('Tot', length(y.code)))))
77
+ cat('---------\n')
78
+ return(y)
79
+ }
@@ -48,3 +48,33 @@ enve.truncate <- function
48
48
  y <- sort(x)[ -c(seq(1, n), seq(length(x)+1-n, length(x))) ]
49
49
  return(FUN(y))
50
50
  }
51
+
52
+ #' Enveomics: Selection vector
53
+ #'
54
+ #' Normalizes a selection vector \code{sel} to a logical vector with indexes
55
+ #' from \code{dim.names}.
56
+ #'
57
+ #' @param sel A vector of numbers, characters, or booleans.
58
+ #' @param dim.names A vector of names from which to select.
59
+ #'
60
+ #' @return Returns a logical vector with the same length as \code{dim.name}.
61
+ #'
62
+ #' @author Luis M. Rodriguez-R [aut, cre]
63
+ #'
64
+ #' @export
65
+
66
+ enve.selvector <- function(sel, dim.names) {
67
+ if(is.logical(sel)) {
68
+ if(length(sel) != length(dim.names))
69
+ stop('sel is logical but differs in length from dim.names')
70
+ sel
71
+ } else if(is.numeric(sel)) {
72
+ if(max(sel) > length(dim.names))
73
+ stop('sel includes numeric index beyond the length of dim.names')
74
+ 1:length(dim.names) %in% sel
75
+ } else {
76
+ if(any(!sel %in% dim.names))
77
+ stop('sel includes character index missing from dim.names')
78
+ dim.names %in% sel
79
+ }
80
+ }
@@ -52,6 +52,7 @@ For additional information on recruitment plots, see the
52
52
  [Recruitment plots working document](https://github.com/lmrodriguezr/enveomics/blob/master/Docs/recplot2.md).
53
53
 
54
54
  ## Changelog
55
+ * 1.8.0: New functions `enve.selvector` and `enve.prefscore`.
55
56
  * 1.7.1: Improved efficiency of `enve.df2dist` about five-fold.
56
57
  * 1.7.0: Uniformized output for `enve.recplot2.extractWindows` and
57
58
  `enve.recplot2.coordinates` to ease automation. Thanks to Tomeu Viver and
@@ -1,6 +1,5 @@
1
1
  % Generated by roxygen2: do not edit by hand
2
2
  % Please edit documentation in R/growthcurve.R
3
- \docType{methods}
4
3
  \name{$,enve.GrowthCurve-method}
5
4
  \alias{$,enve.GrowthCurve-method}
6
5
  \title{Attribute accessor}
@@ -1,6 +1,5 @@
1
1
  % Generated by roxygen2: do not edit by hand
2
2
  % Please edit documentation in R/recplot2.R
3
- \docType{methods}
4
3
  \name{$,enve.RecPlot2-method}
5
4
  \alias{$,enve.RecPlot2-method}
6
5
  \title{Attribute accessor}
@@ -1,6 +1,5 @@
1
1
  % Generated by roxygen2: do not edit by hand
2
2
  % Please edit documentation in R/recplot2.R
3
- \docType{methods}
4
3
  \name{$,enve.RecPlot2.Peak-method}
5
4
  \alias{$,enve.RecPlot2.Peak-method}
6
5
  \title{Attribute accessor}
@@ -4,8 +4,16 @@
4
4
  \alias{enve.__tribs}
5
5
  \title{Enveomics: TRIBS - Internal Ancillary Function}
6
6
  \usage{
7
- enve.__tribs(rep, frx, selection, dimensions, dots, dist.method,
8
- summary.fx, dist)
7
+ enve.__tribs(
8
+ rep,
9
+ frx,
10
+ selection,
11
+ dimensions,
12
+ dots,
13
+ dist.method,
14
+ summary.fx,
15
+ dist
16
+ )
9
17
  }
10
18
  \arguments{
11
19
  \item{rep}{Replicates}
@@ -4,10 +4,22 @@
4
4
  \alias{enve.barplot}
5
5
  \title{Enveomics: Barplot}
6
6
  \usage{
7
- enve.barplot(x, sizes, top = 25, colors.per.group = 9,
8
- bars.width = 4, legend.ncol = 1, other.col = "#000000",
9
- add.trend = FALSE, organic.trend = FALSE, sort.by = median,
10
- min.report = 101, order = NULL, col, ...)
7
+ enve.barplot(
8
+ x,
9
+ sizes,
10
+ top = 25,
11
+ colors.per.group = 9,
12
+ bars.width = 4,
13
+ legend.ncol = 1,
14
+ other.col = "#000000",
15
+ add.trend = FALSE,
16
+ organic.trend = FALSE,
17
+ sort.by = median,
18
+ min.report = 101,
19
+ order = NULL,
20
+ col,
21
+ ...
22
+ )
11
23
  }
12
24
  \arguments{
13
25
  \item{x}{Can be either the input data or the path to the file containing
@@ -4,9 +4,19 @@
4
4
  \alias{enve.cliopts}
5
5
  \title{Enveomics: Cliopts}
6
6
  \usage{
7
- enve.cliopts(fx, rd_file, positional_arguments, usage, mandatory = c(),
8
- vectorize = c(), ignore = c(), number = c(), defaults = list(),
9
- o_desc = list(), p_desc = "")
7
+ enve.cliopts(
8
+ fx,
9
+ rd_file,
10
+ positional_arguments,
11
+ usage,
12
+ mandatory = c(),
13
+ vectorize = c(),
14
+ ignore = c(),
15
+ number = c(),
16
+ defaults = list(),
17
+ o_desc = list(),
18
+ p_desc = ""
19
+ )
10
20
  }
11
21
  \arguments{
12
22
  \item{fx}{Function for which the interface should be generated.}
@@ -4,8 +4,14 @@
4
4
  \alias{enve.df2dist}
5
5
  \title{Enveomics: Data Frame to Dist}
6
6
  \usage{
7
- enve.df2dist(x, obj1.index = 1, obj2.index = 2, dist.index = 3,
8
- default.d = NA, max.sim = 0)
7
+ enve.df2dist(
8
+ x,
9
+ obj1.index = 1,
10
+ obj2.index = 2,
11
+ dist.index = 3,
12
+ default.d = NA,
13
+ max.sim = 0
14
+ )
9
15
  }
10
16
  \arguments{
11
17
  \item{x}{A dataframe (or coercible object) with at least three columns:
@@ -4,8 +4,14 @@
4
4
  \alias{enve.df2dist.group}
5
5
  \title{Enveomics: Data Frame to Dist (Group)}
6
6
  \usage{
7
- enve.df2dist.group(x, obj1.index = 1, obj2.index = 2, dist.index = 3,
8
- summary = median, empty.rm = TRUE)
7
+ enve.df2dist.group(
8
+ x,
9
+ obj1.index = 1,
10
+ obj2.index = 2,
11
+ dist.index = 3,
12
+ summary = median,
13
+ empty.rm = TRUE
14
+ )
9
15
  }
10
16
  \arguments{
11
17
  \item{x}{A dataframe (or coercible object) with at least three columns:
@@ -4,8 +4,15 @@
4
4
  \alias{enve.df2dist.list}
5
5
  \title{Enveomics: Data Frame to Dist (List)}
6
6
  \usage{
7
- enve.df2dist.list(x, groups, obj1.index = 1, obj2.index = 2,
8
- dist.index = 3, empty.rm = TRUE, ...)
7
+ enve.df2dist.list(
8
+ x,
9
+ groups,
10
+ obj1.index = 1,
11
+ obj2.index = 2,
12
+ dist.index = 3,
13
+ empty.rm = TRUE,
14
+ ...
15
+ )
9
16
  }
10
17
  \arguments{
11
18
  \item{x}{A dataframe (or coercible object) with at least three columns:
@@ -4,11 +4,19 @@
4
4
  \alias{enve.growthcurve}
5
5
  \title{Enveomics: Growth Curve}
6
6
  \usage{
7
- enve.growthcurve(x, times = 1:nrow(x), triplicates = FALSE, design,
8
- new.times = seq(min(times), max(times), length.out = length(times) *
9
- 10), level = 0.95, interval = c("confidence", "prediction"),
10
- plot = TRUE, FUN = function(t, K, r, P0) K * P0 * exp(r * t)/(K + P0
11
- * (exp(r * t) - 1)), nls.opt = list(), ...)
7
+ enve.growthcurve(
8
+ x,
9
+ times = 1:nrow(x),
10
+ triplicates = FALSE,
11
+ design,
12
+ new.times = seq(min(times), max(times), length.out = length(times) * 10),
13
+ level = 0.95,
14
+ interval = c("confidence", "prediction"),
15
+ plot = TRUE,
16
+ FUN = function(t, K, r, P0) K * P0 * exp(r * t)/(K + P0 * (exp(r * t) - 1)),
17
+ nls.opt = list(),
18
+ ...
19
+ )
12
20
  }
13
21
  \arguments{
14
22
  \item{x}{Data frame (or coercible) containing the observed growth data
@@ -0,0 +1,50 @@
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/prefscore.R
3
+ \name{enve.prefscore}
4
+ \alias{enve.prefscore}
5
+ \title{Enveomics: Pref Score}
6
+ \usage{
7
+ enve.prefscore(
8
+ x,
9
+ set,
10
+ ignore = NULL,
11
+ signif.thr,
12
+ plot = TRUE,
13
+ col.above = rgb(148, 17, 0, maxColorValue = 255),
14
+ col.equal = rgb(189, 189, 189, maxColorValue = 255),
15
+ col.below = rgb(47, 84, 150, maxColorValue = 255),
16
+ ...
17
+ )
18
+ }
19
+ \arguments{
20
+ \item{x}{Occupancy matrix (logical or numeric binary) with species as rows and samples
21
+ as columns}
22
+
23
+ \item{set}{Vector indicating samples in the test set. It can be any selection vector:
24
+ boolean (same length as the number of columns in \code{x}), or numeric or
25
+ character vector with indexes of the \code{x} columns.}
26
+
27
+ \item{ignore}{Vector indicating species to ignore. It can be any selection vector with
28
+ respect to the rows in \code{x} (see \code{set}).}
29
+
30
+ \item{signif.thr}{Absolute value of the significance threshold}
31
+
32
+ \item{plot}{Indicates if a plot should be generated}
33
+
34
+ \item{col.above}{Color for points significantly above zero}
35
+
36
+ \item{col.equal}{Color for points not significantly different from zero}
37
+
38
+ \item{col.below}{Color for points significantly below zero}
39
+
40
+ \item{...}{Any additional parameters supported by \code{plot}}
41
+ }
42
+ \value{
43
+ Returns a named vector of preference scores.
44
+ }
45
+ \description{
46
+ Estimate preference score of species based on occupancy in biased sample sets
47
+ }
48
+ \author{
49
+ Luis M. Rodriguez-R [aut, cre]
50
+ }
@@ -4,8 +4,15 @@
4
4
  \alias{enve.prune.dist}
5
5
  \title{Enveomics: Prune Dist}
6
6
  \usage{
7
- enve.prune.dist(t, dist.quantile = 0.25, min_dist, quiet = FALSE,
8
- max_iters = 100, min_nodes_random = 40000, random_nodes_frx = 1)
7
+ enve.prune.dist(
8
+ t,
9
+ dist.quantile = 0.25,
10
+ min_dist,
11
+ quiet = FALSE,
12
+ max_iters = 100,
13
+ min_nodes_random = 40000,
14
+ random_nodes_frx = 1
15
+ )
9
16
  }
10
17
  \arguments{
11
18
  \item{t}{A \strong{phylo} object or a path to the Newick file.}
@@ -4,12 +4,29 @@
4
4
  \alias{enve.recplot}
5
5
  \title{Enveomics: Recruitment Plots}
6
6
  \usage{
7
- enve.recplot(prefix, id.min = NULL, id.max = NULL, id.binsize = NULL,
8
- id.splines = 0, id.metric = "id", id.summary = "sum",
9
- pos.min = 1, pos.max = NULL, pos.binsize = 1000, pos.splines = 0,
10
- rec.col1 = "white", rec.col2 = "black", main = NULL,
11
- contig.col = grey(0.85), ret.recplot = FALSE, ret.hist = FALSE,
12
- ret.mode = FALSE, id.cutoff = NULL, verbose = TRUE, ...)
7
+ enve.recplot(
8
+ prefix,
9
+ id.min = NULL,
10
+ id.max = NULL,
11
+ id.binsize = NULL,
12
+ id.splines = 0,
13
+ id.metric = "id",
14
+ id.summary = "sum",
15
+ pos.min = 1,
16
+ pos.max = NULL,
17
+ pos.binsize = 1000,
18
+ pos.splines = 0,
19
+ rec.col1 = "white",
20
+ rec.col2 = "black",
21
+ main = NULL,
22
+ contig.col = grey(0.85),
23
+ ret.recplot = FALSE,
24
+ ret.hist = FALSE,
25
+ ret.mode = FALSE,
26
+ id.cutoff = NULL,
27
+ verbose = TRUE,
28
+ ...
29
+ )
13
30
  }
14
31
  \arguments{
15
32
  \item{prefix}{Path to the prefix of the BlastTab.catsbj.pl output files. At
@@ -4,11 +4,20 @@
4
4
  \alias{enve.recplot2}
5
5
  \title{Enveomics: Recruitment Plot (2)}
6
6
  \usage{
7
- enve.recplot2(prefix, plot = TRUE, pos.breaks = 1000,
8
- pos.breaks.tsv = NA, id.breaks = 60, id.free.range = FALSE,
7
+ enve.recplot2(
8
+ prefix,
9
+ plot = TRUE,
10
+ pos.breaks = 1000,
11
+ pos.breaks.tsv = NA,
12
+ id.breaks = 60,
13
+ id.free.range = FALSE,
9
14
  id.metric = c("identity", "corrected identity", "bit score"),
10
- id.summary = sum, id.cutoff = 95, threads = 2, verbose = TRUE,
11
- ...)
15
+ id.summary = sum,
16
+ id.cutoff = 95,
17
+ threads = 2,
18
+ verbose = TRUE,
19
+ ...
20
+ )
12
21
  }
13
22
  \arguments{
14
23
  \item{prefix}{Path to the prefix of the \code{BlastTab.catsbj.pl} output files. At