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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/miga/cli.rb +43 -223
- data/lib/miga/cli/action/add.rb +91 -62
- data/lib/miga/cli/action/classify_wf.rb +97 -0
- data/lib/miga/cli/action/daemon.rb +14 -10
- data/lib/miga/cli/action/derep_wf.rb +95 -0
- data/lib/miga/cli/action/doctor.rb +83 -55
- data/lib/miga/cli/action/get.rb +68 -52
- data/lib/miga/cli/action/get_db.rb +206 -0
- data/lib/miga/cli/action/index_wf.rb +31 -0
- data/lib/miga/cli/action/init.rb +115 -190
- data/lib/miga/cli/action/init/daemon_helper.rb +124 -0
- data/lib/miga/cli/action/ls.rb +20 -11
- data/lib/miga/cli/action/ncbi_get.rb +199 -157
- data/lib/miga/cli/action/preproc_wf.rb +46 -0
- data/lib/miga/cli/action/quality_wf.rb +45 -0
- data/lib/miga/cli/action/stats.rb +147 -99
- data/lib/miga/cli/action/summary.rb +10 -4
- data/lib/miga/cli/action/tax_dist.rb +61 -46
- data/lib/miga/cli/action/tax_test.rb +46 -39
- data/lib/miga/cli/action/wf.rb +178 -0
- data/lib/miga/cli/base.rb +11 -0
- data/lib/miga/cli/objects_helper.rb +88 -0
- data/lib/miga/cli/opt_helper.rb +160 -0
- data/lib/miga/daemon.rb +7 -4
- data/lib/miga/dataset/base.rb +5 -5
- data/lib/miga/project/base.rb +4 -4
- data/lib/miga/project/result.rb +2 -1
- data/lib/miga/remote_dataset/base.rb +5 -5
- data/lib/miga/remote_dataset/download.rb +1 -1
- data/lib/miga/version.rb +3 -3
- data/scripts/cds.bash +3 -1
- data/scripts/essential_genes.bash +1 -0
- data/scripts/stats.bash +1 -1
- data/scripts/trimmed_fasta.bash +5 -3
- data/utils/distance/runner.rb +3 -0
- data/utils/distance/temporal.rb +10 -1
- data/utils/enveomics/Manifest/Tasks/fasta.json +5 -0
- data/utils/enveomics/Manifest/Tasks/sequence-identity.json +7 -0
- data/utils/enveomics/Scripts/BlastTab.addlen.rb +33 -31
- data/utils/enveomics/Scripts/FastA.tag.rb +42 -41
- data/utils/enveomics/Scripts/HMM.essential.rb +85 -55
- data/utils/enveomics/Scripts/HMM.haai.rb +29 -20
- data/utils/enveomics/Scripts/SRA.download.bash +1 -1
- data/utils/enveomics/Scripts/aai.rb +163 -128
- data/utils/enveomics/build_enveomics_r.bash +11 -10
- data/utils/enveomics/enveomics.R/DESCRIPTION +3 -2
- data/utils/enveomics/enveomics.R/R/autoprune.R +141 -107
- data/utils/enveomics/enveomics.R/R/barplot.R +105 -86
- data/utils/enveomics/enveomics.R/R/cliopts.R +131 -115
- data/utils/enveomics/enveomics.R/R/df2dist.R +144 -106
- data/utils/enveomics/enveomics.R/R/growthcurve.R +201 -133
- data/utils/enveomics/enveomics.R/R/recplot.R +350 -315
- data/utils/enveomics/enveomics.R/R/recplot2.R +1334 -914
- data/utils/enveomics/enveomics.R/R/tribs.R +521 -361
- data/utils/enveomics/enveomics.R/R/utils.R +31 -15
- data/utils/enveomics/enveomics.R/README.md +7 -0
- data/utils/enveomics/enveomics.R/man/cash-enve.GrowthCurve-method.Rd +17 -0
- data/utils/enveomics/enveomics.R/man/cash-enve.RecPlot2-method.Rd +17 -0
- data/utils/enveomics/enveomics.R/man/cash-enve.RecPlot2.Peak-method.Rd +17 -0
- data/utils/enveomics/enveomics.R/man/enve.GrowthCurve-class.Rd +16 -21
- data/utils/enveomics/enveomics.R/man/enve.TRIBS-class.Rd +31 -28
- data/utils/enveomics/enveomics.R/man/enve.TRIBS.merge.Rd +23 -19
- data/utils/enveomics/enveomics.R/man/enve.TRIBStest-class.Rd +36 -26
- data/utils/enveomics/enveomics.R/man/enve.__prune.iter.Rd +23 -24
- data/utils/enveomics/enveomics.R/man/enve.__prune.reduce.Rd +23 -24
- data/utils/enveomics/enveomics.R/man/enve.__tribs.Rd +32 -33
- data/utils/enveomics/enveomics.R/man/enve.barplot.Rd +91 -64
- data/utils/enveomics/enveomics.R/man/enve.cliopts.Rd +57 -37
- data/utils/enveomics/enveomics.R/man/enve.col.alpha.Rd +24 -19
- data/utils/enveomics/enveomics.R/man/enve.col2alpha.Rd +19 -18
- data/utils/enveomics/enveomics.R/man/enve.df2dist.Rd +39 -26
- data/utils/enveomics/enveomics.R/man/enve.df2dist.group.Rd +38 -25
- data/utils/enveomics/enveomics.R/man/enve.df2dist.list.Rd +40 -26
- data/utils/enveomics/enveomics.R/man/enve.growthcurve.Rd +67 -49
- data/utils/enveomics/enveomics.R/man/enve.prune.dist.Rd +37 -28
- data/utils/enveomics/enveomics.R/man/enve.recplot.Rd +122 -97
- data/utils/enveomics/enveomics.R/man/enve.recplot2-class.Rd +35 -31
- data/utils/enveomics/enveomics.R/man/enve.recplot2.ANIr.Rd +24 -23
- data/utils/enveomics/enveomics.R/man/enve.recplot2.Rd +68 -51
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__counts.Rd +25 -24
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__peakHist.Rd +21 -22
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__whichClosestPeak.Rd +19 -20
- data/utils/enveomics/enveomics.R/man/enve.recplot2.changeCutoff.Rd +19 -18
- data/utils/enveomics/enveomics.R/man/enve.recplot2.compareIdentities.Rd +41 -32
- data/utils/enveomics/enveomics.R/man/enve.recplot2.coordinates.Rd +29 -24
- data/utils/enveomics/enveomics.R/man/enve.recplot2.corePeak.Rd +18 -18
- data/utils/enveomics/enveomics.R/man/enve.recplot2.extractWindows.Rd +40 -34
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.Rd +36 -24
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__em_e.Rd +19 -20
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__em_m.Rd +19 -20
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__emauto_one.Rd +27 -29
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__mow_one.Rd +41 -42
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__mower.Rd +17 -18
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.em.Rd +43 -33
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.emauto.Rd +36 -28
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.mower.Rd +74 -56
- data/utils/enveomics/enveomics.R/man/enve.recplot2.peak-class.Rd +44 -31
- data/utils/enveomics/enveomics.R/man/enve.recplot2.seqdepth.Rd +27 -22
- data/utils/enveomics/enveomics.R/man/enve.recplot2.windowDepthThreshold.Rd +32 -26
- data/utils/enveomics/enveomics.R/man/enve.tribs.Rd +59 -44
- data/utils/enveomics/enveomics.R/man/enve.tribs.test.Rd +28 -21
- data/utils/enveomics/enveomics.R/man/enve.truncate.Rd +27 -22
- data/utils/enveomics/enveomics.R/man/plot.enve.GrowthCurve.Rd +63 -43
- data/utils/enveomics/enveomics.R/man/plot.enve.TRIBS.Rd +38 -29
- data/utils/enveomics/enveomics.R/man/plot.enve.TRIBStest.Rd +38 -30
- data/utils/enveomics/enveomics.R/man/plot.enve.recplot2.Rd +111 -83
- data/utils/enveomics/enveomics.R/man/summary.enve.GrowthCurve.Rd +19 -18
- data/utils/enveomics/enveomics.R/man/summary.enve.TRIBS.Rd +19 -18
- data/utils/enveomics/enveomics.R/man/summary.enve.TRIBStest.Rd +19 -18
- data/utils/find-medoid.R +3 -2
- data/utils/representatives.rb +5 -3
- data/utils/subclade/pipeline.rb +22 -11
- data/utils/subclade/runner.rb +5 -1
- data/utils/subclades-compile.rb +1 -1
- data/utils/subclades.R +9 -3
- metadata +15 -4
- data/utils/enveomics/enveomics.R/man/enveomics.R-package.Rd +0 -15
- data/utils/enveomics/enveomics.R/man/z$-methods.Rd +0 -26
@@ -1,26 +1,32 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
\
|
4
|
-
\
|
5
|
-
|
6
|
-
\usage{
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
|
-
|
2
|
-
|
3
|
-
\
|
4
|
-
\
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
\
|
15
|
-
|
16
|
-
|
17
|
-
selected.}
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
36
|
-
|
37
|
-
\
|
38
|
-
|
39
|
-
\
|
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
|
-
|
2
|
-
|
3
|
-
\
|
4
|
-
\
|
5
|
-
|
6
|
-
\usage{
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
}
|
13
|
-
|
14
|
-
\
|
15
|
-
|
16
|
-
\
|
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
|
-
|
2
|
-
|
3
|
-
\
|
4
|
-
\
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
\
|
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
|
-
|
2
|
-
|
3
|
-
\
|
4
|
-
\
|
5
|
-
\
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
}
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
\
|
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
|
-
|
2
|
-
|
3
|
-
\
|
4
|
-
\
|
5
|
-
\
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
-
|
2
|
-
|
3
|
-
\
|
4
|
-
\
|
5
|
-
\
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
\
|
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
|
+
}
|