miga-base 0.4.3.0 → 0.5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/miga/cli.rb +43 -223
  4. data/lib/miga/cli/action/add.rb +91 -62
  5. data/lib/miga/cli/action/classify_wf.rb +97 -0
  6. data/lib/miga/cli/action/daemon.rb +14 -10
  7. data/lib/miga/cli/action/derep_wf.rb +95 -0
  8. data/lib/miga/cli/action/doctor.rb +83 -55
  9. data/lib/miga/cli/action/get.rb +68 -52
  10. data/lib/miga/cli/action/get_db.rb +206 -0
  11. data/lib/miga/cli/action/index_wf.rb +31 -0
  12. data/lib/miga/cli/action/init.rb +115 -190
  13. data/lib/miga/cli/action/init/daemon_helper.rb +124 -0
  14. data/lib/miga/cli/action/ls.rb +20 -11
  15. data/lib/miga/cli/action/ncbi_get.rb +199 -157
  16. data/lib/miga/cli/action/preproc_wf.rb +46 -0
  17. data/lib/miga/cli/action/quality_wf.rb +45 -0
  18. data/lib/miga/cli/action/stats.rb +147 -99
  19. data/lib/miga/cli/action/summary.rb +10 -4
  20. data/lib/miga/cli/action/tax_dist.rb +61 -46
  21. data/lib/miga/cli/action/tax_test.rb +46 -39
  22. data/lib/miga/cli/action/wf.rb +178 -0
  23. data/lib/miga/cli/base.rb +11 -0
  24. data/lib/miga/cli/objects_helper.rb +88 -0
  25. data/lib/miga/cli/opt_helper.rb +160 -0
  26. data/lib/miga/daemon.rb +7 -4
  27. data/lib/miga/dataset/base.rb +5 -5
  28. data/lib/miga/project/base.rb +4 -4
  29. data/lib/miga/project/result.rb +2 -1
  30. data/lib/miga/remote_dataset/base.rb +5 -5
  31. data/lib/miga/remote_dataset/download.rb +1 -1
  32. data/lib/miga/version.rb +3 -3
  33. data/scripts/cds.bash +3 -1
  34. data/scripts/essential_genes.bash +1 -0
  35. data/scripts/stats.bash +1 -1
  36. data/scripts/trimmed_fasta.bash +5 -3
  37. data/utils/distance/runner.rb +3 -0
  38. data/utils/distance/temporal.rb +10 -1
  39. data/utils/enveomics/Manifest/Tasks/fasta.json +5 -0
  40. data/utils/enveomics/Manifest/Tasks/sequence-identity.json +7 -0
  41. data/utils/enveomics/Scripts/BlastTab.addlen.rb +33 -31
  42. data/utils/enveomics/Scripts/FastA.tag.rb +42 -41
  43. data/utils/enveomics/Scripts/HMM.essential.rb +85 -55
  44. data/utils/enveomics/Scripts/HMM.haai.rb +29 -20
  45. data/utils/enveomics/Scripts/SRA.download.bash +1 -1
  46. data/utils/enveomics/Scripts/aai.rb +163 -128
  47. data/utils/enveomics/build_enveomics_r.bash +11 -10
  48. data/utils/enveomics/enveomics.R/DESCRIPTION +3 -2
  49. data/utils/enveomics/enveomics.R/R/autoprune.R +141 -107
  50. data/utils/enveomics/enveomics.R/R/barplot.R +105 -86
  51. data/utils/enveomics/enveomics.R/R/cliopts.R +131 -115
  52. data/utils/enveomics/enveomics.R/R/df2dist.R +144 -106
  53. data/utils/enveomics/enveomics.R/R/growthcurve.R +201 -133
  54. data/utils/enveomics/enveomics.R/R/recplot.R +350 -315
  55. data/utils/enveomics/enveomics.R/R/recplot2.R +1334 -914
  56. data/utils/enveomics/enveomics.R/R/tribs.R +521 -361
  57. data/utils/enveomics/enveomics.R/R/utils.R +31 -15
  58. data/utils/enveomics/enveomics.R/README.md +7 -0
  59. data/utils/enveomics/enveomics.R/man/cash-enve.GrowthCurve-method.Rd +17 -0
  60. data/utils/enveomics/enveomics.R/man/cash-enve.RecPlot2-method.Rd +17 -0
  61. data/utils/enveomics/enveomics.R/man/cash-enve.RecPlot2.Peak-method.Rd +17 -0
  62. data/utils/enveomics/enveomics.R/man/enve.GrowthCurve-class.Rd +16 -21
  63. data/utils/enveomics/enveomics.R/man/enve.TRIBS-class.Rd +31 -28
  64. data/utils/enveomics/enveomics.R/man/enve.TRIBS.merge.Rd +23 -19
  65. data/utils/enveomics/enveomics.R/man/enve.TRIBStest-class.Rd +36 -26
  66. data/utils/enveomics/enveomics.R/man/enve.__prune.iter.Rd +23 -24
  67. data/utils/enveomics/enveomics.R/man/enve.__prune.reduce.Rd +23 -24
  68. data/utils/enveomics/enveomics.R/man/enve.__tribs.Rd +32 -33
  69. data/utils/enveomics/enveomics.R/man/enve.barplot.Rd +91 -64
  70. data/utils/enveomics/enveomics.R/man/enve.cliopts.Rd +57 -37
  71. data/utils/enveomics/enveomics.R/man/enve.col.alpha.Rd +24 -19
  72. data/utils/enveomics/enveomics.R/man/enve.col2alpha.Rd +19 -18
  73. data/utils/enveomics/enveomics.R/man/enve.df2dist.Rd +39 -26
  74. data/utils/enveomics/enveomics.R/man/enve.df2dist.group.Rd +38 -25
  75. data/utils/enveomics/enveomics.R/man/enve.df2dist.list.Rd +40 -26
  76. data/utils/enveomics/enveomics.R/man/enve.growthcurve.Rd +67 -49
  77. data/utils/enveomics/enveomics.R/man/enve.prune.dist.Rd +37 -28
  78. data/utils/enveomics/enveomics.R/man/enve.recplot.Rd +122 -97
  79. data/utils/enveomics/enveomics.R/man/enve.recplot2-class.Rd +35 -31
  80. data/utils/enveomics/enveomics.R/man/enve.recplot2.ANIr.Rd +24 -23
  81. data/utils/enveomics/enveomics.R/man/enve.recplot2.Rd +68 -51
  82. data/utils/enveomics/enveomics.R/man/enve.recplot2.__counts.Rd +25 -24
  83. data/utils/enveomics/enveomics.R/man/enve.recplot2.__peakHist.Rd +21 -22
  84. data/utils/enveomics/enveomics.R/man/enve.recplot2.__whichClosestPeak.Rd +19 -20
  85. data/utils/enveomics/enveomics.R/man/enve.recplot2.changeCutoff.Rd +19 -18
  86. data/utils/enveomics/enveomics.R/man/enve.recplot2.compareIdentities.Rd +41 -32
  87. data/utils/enveomics/enveomics.R/man/enve.recplot2.coordinates.Rd +29 -24
  88. data/utils/enveomics/enveomics.R/man/enve.recplot2.corePeak.Rd +18 -18
  89. data/utils/enveomics/enveomics.R/man/enve.recplot2.extractWindows.Rd +40 -34
  90. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.Rd +36 -24
  91. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__em_e.Rd +19 -20
  92. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__em_m.Rd +19 -20
  93. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__emauto_one.Rd +27 -29
  94. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__mow_one.Rd +41 -42
  95. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__mower.Rd +17 -18
  96. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.em.Rd +43 -33
  97. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.emauto.Rd +36 -28
  98. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.mower.Rd +74 -56
  99. data/utils/enveomics/enveomics.R/man/enve.recplot2.peak-class.Rd +44 -31
  100. data/utils/enveomics/enveomics.R/man/enve.recplot2.seqdepth.Rd +27 -22
  101. data/utils/enveomics/enveomics.R/man/enve.recplot2.windowDepthThreshold.Rd +32 -26
  102. data/utils/enveomics/enveomics.R/man/enve.tribs.Rd +59 -44
  103. data/utils/enveomics/enveomics.R/man/enve.tribs.test.Rd +28 -21
  104. data/utils/enveomics/enveomics.R/man/enve.truncate.Rd +27 -22
  105. data/utils/enveomics/enveomics.R/man/plot.enve.GrowthCurve.Rd +63 -43
  106. data/utils/enveomics/enveomics.R/man/plot.enve.TRIBS.Rd +38 -29
  107. data/utils/enveomics/enveomics.R/man/plot.enve.TRIBStest.Rd +38 -30
  108. data/utils/enveomics/enveomics.R/man/plot.enve.recplot2.Rd +111 -83
  109. data/utils/enveomics/enveomics.R/man/summary.enve.GrowthCurve.Rd +19 -18
  110. data/utils/enveomics/enveomics.R/man/summary.enve.TRIBS.Rd +19 -18
  111. data/utils/enveomics/enveomics.R/man/summary.enve.TRIBStest.Rd +19 -18
  112. data/utils/find-medoid.R +3 -2
  113. data/utils/representatives.rb +5 -3
  114. data/utils/subclade/pipeline.rb +22 -11
  115. data/utils/subclade/runner.rb +5 -1
  116. data/utils/subclades-compile.rb +1 -1
  117. data/utils/subclades.R +9 -3
  118. metadata +15 -4
  119. data/utils/enveomics/enveomics.R/man/enveomics.R-package.Rd +0 -15
  120. data/utils/enveomics/enveomics.R/man/z$-methods.Rd +0 -26
