miga-base 0.4.3.0 → 0.5.0.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 (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,41 +1,45 @@
1
- \name{enve.RecPlot2-class}
2
- \Rdversion{1.1}
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/recplot2.R
3
3
  \docType{class}
4
+ \name{enve.RecPlot2-class}
4
5
  \alias{enve.RecPlot2-class}
5
6
  \alias{enve.RecPlot2}
6
- %% \alias{$}
7
-
8
- \title{enve.RecPlot2 S4 class}
9
- \description{Enve-omics representation of Recruitment plots. This object can
10
- be produced by `enve.recplot2` and supports S4 method plot.}
11
- \section{Objects from the Class}{Objects can be created by calls of the form \code{new(enve.RecPlot2 ...)}}
12
- \section{Slots}{
13
- \describe{
14
- \item{\code{counts}:}{(\code{matrix}) Counts as a two-dimensional histogram.}
15
- \item{\code{pos.counts.in}:}{(\code{numeric}) Counts of in-group hits per position bin.}
16
- \item{\code{pos.counts.out}:}{(\code{numeric}) Counts of out-group hits per position bin.}
17
- \item{\code{id.counts}:}{(\code{numeric}) Counts per ID bin.}
18
- \item{\code{id.breaks}:}{(\code{numeric}) Breaks of identity bins.}
19
- \item{\code{pos.breaks}:}{(\code{numeric}) Breaks of position bins.}
20
- \item{\code{pos.names}:}{(\code{character}) Names of the position bins.}
21
- \item{\code{seq.breaks}:}{(\code{numeric}) Breaks of input sequences.}
22
- \item{\code{peaks}:}{(\code{list}) Peaks identified in the recplot.
23
- Limits of the subject sequences after concatenation.}
24
- \item{\code{seq.names}:}{(\code{character}) Names of the subject sequences.}
25
- \item{\code{id.metric}:}{(\code{character}) Metric used as 'identity'.}
26
- \item{\code{id.ingroup}:}{(\code{logical}) Identity bins considered in-group.}
27
- \item{\code{call}:}{(\code{call}) Call producing this object.}
28
- }
29
- }
30
- \section{Methods}{
31
- \describe{
32
- \item{$}{\code{signature(x = "enve.RecPlot2")}: ... }
33
- }
7
+ \title{Enveomics: Recruitment Plot (2) - S4 Class}
8
+ \description{
9
+ Enve-omics representation of Recruitment plots. This object can
10
+ be produced by \code{\link{enve.recplot2}} and supports S4 method plot.
34
11
  }
12
+ \section{Slots}{
13
+
14
+ \describe{
15
+ \item{\code{counts}}{\code{(matrix)} Counts as a two-dimensional histogram.}
16
+
17
+ \item{\code{pos.counts.in}}{\code{(numeric)} Counts of in-group hits per position bin.}
35
18
 
36
- \author{Luis M. Rodriguez-R [aut, cre]}
19
+ \item{\code{pos.counts.out}}{\code{(numeric)} Counts of out-group hits per position bin.}
37
20
 
21
+ \item{\code{id.counts}}{\code{(numeric)} Counts per ID bin.}
38
22
 
23
+ \item{\code{id.breaks}}{\code{(numeric)} Breaks of identity bins.}
39
24
 
25
+ \item{\code{pos.breaks}}{\code{(numeric)} Breaks of position bins.}
40
26
 
27
+ \item{\code{pos.names}}{\code{(character)} Names of the position bins.}
41
28
 
29
+ \item{\code{seq.breaks}}{\code{(numeric)} Breaks of input sequences.}
30
+
31
+ \item{\code{peaks}}{\code{(list)} Peaks identified in the recplot.
32
+ Limits of the subject sequences after concatenation.}
33
+
34
+ \item{\code{seq.names}}{\code{(character}) Names of the subject sequences.}
35
+
36
+ \item{\code{id.metric}}{\code{(character}) Metric used as 'identity'.}
37
+
38
+ \item{\code{id.ingroup}}{\code{(logical}) Identity bins considered in-group.}
39
+
40
+ \item{\code{call}}{\code{(call)} Call producing this object.}
41
+ }}
42
+
43
+ \author{
44
+ Luis M. Rodriguez-R [aut, cre]
45
+ }
@@ -1,23 +1,24 @@
1
- \name{enve.recplot2.ANIr}
2
- \alias{enve.recplot2.ANIr}
3
- \title{enve recplot2 ANIr}
4
- \description{Estimate the Average Nucleotide Identity from reads (ANIr) from a
5
- recruitment plot}
6
- \usage{enve.recplot2.ANIr(x, range = c(0, Inf))}
7
- \arguments{
8
- \item{x}{`enve.RecPlot2` object.}
9
- \item{range}{Range of identities to be considered. By default, the full range
10
- is used (note that the upper boundary is `Inf` and not 100 because
11
- recruitment plots can also be built with bit-scores). To use only
12
- intra-population matches (with identities), use c(95,100). To use only
13
- inter-population values, use c(0,95).}
14
- }
15
-
16
-
17
-
18
- \author{Luis M. Rodriguez-R [aut, cre]}
19
-
20
-
21
-
22
-
23
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/recplot2.R
3
+ \name{enve.recplot2.ANIr}
4
+ \alias{enve.recplot2.ANIr}
5
+ \title{Enveomics: Recruitment Plot (2) ANI Estimate}
6
+ \usage{
7
+ enve.recplot2.ANIr(x, range = c(0, Inf))
8
+ }
9
+ \arguments{
10
+ \item{x}{\code{\link{enve.RecPlot2}} object.}
11
+
12
+ \item{range}{Range of identities to be considered. By default, the full range
13
+ is used (note that the upper boundary is \code{Inf} and not 100 because
14
+ recruitment plots can also be built with bit-scores). To use only
15
+ intra-population matches (with identities), use c(95,100). To use only
16
+ inter-population values, use c(0,95).}
17
+ }
18
+ \description{
19
+ Estimate the Average Nucleotide Identity from reads (ANIr) from a
20
+ recruitment plot.
21
+ }
22
+ \author{
23
+ Luis M. Rodriguez-R [aut, cre]
24
+ }
@@ -1,51 +1,68 @@
1
- \name{enve.recplot2}
2
- \alias{enve.recplot2}
3
- \title{enve recplot2}
4
- \description{Produces recruitment plots provided that BlastTab.catsbj.pl has
5
- been previously executed.}
6
- \usage{enve.recplot2(prefix, plot = TRUE, pos.breaks = 1000, pos.breaks.tsv = NA,
7
- id.breaks = 300, id.free.range = FALSE, id.metric = c("identity",
8
- "corrected identity", "bit score"), id.summary = sum,
9
- id.cutoff = 95, threads = 2, verbose = TRUE, ...)}
10
- \arguments{
11
- \item{prefix}{Path to the prefix of the BlastTab.catsbj.pl output files. At
12
- least the files .rec and .lim must exist with this prefix.}
13
- \item{plot}{Should the object be plotted?}
14
- \item{pos.breaks}{Breaks in the positions histogram. It can also be a vector of break
15
- points, and values outside the range are ignored. If zero (0), it
16
- uses the sequence breaks as defined in the .lim file, which means
17
- one bin per contig (or gene, if the mapping is agains genes). Ignored
18
- if `pos.breaks.tsv` is passed.}
19
- \item{pos.breaks.tsv}{Path to a list of (absolute) coordinates to use as position breaks.
20
- This tab-delimited file can be produced by `GFF.catsbj.pl`, and it
21
- must contain at least one column: coordinates of the break positions of
22
- each position bin. If it has a second column, this is used as the name
23
- of the position bin that ends at the given coordinate (the first row is
24
- ignored). Any additional columns are currently ignored. If NA,
25
- position bins are determined by `pos.breaks`.}
26
- \item{id.breaks}{Breaks in the identity histogram. It can also be a vector of break
27
- points, and values outside the range are ignored.}
28
- \item{id.free.range}{Indicates that the range should be freely set from the observed
29
- values. Otherwise, 70-100\% is included in the identity histogram
30
- (default).}
31
- \item{id.metric}{Metric of identity to be used (Y-axis). Corrected identity is only
32
- supported if the original BLAST file included sequence lengths.}
33
- \item{id.summary}{Function summarizing the identity bins. Other recommended options
34
- include: `median` to estimate the median instead of total bins, and
35
- `function(x) mlv(x,method='parzen')$M` to estimate the mode.}
36
- \item{id.cutoff}{Cutoff of identity metric above which the hits are considered
37
- 'in-group'. The 95\% identity corresponds to the expectation of
38
- ANI<95\% within species.}
39
- \item{threads}{Number of threads to use.}
40
- \item{verbose}{Indicates if the function should report the advance.}
41
- \item{\dots}{Any additional parameters supported by `plot.enve.RecPlot2`.}
42
- }
43
-
44
- \value{Returns an object of class `enve.RecPlot2`.}
45
-
46
- \author{Luis M. Rodriguez-R [aut, cre]}
47
-
48
-
49
-
50
-
51
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/recplot2.R
3
+ \name{enve.recplot2}
4
+ \alias{enve.recplot2}
5
+ \title{Enveomics: Recruitment Plot (2)}
6
+ \usage{
7
+ enve.recplot2(prefix, plot = TRUE, pos.breaks = 1000,
8
+ pos.breaks.tsv = NA, id.breaks = 60, id.free.range = FALSE,
9
+ id.metric = c("identity", "corrected identity", "bit score"),
10
+ id.summary = sum, id.cutoff = 95, threads = 2, verbose = TRUE,
11
+ ...)
12
+ }
13
+ \arguments{
14
+ \item{prefix}{Path to the prefix of the \code{BlastTab.catsbj.pl} output files. At
15
+ least the files .rec and .lim must exist with this prefix.}
16
+
17
+ \item{plot}{Should the object be plotted?}
18
+
19
+ \item{pos.breaks}{Breaks in the positions histogram. It can also be a vector of break
20
+ points, and values outside the range are ignored. If zero (0), it
21
+ uses the sequence breaks as defined in the .lim file, which means
22
+ one bin per contig (or gene, if the mapping is agains genes). Ignored
23
+ if `pos.breaks.tsv` is passed.}
24
+
25
+ \item{pos.breaks.tsv}{Path to a list of (absolute) coordinates to use as position breaks.
26
+ This tab-delimited file can be produced by \code{GFF.catsbj.pl}, and it
27
+ must contain at least one column: coordinates of the break positions of
28
+ each position bin. If it has a second column, this is used as the name
29
+ of the position bin that ends at the given coordinate (the first row is
30
+ ignored). Any additional columns are currently ignored. If \code{NA},
31
+ position bins are determined by \code{pos.breaks}.}
32
+
33
+ \item{id.breaks}{Breaks in the identity histogram. It can also be a vector of break
34
+ points, and values outside the range are ignored.}
35
+
36
+ \item{id.free.range}{Indicates that the range should be freely set from the observed
37
+ values. Otherwise, 70-100\% is included in the identity histogram
38
+ (default).}
39
+
40
+ \item{id.metric}{Metric of identity to be used (Y-axis). Corrected identity is only
41
+ supported if the original BLAST file included sequence lengths.}
42
+
43
+ \item{id.summary}{Function summarizing the identity bins. Other recommended options
44
+ include: \code{median} to estimate the median instead of total bins, and
45
+ \code{function(x) mlv(x,method='parzen')$M} to estimate the mode.}
46
+
47
+ \item{id.cutoff}{Cutoff of identity metric above which the hits are considered
48
+ \code{in-group}. The 95\% identity corresponds to the expectation of
49
+ ANI<95\% within species.}
50
+
51
+ \item{threads}{Number of threads to use.}
52
+
53
+ \item{verbose}{Indicates if the function should report the advance.}
54
+
55
+ \item{...}{Any additional parameters supported by \code{\link{plot.enve.RecPlot2}}.}
56
+ }
57
+ \value{
58
+ Returns an object of class \code{\link{enve.RecPlot2}}.
59
+ }
60
+ \description{
61
+ Produces recruitment plots provided that \code{BlastTab.catsbj.pl} has
62
+ been previously executed.
63
+ }
64
+ \author{
65
+ Luis M. Rodriguez-R [aut, cre]
66
+
67
+ Kenji Gerhardt [aut]
68
+ }
@@ -1,24 +1,25 @@
1
- \name{enve.recplot2.__counts}
2
- \alias{enve.recplot2.__counts}
3
- \title{enve recplot2 counts}
4
- \description{Internal ancilliary function (see `enve.recplot2`).}
5
- \usage{enve.recplot2.__counts(x, pos.breaks, id.breaks, rec.idcol)}
6
- \arguments{
7
- \item{x}{
8
- }
9
- \item{pos.breaks}{
10
- }
11
- \item{id.breaks}{
12
- }
13
- \item{rec.idcol}{
14
- }
15
- }
16
-
17
-
18
-
19
- \author{Luis M. Rodriguez-R [aut, cre]}
20
-
21
-
22
-
23
-
24
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/recplot2.R
3
+ \name{enve.recplot2.__counts}
4
+ \alias{enve.recplot2.__counts}
5
+ \title{Enveomics: Recruitment Plot (2) Internal Ancillary Function}
6
+ \usage{
7
+ enve.recplot2.__counts(x, pos.breaks, id.breaks, rec.idcol)
8
+ }
9
+ \arguments{
10
+ \item{x}{\code{\link{enve.RecPlot2}} object}
11
+
12
+ \item{pos.breaks}{Position breaks}
13
+
14
+ \item{id.breaks}{Identity breaks}
15
+
16
+ \item{rec.idcol}{Identity column to use}
17
+ }
18
+ \description{
19
+ Internal ancillary function (see \code{\link{enve.recplot2}}).
20
+ }
21
+ \author{
22
+ Luis M. Rodriguez-R [aut, cre]
23
+
24
+ Kenji Gerhardt [aut]
25
+ }
@@ -1,22 +1,21 @@
1
- \name{enve.recplot2.__peakHist}
2
- \alias{enve.recplot2.__peakHist}
3
- \title{enve recplot2 peakHist}
4
- \description{Internal ancilliary function (see `enve.RecPlot2.Peak`).}
5
- \usage{enve.recplot2.__peakHist(x, mids, counts = TRUE)}
6
- \arguments{
7
- \item{x}{
8
- }
9
- \item{mids}{
10
- }
11
- \item{counts}{
12
- }
13
- }
14
-
15
-
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/recplot2.R
3
+ \name{enve.recplot2.__peakHist}
4
+ \alias{enve.recplot2.__peakHist}
5
+ \title{Enveomics: Recruitment Plot (2) Peak S4 Class - Internal Ancillary Function}
6
+ \usage{
7
+ enve.recplot2.__peakHist(x, mids, counts = TRUE)
8
+ }
9
+ \arguments{
10
+ \item{x}{\code{\link{enve.RecPlot2.Peak}} object}
11
+
12
+ \item{mids}{Midpoints}
13
+
14
+ \item{counts}{Counts}
15
+ }
16
+ \description{
17
+ Internal ancillary function (see \code{\link{enve.RecPlot2.Peak}}).
18
+ }
19
+ \author{
20
+ Luis M. Rodriguez-R [aut, cre]
21
+ }
@@ -1,20 +1,19 @@
1
- \name{enve.recplot2.__whichClosestPeak}
2
- \alias{enve.recplot2.__whichClosestPeak}
3
- \title{enve recplot2 whichClosestPeak}
4
- \description{Internal ancilliary function (see `enve.recplot2.findPeaks`).}
5
- \usage{enve.recplot2.__whichClosestPeak(peak, peaks)}
6
- \arguments{
7
- \item{peak}{
8
- }
9
- \item{peaks}{
10
- }
11
- }
12
-
13
-
14
-
15
- \author{Luis M. Rodriguez-R [aut, cre]}
16
-
17
-
18
-
19
-
20
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/recplot2.R
3
+ \name{enve.recplot2.__whichClosestPeak}
4
+ \alias{enve.recplot2.__whichClosestPeak}
5
+ \title{Enveomics: Recruitment Plot (2) Peak Finder - Internal Ancillary Function}
6
+ \usage{
7
+ enve.recplot2.__whichClosestPeak(peak, peaks)
8
+ }
9
+ \arguments{
10
+ \item{peak}{Query \code{\link{enve.RecPlot2.Peak}} object}
11
+
12
+ \item{peaks}{list of \code{\link{enve.RecPlot2.Peak}} objects}
13
+ }
14
+ \description{
15
+ Internal ancillary function (see \code{\link{enve.recplot2.findPeaks}}).
16
+ }
17
+ \author{
18
+ Luis M. Rodriguez-R [aut, cre]
19
+ }
@@ -1,18 +1,19 @@
1
- \name{enve.recplot2.changeCutoff}
2
- \alias{enve.recplot2.changeCutoff}
3
- \title{enve recplot2 changeCutoff}
4
- \description{Change the intra-species cutoff of an existing recruitment plot.}
5
- \usage{enve.recplot2.changeCutoff(rp, new.cutoff = 98)}
6
- \arguments{
7
- \item{rp}{enve.RecPlot2 object.}
8
- \item{new.cutoff}{New cutoff to use.}
9
- }
10
-
11
-
12
-
13
- \author{Luis M. Rodriguez-R [aut, cre]}
14
-
15
-
16
-
17
-
18
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/recplot2.R
3
+ \name{enve.recplot2.changeCutoff}
4
+ \alias{enve.recplot2.changeCutoff}
5
+ \title{Enveomics: Recruitment Plot (2) Change Cutoff}
6
+ \usage{
7
+ enve.recplot2.changeCutoff(rp, new.cutoff = 98)
8
+ }
9
+ \arguments{
10
+ \item{rp}{\code{\link{enve.RecPlot2}} object.}
11
+
12
+ \item{new.cutoff}{New cutoff to use.}
13
+ }
14
+ \description{
15
+ Change the intra-species cutoff of an existing recruitment plot.
16
+ }
17
+ \author{
18
+ Luis M. Rodriguez-R [aut, cre]
19
+ }
@@ -1,32 +1,41 @@
1
- \name{enve.recplot2.compareIdentities}
2
- \alias{enve.recplot2.compareIdentities}
3
- \title{enve recplot2 compareIdentities}
4
- \description{Compare the distribution of identities between two enve.RecPlot2 objects.}
5
- \usage{enve.recplot2.compareIdentities(x, y, method = "hellinger", smooth.par = NULL,
6
- pseudocounts = 0, max.deviation = 0.75)}
7
- \arguments{
8
- \item{x}{First enve.RecPlot2 object.}
9
- \item{y}{Second enve.RecPlot2 object.}
10
- \item{method}{Distance method to use. This should be (an unambiguous abbreviation of)
11
- one of:
12
- "hellinger" (Hellinger, 1090, doi:10.1515/crll.1909.136.210),
13
- "bhattacharyya" (Bhattacharyya, 1943, Bull. Calcutta Math. Soc. 35),
14
- "kl" or "kullback-leibler" (Kullback & Leibler, 1951,
15
- doi:10.1214/aoms/1177729694), or "euclidean".}
16
- \item{smooth.par}{Smoothing parameter for cubic spline smoothing. Use 0 for no smoothing.
17
- Use NULL to automatically determine this value using leave-one-out
18
- cross-validation (see `smooth.spline` parameter `spar`).}
19
- \item{pseudocounts}{Smoothing parameter for Laplace smoothing. Use 0 for no smoothing, or
20
- 1 for add-one smoothing.}
21
- \item{max.deviation}{Maximum mean deviation between identity breaks tolerated (as percent
22
- identity). Difference in number of id.breaks is never tolerated.}
23
- }
24
-
25
-
26
-
27
- \author{Luis M. Rodriguez-R [aut, cre]}
28
-
29
-
30
-
31
-
32
-
1
+ % Generated by roxygen2: do not edit by hand
2
+ % Please edit documentation in R/recplot2.R
3
+ \name{enve.recplot2.compareIdentities}
4
+ \alias{enve.recplot2.compareIdentities}
5
+ \title{Enveomics: Recruitment Plot (2) Compare Identities}
6
+ \usage{
7
+ enve.recplot2.compareIdentities(x, y, method = "hellinger",
8
+ smooth.par = NULL, pseudocounts = 0, max.deviation = 0.75)
9
+ }
10
+ \arguments{
11
+ \item{x}{First \code{\link{enve.RecPlot2}} object.}
12
+
13
+ \item{y}{Second \code{\link{enve.RecPlot2}} object.}
14
+
15
+ \item{method}{Distance method to use. This should be (an unambiguous abbreviation of)
16
+ one of:
17
+ \itemize{
18
+ \item{"hellinger" (\emph{Hellinger, 1090, doi:10.1515/crll.1909.136.210}),}
19
+ \item{"bhattacharyya" (\emph{Bhattacharyya, 1943, Bull. Calcutta Math. Soc. 35}),}
20
+ \item{"kl" or "kullback-leibler" (\emph{Kullback & Leibler, 1951,
21
+ doi:10.1214/aoms/1177729694}), or}
22
+ \item{"euclidean"}
23
+ }}
24
+
25
+ \item{smooth.par}{Smoothing parameter for cubic spline smoothing. Use 0 for no smoothing.
26
+ Use \code{NULL} to automatically determine this value using leave-one-out
27
+ cross-validation (see \code{smooth.spline} parameter \code{spar}).}
28
+
29
+ \item{pseudocounts}{Smoothing parameter for Laplace smoothing. Use 0 for no smoothing, or
30
+ 1 for add-one smoothing.}
31
+
32
+ \item{max.deviation}{Maximum mean deviation between identity breaks tolerated (as percent
33
+ identity). Difference in number of \code{id.breaks} is never tolerated.}
34
+ }
35
+ \description{
36
+ Compare the distribution of identities between two
37
+ \code{\link{enve.RecPlot2}} objects.
38
+ }
39
+ \author{
40
+ Luis M. Rodriguez-R [aut, cre]
41
+ }