@@ -1,26 +1,32 @@
1
- \name{enve.recplot2.windowDepthThreshold}
2
- \alias{enve.recplot2.windowDepthThreshold}
3
- \title{enve recplot2 windowDepthThreshold}
4
- \description{Identifies the threshold below which windows should be identified as
5
- variable or absent.}
6
- \usage{enve.recplot2.windowDepthThreshold(rp, peak, lower.tail = TRUE,
7
- significance = 0.05)}
8
- \arguments{
9
- \item{rp}{Recruitment plot, an `enve.RecPlot2` object.}
10
- \item{peak}{Peak, an `enve.RecPlot2.Peak` object. If list, it is assumed to be a
11
- list of `enve.RecPlot2.Peak` objects, in which case the core peak is
12
- used (see `enve.recplot2.corePeak`).}
13
- \item{lower.tail}{If FALSE, it returns windows significantly above the peak in
14
- sequencing depth.}
15
- \item{significance}{Significance threshold (alpha) to select windows.}
16
- }
17
-
18
- \value{Returns a float. The units are depth if the peaks were estimated in
19
- linear scale, or log-depth otherwise (`peak$log`).}
20
-
21
- \author{Luis M. Rodriguez-R [aut, cre]}
22
-
23
-
24
-
25
-
26
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/recplot2.R
3
+ \name{enve.recplot2.windowDepthThreshold}
4
+ \alias{enve.recplot2.windowDepthThreshold}
5
+ \title{Enveomics: Recruitment Plot (2) Window Depth Threshold}
6
+ \usage{
7
+ enve.recplot2.windowDepthThreshold(rp, peak, lower.tail = TRUE,
8
+ significance = 0.05)
9
+ }
10
+ \arguments{
11
+ \item{rp}{Recruitment plot, an \code{\link{enve.RecPlot2}} object.}
12
+
13
+ \item{peak}{Peak, an \code{\link{enve.RecPlot2.Peak}} object. If list, it is assumed to be a
14
+ list of \code{\link{enve.RecPlot2.Peak}} objects, in which case the core peak is
15
+ used (see \code{\link{enve.recplot2.corePeak}}).}
16
+
17
+ \item{lower.tail}{If \code{FALSE}, it returns windows significantly above the peak in
18
+ sequencing depth.}
19
+
20
+ \item{significance}{Significance threshold (alpha) to select windows.}
21
+ }
22
+ \value{
23
+ Returns a float. The units are depth if the peaks were estimated in
24
+ linear scale, or log-depth otherwise (\code{peak$log}).
25
+ }
26
+ \description{
27
+ Identifies the threshold below which windows should be identified as
28
+ variable or absent.
29
+ }
30
+ \author{
31
+ Luis M. Rodriguez-R [aut, cre]
32
+ }
@@ -1,44 +1,59 @@
1
- \name{enve.tribs}
2
- \alias{enve.tribs}
3
- \title{enve tribs}
4
- \description{Subsample any objects in "distance space" to reduce the effect of
5
- sample-clustering. This function was originally designed to subsample
6
- genomes in "phylogenetic distance space", a clear case of strong
7
- clustering bias in sampling, by Luis M. Rodriguez-R and Michael R
8
- Weigand.}
9
- \usage{enve.tribs(dist, selection = labels(dist), replicates = 1000,
10
- summary.fx = median, dist.method = "euclidean", subsamples = seq(0,
11
- 1, by = 0.01), dimensions = ceiling(length(selection) *
12
- 0.05), metaMDS.opts = list(), threads = 2, verbosity = 1,
13
- points, pre.tribs)}
14
- \arguments{
15
- \item{dist}{Distances as a `dist` object.}
16
- \item{selection}{Objects to include in the subsample. By default, all objects are
17
- selected.}
18
- \item{replicates}{Number of replications per point}
19
- \item{summary.fx}{Function to summarize the distance distributions in a given replicate. By
20
- default, the median distance is estimated.}
21
- \item{dist.method}{Distance method between random points and samples in the transformed
22
- space. See `dist`.}
23
- \item{subsamples}{Subsampling fractions}
24
- \item{dimensions}{Dimensions to use in the NMDS. By default, 5\% of the selection length.}
25
- \item{metaMDS.opts}{Any additional options to pass to metaMDS, as `list`.}
26
- \item{threads}{Number of threads to use.}
27
- \item{verbosity}{Verbosity. Use 0 to run quietly, increase for additional information.}
28
- \item{points}{Optional. If passed, the MDS step is skipped and this object is used
29
- instead. It can be the `$points` slot of class `metaMDS` (from `vegan`).
30
- It must be a matrix or matrix-coercible object, with samples as rows and
31
- dimensions as columns.}
32
- \item{pre.tribs}{Optional. If passed, the points are recovered from this object (except if
33
- `points` is also passed. This should be an `enve.TRIBS` object estimated
34
- on the same objects (the selection is unimportant).}
35
- }
36
-
37
- \value{Returns an `enve.TRIBS` object.}
38
-
39
- \author{Luis M. Rodriguez-R [aut, cre]}
40
-
41
-
42
-
43
-
44
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/tribs.R
3
+ \name{enve.tribs}
4
+ \alias{enve.tribs}
5
+ \title{Enveomics: TRIBS}
6
+ \usage{
7
+ enve.tribs(dist, selection = labels(dist), replicates = 1000,
8
+ summary.fx = median, dist.method = "euclidean", subsamples = seq(0,
9
+ 1, by = 0.01), dimensions = ceiling(length(selection) * 0.05),
10
+ metaMDS.opts = list(), threads = 2, verbosity = 1, points,
11
+ pre.tribs)
12
+ }
13
+ \arguments{
14
+ \item{dist}{Distances as a \code{dist} object.}
15
+
16
+ \item{selection}{Objects to include in the subsample. By default, all objects are
17
+ selected.}
18
+
19
+ \item{replicates}{Number of replications per point.}
20
+
21
+ \item{summary.fx}{Function to summarize the distance distributions in a given replicate. By
22
+ default, the median distance is estimated.}
23
+
24
+ \item{dist.method}{Distance method between random points and samples in the transformed
25
+ space. See \code{dist}.}
26
+
27
+ \item{subsamples}{Subsampling fractions.}
28
+
29
+ \item{dimensions}{Dimensions to use in the NMDS. By default, 5\% of the selection length.}
30
+
31
+ \item{metaMDS.opts}{Any additional options to pass to metaMDS, as \code{list}.}
32
+
33
+ \item{threads}{Number of threads to use.}
34
+
35
+ \item{verbosity}{Verbosity. Use 0 to run quietly, increase for additional information.}
36
+
37
+ \item{points}{Optional. If passed, the MDS step is skipped and this object is used
38
+ instead. It can be the \code{$points} slot of class \code{metaMDS}
39
+ (from \code{vegan}).
40
+ It must be a matrix or matrix-coercible object, with samples as rows and
41
+ dimensions as columns.}
42
+
43
+ \item{pre.tribs}{Optional. If passed, the points are recovered from this object (except if
44
+ \code{points} is also passed. This should be an \code{\link{enve.TRIBS}} object
45
+ estimated on the same objects (the selection is unimportant).}
46
+ }
47
+ \value{
48
+ Returns an \code{\link{enve.TRIBS}} object.
49
+ }
50
+ \description{
51
+ Subsample any objects in "distance space" to reduce the effect of
52
+ sample-clustering. This function was originally designed to subsample
53
+ genomes in "phylogenetic distance space", a clear case of strong
54
+ clustering bias in sampling, by Luis M. Rodriguez-R and Michael R
55
+ Weigand.
56
+ }
57
+ \author{
58
+ Luis M. Rodriguez-R [aut, cre]
59
+ }
@@ -1,21 +1,28 @@
1
- \name{enve.tribs.test}
2
- \alias{enve.tribs.test}
3
- \title{enve tribs test}
4
- \description{Estimates the empirical difference between all the distances in a set of
5
- objects and a subset, together with its statistical significance.}
6
- \usage{enve.tribs.test(dist, selection, bins = 50, ...)}
7
- \arguments{
8
- \item{dist}{Distances as `dist` object.}
9
- \item{selection}{Selection defining the subset.}
10
- \item{bins}{Number of bins to evaluate in the range of distances.}
11
- \item{\dots}{Any other parameters supported by `enve.tribs`, except `subsamples`.}
12
- }
13
-
14
- \value{Returns an `enve.TRIBStest` object.}
15
-
16
- \author{Luis M. Rodriguez-R [aut, cre]}
17
-
18
-
19
-
20
-
21
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/tribs.R
3
+ \name{enve.tribs.test}
4
+ \alias{enve.tribs.test}
5
+ \title{Enveomics: TRIBS Test}
6
+ \usage{
7
+ enve.tribs.test(dist, selection, bins = 50, ...)
8
+ }
9
+ \arguments{
10
+ \item{dist}{Distances as \code{dist} object.}
11
+
12
+ \item{selection}{Selection defining the subset.}
13
+
14
+ \item{bins}{Number of bins to evaluate in the range of distances.}
15
+
16
+ \item{...}{Any other parameters supported by \code{\link{enve.tribs}},
17
+ except \code{subsamples}.}
18
+ }
19
+ \value{
20
+ Returns an \code{\link{enve.TRIBStest}} object.
21
+ }
22
+ \description{
23
+ Estimates the empirical difference between all the distances in a set of
24
+ objects and a subset, together with its statistical significance.
25
+ }
26
+ \author{
27
+ Luis M. Rodriguez-R [aut, cre]
28
+ }
@@ -1,22 +1,27 @@
1
- \name{enve.truncate}
2
- \alias{enve.truncate}
3
- \title{enve truncate}
4
- \description{Removes the `n` highest and lowest values from a vector, and applies a
5
- summary function. The value of `n` is determined such that the central
6
- range is used, corresponding to the `f` fraction of values.}
7
- \usage{enve.truncate(x, f = 0.95, FUN = mean)}
8
- \arguments{
9
- \item{x}{A vector of numbers.}
10
- \item{f}{The fraction of values to retain.}
11
- \item{FUN}{Summary function to apply to the vectors. To obtain the truncated
12
- vector itself, use `c`.}
13
- }
14
-
15
- \value{Returns the summary (`FUN`) of the truncated vector.}
16
-
17
- \author{Luis M. Rodriguez-R [aut, cre]}
18
-
19
-
20
-
21
-
22
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/utils.R
3
+ \name{enve.truncate}
4
+ \alias{enve.truncate}
5
+ \title{Enveomics: Truncate}
6
+ \usage{
7
+ enve.truncate(x, f = 0.95, FUN = mean)
8
+ }
9
+ \arguments{
10
+ \item{x}{A vector of numbers.}
11
+
12
+ \item{f}{The fraction of values to retain.}
13
+
14
+ \item{FUN}{Summary function to apply to the vectors. To obtain the
15
+ truncated vector itself, use \code{c}.}
16
+ }
17
+ \value{
18
+ Returns the summary \code{(FUN)} of the truncated vector.
19
+ }
20
+ \description{
21
+ Removes the \code{n} highest and lowest values from a vector, and applies
22
+ summary function. The value of \code{n} is determined such that the central
23
+ range is used, corresponding to the \code{f} fraction of values.
24
+ }
25
+ \author{
26
+ Luis M. Rodriguez-R [aut, cre]
27
+ }
@@ -1,43 +1,63 @@
1
- \name{plot.enve.GrowthCurve}
2
- \alias{plot.enve.GrowthCurve}
3
- \title{plot enve GrowthCurve}
4
- \description{Plots an `enve.GrowthCurve` object.}
5
- \usage{\method{plot}{enve.GrowthCurve}(x, col, pt.alpha = 0.9, ln.alpha = 1, ln.lwd = 1,
6
- ln.lty = 1, band.alpha = 0.4, band.density = NULL, band.angle = 45,
7
- xp.alpha = 0.5, xp.lwd = 1, xp.lty = 1, pch = 19, new = TRUE,
8
- legend = new, add.params = FALSE, ...)}
9
- \arguments{
10
- \item{x}{`enve.GrowthCurve` object to plot.}
11
- \item{col}{Base colors to use for the different samples. Can be recycled. By
12
- default, grey for one sample or rainbow colors for more than one.}
13
- \item{pt.alpha}{Color alpha for the observed data points, using `col` as a base.}
14
- \item{ln.alpha}{Color alpha for the fitted growth curve, using `col` as a base.}
15
- \item{ln.lwd}{Line width for the fitted curve.}
16
- \item{ln.lty}{Line type for the fitted curve.}
17
- \item{band.alpha}{Color alpha for the confidence interval band of the fitted growth curve,
18
- using `col` as a base.}
19
- \item{band.density}{Density of the filling pattern in the interval band. If NULL, a solid
20
- color is used.}
21
- \item{band.angle}{Angle of the density filling pattern in the interval band. Ignored if
22
- `band.density` is NULL.}
23
- \item{xp.alpha}{Color alpha for the line connecting individual experiments, using `col`
24
- as a base.}
25
- \item{xp.lwd}{Width of line for the experiments.}
26
- \item{xp.lty}{Type of line for the experiments.}
27
- \item{pch}{Point character for observed data points.}
28
- \item{new}{Should a new plot be generated? If FALSE, the existing canvas is used.}
29
- \item{legend}{Should the plot include a legend? If FALSE, no legend is added. If TRUE,
30
- a legend is added in the bottom-right corner. Otherwise, a legend is
31
- added in the position specified as `xy.coords`. }
32
- \item{add.params}{Should the legend include the parameters of the fitted model?}
33
- \item{\dots}{Any other graphic parameters.}
34
- }
35
-
36
-
37
-
38
- \author{Luis M. Rodriguez-R [aut, cre]}
39
-
40
-
41
-
42
-
43
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/growthcurve.R
3
+ \name{plot.enve.GrowthCurve}
4
+ \alias{plot.enve.GrowthCurve}
5
+ \title{Enveomics: Plot of Growth Curve}
6
+ \usage{
7
+ \method{plot}{enve.GrowthCurve}(x, col, pt.alpha = 0.9, ln.alpha = 1,
8
+ ln.lwd = 1, ln.lty = 1, band.alpha = 0.4, band.density = NULL,
9
+ band.angle = 45, xp.alpha = 0.5, xp.lwd = 1, xp.lty = 1,
10
+ pch = 19, new = TRUE, legend = new, add.params = FALSE, ...)
11
+ }
12
+ \arguments{
13
+ \item{x}{An \code{\link{enve.GrowthCurve}} object to plot.}
14
+
15
+ \item{col}{Base colors to use for the different samples. Can be recycled.
16
+ By default, grey for one sample or rainbow colors for more than one.}
17
+
18
+ \item{pt.alpha}{Color alpha for the observed data points, using \code{col}
19
+ as a base.}
20
+
21
+ \item{ln.alpha}{Color alpha for the fitted growth curve, using \code{col}
22
+ as a base.}
23
+
24
+ \item{ln.lwd}{Line width for the fitted curve.}
25
+
26
+ \item{ln.lty}{Line type for the fitted curve.}
27
+
28
+ \item{band.alpha}{Color alpha for the confidence interval band of the
29
+ fitted growth curve, using \code{col} as a base.}
30
+
31
+ \item{band.density}{Density of the filling pattern in the interval band.
32
+ If \code{NULL}, a solid color is used.}
33
+
34
+ \item{band.angle}{Angle of the density filling pattern in the interval
35
+ band. Ignored if \code{band.density} is \code{NULL}.}
36
+
37
+ \item{xp.alpha}{Color alpha for the line connecting individual experiments,
38
+ using \code{col} as a base.}
39
+
40
+ \item{xp.lwd}{Width of line for the experiments.}
41
+
42
+ \item{xp.lty}{Type of line for the experiments.}
43
+
44
+ \item{pch}{Point character for observed data points.}
45
+
46
+ \item{new}{Should a new plot be generated? If \code{FALSE}, the existing
47
+ canvas is used.}
48
+
49
+ \item{legend}{Should the plot include a legend? If \code{FALSE}, no legend
50
+ is added. If \code{TRUE}, a legend is added in the bottom-right corner.
51
+ Otherwise, a legend is added in the position specified as \code{xy.coords}.}
52
+
53
+ \item{add.params}{Should the legend include the parameters of the fitted
54
+ model?}
55
+
56
+ \item{...}{Any other graphic parameters.}
57
+ }
58
+ \description{
59
+ Plots an \code{\link{enve.GrowthCurve}} object.
60
+ }
61
+ \author{
62
+ Luis M. Rodriguez-R [aut, cre]
63
+ }
@@ -1,29 +1,38 @@
1
- \name{plot.enve.TRIBS}
2
- \alias{plot.enve.TRIBS}
3
- \title{plot enve TRIBS}
4
- \description{Plot an `enve.TRIBS` object.}
5
- \usage{\method{plot}{enve.TRIBS}(x, new = TRUE, type = c("boxplot", "points"),
6
- col = "#00000044", pt.cex = 1/2, pt.pch = 19, pt.col = col,
7
- ln.col = col, ...)}
8
- \arguments{
9
- \item{x}{`enve.TRIBS` object to plot.}
10
- \item{new}{Should a new canvas be drawn?}
11
- \item{type}{Type of plot. The 'points' plot shows all the replicates, the 'boxplot'
12
- plot represents the values found by `boxplot.stats` as areas, and plots
13
- the outliers as points.}
14
- \item{col}{Color of the areas and/or the points.}
15
- \item{pt.cex}{Size of the points.}
16
- \item{pt.pch}{Points character.}
17
- \item{pt.col}{Color of the points.}
18
- \item{ln.col}{Color of the lines.}
19
- \item{\dots}{Any additional parameters supported by `plot`.}
20
- }
21
-
22
-
23
-
24
- \author{Luis M. Rodriguez-R [aut, cre]}
25
-
26
-
27
-
28
-
29
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/tribs.R
3
+ \name{plot.enve.TRIBS}
4
+ \alias{plot.enve.TRIBS}
5
+ \title{Enveomics: TRIBS Plot}
6
+ \usage{
7
+ \method{plot}{enve.TRIBS}(x, new = TRUE, type = c("boxplot", "points"),
8
+ col = "#00000044", pt.cex = 1/2, pt.pch = 19, pt.col = col,
9
+ ln.col = col, ...)
10
+ }
11
+ \arguments{
12
+ \item{x}{\code{\link{enve.TRIBS}} object to plot.}
13
+
14
+ \item{new}{Should a new canvas be drawn?}
15
+
16
+ \item{type}{Type of plot. The \strong{points} plot shows all the replicates, the
17
+ \strong{boxplot} plot represents the values found by
18
+ \code{\link[grDevices]{boxplot.stats}}.
19
+ as areas, and plots the outliers as points.}
20
+
21
+ \item{col}{Color of the areas and/or the points.}
22
+
23
+ \item{pt.cex}{Size of the points.}
24
+
25
+ \item{pt.pch}{Points character.}
26
+
27
+ \item{pt.col}{Color of the points.}
28
+
29
+ \item{ln.col}{Color of the lines.}
30
+
31
+ \item{...}{Any additional parameters supported by \code{plot}.}
32
+ }
33
+ \description{
34
+ Plot an \code{\link{enve.TRIBS}} object.
35
+ }
36
+ \author{
37
+ Luis M. Rodriguez-R [aut, cre]
38
+ }
@@ -1,30 +1,38 @@
1
- \name{plot.enve.TRIBStest}
2
- \alias{plot.enve.TRIBStest}
3
- \title{plot enve TRIBStest}
4
- \description{Plots an `enve.TRIBStest` object.}
5
- \usage{\method{plot}{enve.TRIBStest}(x, type = c("overlap", "difference"), col = "#00000044",
6
- col1 = col, col2 = "#44001144", ylab = "Probability", xlim = range(attr(x,
7
- "dist.mids")), ylim = c(0, max(c(attr(x, "all.dist"),
8
- attr(x, "sel.dist")))), ...)}
9
- \arguments{
10
- \item{x}{`enve.TRIBStest` object to plot.}
11
- \item{type}{What to plot. 'overlap' generates a plot of the two contrasting empirical
12
- PDFs (to compare against each other), 'difference' produces a plot of the
13
- differences between the empirical PDFs (to compare against zero).}
14
- \item{col}{Main color of the plot if type='difference'.}
15
- \item{col1}{First color of the plot if type='overlap'.}
16
- \item{col2}{Second color of the plot if type='overlap'.}
17
- \item{ylab}{Y-axis label.}
18
- \item{xlim}{X-axis limits.}
19
- \item{ylim}{Y-axis limits.}
20
- \item{\dots}{Any other graphical arguments.}
21
- }
22
-
23
-
24
-
25
- \author{Luis M. Rodriguez-R [aut, cre]}
26
-
27
-
28
-
29
-
30
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/tribs.R
3
+ \name{plot.enve.TRIBStest}
4
+ \alias{plot.enve.TRIBStest}
5
+ \title{Enveomics: TRIBS Plot Test}
6
+ \usage{
7
+ \method{plot}{enve.TRIBStest}(x, type = c("overlap", "difference"),
8
+ col = "#00000044", col1 = col, col2 = "#44001144",
9
+ ylab = "Probability", xlim = range(attr(x, "dist.mids")),
10
+ ylim = c(0, max(c(attr(x, "all.dist"), attr(x, "sel.dist")))), ...)
11
+ }
12
+ \arguments{
13
+ \item{x}{\code{\link{enve.TRIBStest}} object to plot.}
14
+
15
+ \item{type}{What to plot. \code{overlap} generates a plot of the two contrasting empirical
16
+ PDFs (to compare against each other), \code{difference} produces a plot of the
17
+ differences between the empirical PDFs (to compare against zero).}
18
+
19
+ \item{col}{Main color of the plot if type=\code{difference}.}
20
+
21
+ \item{col1}{First color of the plot if type=\code{overlap}.}
22
+
23
+ \item{col2}{Second color of the plot if type=\code{overlap}.}
24
+
25
+ \item{ylab}{Y-axis label.}
26
+
27
+ \item{xlim}{X-axis limits.}
28
+
29
+ \item{ylim}{Y-axis limits.}
30
+
31
+ \item{...}{Any other graphical arguments.}
32
+ }
33
+ \description{
34
+ Plots an \code{\link{enve.TRIBStest}} object.
35
+ }
36
+ \author{
37
+ Luis M. Rodriguez-R [aut, cre]
38
+ }