miga-base 1.2.17.0 → 1.2.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miga/version.rb +2 -2
- data/utils/FastAAI/00.Libraries/01.SCG_HMMs/Archaea_SCG.hmm +41964 -0
- data/utils/FastAAI/00.Libraries/01.SCG_HMMs/Bacteria_SCG.hmm +32439 -0
- data/utils/FastAAI/00.Libraries/01.SCG_HMMs/Complete_SCG_DB.hmm +62056 -0
- data/utils/FastAAI/FastAAI +3659 -0
- data/utils/FastAAI/FastAAI-legacy/FastAAI +1336 -0
- data/utils/FastAAI/FastAAI-legacy/kAAI_v1.0_virus.py +1296 -0
- data/utils/FastAAI/README.md +84 -0
- data/utils/enveomics/Docs/recplot2.md +244 -0
- data/utils/enveomics/Examples/aai-matrix.bash +66 -0
- data/utils/enveomics/Examples/ani-matrix.bash +66 -0
- data/utils/enveomics/Examples/essential-phylogeny.bash +105 -0
- data/utils/enveomics/Examples/unus-genome-phylogeny.bash +100 -0
- data/utils/enveomics/LICENSE.txt +73 -0
- data/utils/enveomics/Makefile +52 -0
- data/utils/enveomics/Manifest/Tasks/aasubs.json +103 -0
- data/utils/enveomics/Manifest/Tasks/blasttab.json +790 -0
- data/utils/enveomics/Manifest/Tasks/distances.json +161 -0
- data/utils/enveomics/Manifest/Tasks/fasta.json +802 -0
- data/utils/enveomics/Manifest/Tasks/fastq.json +291 -0
- data/utils/enveomics/Manifest/Tasks/graphics.json +126 -0
- data/utils/enveomics/Manifest/Tasks/mapping.json +165 -0
- data/utils/enveomics/Manifest/Tasks/ogs.json +382 -0
- data/utils/enveomics/Manifest/Tasks/other.json +906 -0
- data/utils/enveomics/Manifest/Tasks/remote.json +356 -0
- data/utils/enveomics/Manifest/Tasks/sequence-identity.json +650 -0
- data/utils/enveomics/Manifest/Tasks/tables.json +308 -0
- data/utils/enveomics/Manifest/Tasks/trees.json +68 -0
- data/utils/enveomics/Manifest/Tasks/variants.json +111 -0
- data/utils/enveomics/Manifest/categories.json +165 -0
- data/utils/enveomics/Manifest/examples.json +162 -0
- data/utils/enveomics/Manifest/tasks.json +4 -0
- data/utils/enveomics/README.md +42 -0
- data/utils/enveomics/Scripts/AAsubs.log2ratio.rb +171 -0
- data/utils/enveomics/Scripts/Aln.cat.rb +221 -0
- data/utils/enveomics/Scripts/Aln.convert.pl +35 -0
- data/utils/enveomics/Scripts/AlphaDiversity.pl +152 -0
- data/utils/enveomics/Scripts/BedGraph.tad.rb +138 -0
- data/utils/enveomics/Scripts/BedGraph.window.rb +71 -0
- data/utils/enveomics/Scripts/BlastPairwise.AAsubs.pl +102 -0
- data/utils/enveomics/Scripts/BlastTab.addlen.rb +63 -0
- data/utils/enveomics/Scripts/BlastTab.advance.bash +48 -0
- data/utils/enveomics/Scripts/BlastTab.best_hit_sorted.pl +55 -0
- data/utils/enveomics/Scripts/BlastTab.catsbj.pl +104 -0
- data/utils/enveomics/Scripts/BlastTab.cogCat.rb +76 -0
- data/utils/enveomics/Scripts/BlastTab.filter.pl +47 -0
- data/utils/enveomics/Scripts/BlastTab.kegg_pep2path_rest.pl +194 -0
- data/utils/enveomics/Scripts/BlastTab.metaxaPrep.pl +104 -0
- data/utils/enveomics/Scripts/BlastTab.pairedHits.rb +157 -0
- data/utils/enveomics/Scripts/BlastTab.recplot2.R +48 -0
- data/utils/enveomics/Scripts/BlastTab.seqdepth.pl +86 -0
- data/utils/enveomics/Scripts/BlastTab.seqdepth_ZIP.pl +119 -0
- data/utils/enveomics/Scripts/BlastTab.seqdepth_nomedian.pl +86 -0
- data/utils/enveomics/Scripts/BlastTab.subsample.pl +47 -0
- data/utils/enveomics/Scripts/BlastTab.sumPerHit.pl +114 -0
- data/utils/enveomics/Scripts/BlastTab.taxid2taxrank.pl +90 -0
- data/utils/enveomics/Scripts/BlastTab.topHits_sorted.rb +123 -0
- data/utils/enveomics/Scripts/Chao1.pl +97 -0
- data/utils/enveomics/Scripts/CharTable.classify.rb +234 -0
- data/utils/enveomics/Scripts/EBIseq2tax.rb +83 -0
- data/utils/enveomics/Scripts/FastA.N50.pl +60 -0
- data/utils/enveomics/Scripts/FastA.extract.rb +152 -0
- data/utils/enveomics/Scripts/FastA.filter.pl +52 -0
- data/utils/enveomics/Scripts/FastA.filterLen.pl +28 -0
- data/utils/enveomics/Scripts/FastA.filterN.pl +60 -0
- data/utils/enveomics/Scripts/FastA.fragment.rb +100 -0
- data/utils/enveomics/Scripts/FastA.gc.pl +42 -0
- data/utils/enveomics/Scripts/FastA.interpose.pl +93 -0
- data/utils/enveomics/Scripts/FastA.length.pl +38 -0
- data/utils/enveomics/Scripts/FastA.mask.rb +89 -0
- data/utils/enveomics/Scripts/FastA.per_file.pl +36 -0
- data/utils/enveomics/Scripts/FastA.qlen.pl +57 -0
- data/utils/enveomics/Scripts/FastA.rename.pl +65 -0
- data/utils/enveomics/Scripts/FastA.revcom.pl +23 -0
- data/utils/enveomics/Scripts/FastA.sample.rb +98 -0
- data/utils/enveomics/Scripts/FastA.slider.pl +85 -0
- data/utils/enveomics/Scripts/FastA.split.pl +55 -0
- data/utils/enveomics/Scripts/FastA.split.rb +79 -0
- data/utils/enveomics/Scripts/FastA.subsample.pl +131 -0
- data/utils/enveomics/Scripts/FastA.tag.rb +65 -0
- data/utils/enveomics/Scripts/FastA.toFastQ.rb +69 -0
- data/utils/enveomics/Scripts/FastA.wrap.rb +48 -0
- data/utils/enveomics/Scripts/FastQ.filter.pl +54 -0
- data/utils/enveomics/Scripts/FastQ.interpose.pl +90 -0
- data/utils/enveomics/Scripts/FastQ.maskQual.rb +89 -0
- data/utils/enveomics/Scripts/FastQ.offset.pl +90 -0
- data/utils/enveomics/Scripts/FastQ.split.pl +53 -0
- data/utils/enveomics/Scripts/FastQ.tag.rb +70 -0
- data/utils/enveomics/Scripts/FastQ.test-error.rb +81 -0
- data/utils/enveomics/Scripts/FastQ.toFastA.awk +24 -0
- data/utils/enveomics/Scripts/GFF.catsbj.pl +127 -0
- data/utils/enveomics/Scripts/GenBank.add_fields.rb +84 -0
- data/utils/enveomics/Scripts/HMM.essential.rb +351 -0
- data/utils/enveomics/Scripts/HMM.haai.rb +168 -0
- data/utils/enveomics/Scripts/HMMsearch.extractIds.rb +83 -0
- data/utils/enveomics/Scripts/JPlace.distances.rb +88 -0
- data/utils/enveomics/Scripts/JPlace.to_iToL.rb +320 -0
- data/utils/enveomics/Scripts/M5nr.getSequences.rb +81 -0
- data/utils/enveomics/Scripts/MeTaxa.distribution.pl +198 -0
- data/utils/enveomics/Scripts/MyTaxa.fragsByTax.pl +35 -0
- data/utils/enveomics/Scripts/MyTaxa.seq-taxrank.rb +49 -0
- data/utils/enveomics/Scripts/NCBIacc2tax.rb +92 -0
- data/utils/enveomics/Scripts/Newick.autoprune.R +27 -0
- data/utils/enveomics/Scripts/RAxML-EPA.to_iToL.pl +228 -0
- data/utils/enveomics/Scripts/RecPlot2.compareIdentities.R +32 -0
- data/utils/enveomics/Scripts/RefSeq.download.bash +48 -0
- data/utils/enveomics/Scripts/SRA.download.bash +67 -0
- data/utils/enveomics/Scripts/TRIBS.plot-test.R +36 -0
- data/utils/enveomics/Scripts/TRIBS.test.R +39 -0
- data/utils/enveomics/Scripts/Table.barplot.R +31 -0
- data/utils/enveomics/Scripts/Table.df2dist.R +30 -0
- data/utils/enveomics/Scripts/Table.filter.pl +61 -0
- data/utils/enveomics/Scripts/Table.merge.pl +77 -0
- data/utils/enveomics/Scripts/Table.prefScore.R +60 -0
- data/utils/enveomics/Scripts/Table.replace.rb +69 -0
- data/utils/enveomics/Scripts/Table.round.rb +63 -0
- data/utils/enveomics/Scripts/Table.split.pl +57 -0
- data/utils/enveomics/Scripts/Taxonomy.silva2ncbi.rb +227 -0
- data/utils/enveomics/Scripts/VCF.KaKs.rb +147 -0
- data/utils/enveomics/Scripts/VCF.SNPs.rb +88 -0
- data/utils/enveomics/Scripts/aai.rb +421 -0
- data/utils/enveomics/Scripts/ani.rb +362 -0
- data/utils/enveomics/Scripts/anir.rb +137 -0
- data/utils/enveomics/Scripts/clust.rand.rb +102 -0
- data/utils/enveomics/Scripts/gi2tax.rb +103 -0
- data/utils/enveomics/Scripts/in_silico_GA_GI.pl +96 -0
- data/utils/enveomics/Scripts/lib/data/dupont_2012_essential.hmm.gz +0 -0
- data/utils/enveomics/Scripts/lib/data/lee_2019_essential.hmm.gz +0 -0
- data/utils/enveomics/Scripts/lib/enveomics.R +1 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/anir.rb +293 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/bm_set.rb +175 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/enveomics.rb +24 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/errors.rb +17 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/gmm_em.rb +30 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/jplace.rb +253 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/match.rb +88 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/og.rb +182 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/rbm.rb +49 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/remote_data.rb +74 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/seq_range.rb +237 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/stats/rand.rb +31 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/stats/sample.rb +152 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/stats.rb +3 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/utils.rb +74 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/vcf.rb +135 -0
- data/utils/enveomics/Scripts/ogs.annotate.rb +88 -0
- data/utils/enveomics/Scripts/ogs.core-pan.rb +160 -0
- data/utils/enveomics/Scripts/ogs.extract.rb +125 -0
- data/utils/enveomics/Scripts/ogs.mcl.rb +186 -0
- data/utils/enveomics/Scripts/ogs.rb +104 -0
- data/utils/enveomics/Scripts/ogs.stats.rb +131 -0
- data/utils/enveomics/Scripts/rbm-legacy.rb +172 -0
- data/utils/enveomics/Scripts/rbm.rb +108 -0
- data/utils/enveomics/Scripts/sam.filter.rb +148 -0
- data/utils/enveomics/Tests/Makefile +10 -0
- data/utils/enveomics/Tests/Mgen_M2288.faa +3189 -0
- data/utils/enveomics/Tests/Mgen_M2288.fna +8282 -0
- data/utils/enveomics/Tests/Mgen_M2321.fna +8288 -0
- data/utils/enveomics/Tests/Nequ_Kin4M.faa +2970 -0
- data/utils/enveomics/Tests/Xanthomonas_oryzae-PilA.tribs.Rdata +0 -0
- data/utils/enveomics/Tests/Xanthomonas_oryzae-PilA.txt +7 -0
- data/utils/enveomics/Tests/Xanthomonas_oryzae.aai-mat.tsv +17 -0
- data/utils/enveomics/Tests/Xanthomonas_oryzae.aai.tsv +137 -0
- data/utils/enveomics/Tests/a_mg.cds-go.blast.tsv +123 -0
- data/utils/enveomics/Tests/a_mg.reads-cds.blast.tsv +200 -0
- data/utils/enveomics/Tests/a_mg.reads-cds.counts.tsv +55 -0
- data/utils/enveomics/Tests/alkB.nwk +1 -0
- data/utils/enveomics/Tests/anthrax-cansnp-data.tsv +13 -0
- data/utils/enveomics/Tests/anthrax-cansnp-key.tsv +17 -0
- data/utils/enveomics/Tests/hiv1.faa +59 -0
- data/utils/enveomics/Tests/hiv1.fna +134 -0
- data/utils/enveomics/Tests/hiv2.faa +70 -0
- data/utils/enveomics/Tests/hiv_mix-hiv1.blast.tsv +233 -0
- data/utils/enveomics/Tests/hiv_mix-hiv1.blast.tsv.lim +1 -0
- data/utils/enveomics/Tests/hiv_mix-hiv1.blast.tsv.rec +233 -0
- data/utils/enveomics/Tests/low-cov.bg.gz +0 -0
- data/utils/enveomics/Tests/phyla_counts.tsv +10 -0
- data/utils/enveomics/Tests/primate_lentivirus.ogs +11 -0
- data/utils/enveomics/Tests/primate_lentivirus.rbm/hiv1-hiv1.rbm +9 -0
- data/utils/enveomics/Tests/primate_lentivirus.rbm/hiv1-hiv2.rbm +8 -0
- data/utils/enveomics/Tests/primate_lentivirus.rbm/hiv1-siv.rbm +6 -0
- data/utils/enveomics/Tests/primate_lentivirus.rbm/hiv2-hiv2.rbm +9 -0
- data/utils/enveomics/Tests/primate_lentivirus.rbm/hiv2-siv.rbm +6 -0
- data/utils/enveomics/Tests/primate_lentivirus.rbm/siv-siv.rbm +6 -0
- data/utils/enveomics/build_enveomics_r.bash +45 -0
- data/utils/enveomics/enveomics.R/DESCRIPTION +31 -0
- data/utils/enveomics/enveomics.R/NAMESPACE +39 -0
- data/utils/enveomics/enveomics.R/R/autoprune.R +167 -0
- data/utils/enveomics/enveomics.R/R/barplot.R +203 -0
- data/utils/enveomics/enveomics.R/R/cliopts.R +141 -0
- data/utils/enveomics/enveomics.R/R/df2dist.R +192 -0
- data/utils/enveomics/enveomics.R/R/growthcurve.R +349 -0
- data/utils/enveomics/enveomics.R/R/prefscore.R +79 -0
- data/utils/enveomics/enveomics.R/R/recplot.R +419 -0
- data/utils/enveomics/enveomics.R/R/recplot2.R +1698 -0
- data/utils/enveomics/enveomics.R/R/tribs.R +638 -0
- data/utils/enveomics/enveomics.R/R/utils.R +90 -0
- data/utils/enveomics/enveomics.R/README.md +81 -0
- data/utils/enveomics/enveomics.R/data/growth.curves.rda +0 -0
- data/utils/enveomics/enveomics.R/data/phyla.counts.rda +0 -0
- data/utils/enveomics/enveomics.R/man/cash-enve.GrowthCurve-method.Rd +16 -0
- data/utils/enveomics/enveomics.R/man/cash-enve.RecPlot2-method.Rd +16 -0
- data/utils/enveomics/enveomics.R/man/cash-enve.RecPlot2.Peak-method.Rd +16 -0
- data/utils/enveomics/enveomics.R/man/enve.GrowthCurve-class.Rd +25 -0
- data/utils/enveomics/enveomics.R/man/enve.TRIBS-class.Rd +47 -0
- data/utils/enveomics/enveomics.R/man/enve.TRIBS.merge.Rd +23 -0
- data/utils/enveomics/enveomics.R/man/enve.TRIBStest-class.Rd +47 -0
- data/utils/enveomics/enveomics.R/man/enve.__prune.iter.Rd +26 -0
- data/utils/enveomics/enveomics.R/man/enve.__prune.reduce.Rd +26 -0
- data/utils/enveomics/enveomics.R/man/enve.__tribs.Rd +44 -0
- data/utils/enveomics/enveomics.R/man/enve.barplot.Rd +111 -0
- data/utils/enveomics/enveomics.R/man/enve.cliopts.Rd +67 -0
- data/utils/enveomics/enveomics.R/man/enve.col.alpha.Rd +34 -0
- data/utils/enveomics/enveomics.R/man/enve.col2alpha.Rd +25 -0
- data/utils/enveomics/enveomics.R/man/enve.df2dist.Rd +59 -0
- data/utils/enveomics/enveomics.R/man/enve.df2dist.group.Rd +63 -0
- data/utils/enveomics/enveomics.R/man/enve.df2dist.list.Rd +46 -0
- data/utils/enveomics/enveomics.R/man/enve.growthcurve.Rd +78 -0
- data/utils/enveomics/enveomics.R/man/enve.prefscore.Rd +50 -0
- data/utils/enveomics/enveomics.R/man/enve.prune.dist.Rd +44 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot.Rd +147 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2-class.Rd +45 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.ANIr.Rd +27 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.Rd +77 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__counts.Rd +28 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__peakHist.Rd +24 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__whichClosestPeak.Rd +22 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.changeCutoff.Rd +22 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.compareIdentities.Rd +52 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.coordinates.Rd +29 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.corePeak.Rd +21 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.extractWindows.Rd +45 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.Rd +34 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__em_e.Rd +23 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__em_m.Rd +24 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__emauto_one.Rd +31 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__mow_one.Rd +56 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__mower.Rd +20 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.em.Rd +51 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.emauto.Rd +43 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.mower.Rd +82 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.peak-class.Rd +59 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.seqdepth.Rd +27 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.windowDepthThreshold.Rd +36 -0
- data/utils/enveomics/enveomics.R/man/enve.selvector.Rd +23 -0
- data/utils/enveomics/enveomics.R/man/enve.tribs.Rd +68 -0
- data/utils/enveomics/enveomics.R/man/enve.tribs.test.Rd +28 -0
- data/utils/enveomics/enveomics.R/man/enve.truncate.Rd +27 -0
- data/utils/enveomics/enveomics.R/man/growth.curves.Rd +14 -0
- data/utils/enveomics/enveomics.R/man/phyla.counts.Rd +13 -0
- data/utils/enveomics/enveomics.R/man/plot.enve.GrowthCurve.Rd +81 -0
- data/utils/enveomics/enveomics.R/man/plot.enve.TRIBS.Rd +49 -0
- data/utils/enveomics/enveomics.R/man/plot.enve.TRIBStest.Rd +48 -0
- data/utils/enveomics/enveomics.R/man/plot.enve.recplot2.Rd +125 -0
- data/utils/enveomics/enveomics.R/man/summary.enve.GrowthCurve.Rd +22 -0
- data/utils/enveomics/enveomics.R/man/summary.enve.TRIBS.Rd +22 -0
- data/utils/enveomics/enveomics.R/man/summary.enve.TRIBStest.Rd +22 -0
- data/utils/enveomics/globals.mk +8 -0
- data/utils/enveomics/manifest.json +9 -0
- data/utils/multitrim/Multitrim How-To.pdf +0 -0
- data/utils/multitrim/README.md +67 -0
- data/utils/multitrim/multitrim.py +1555 -0
- data/utils/multitrim/multitrim.yml +13 -0
- metadata +268 -6
@@ -0,0 +1,24 @@
|
|
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
|
+
\value{
|
17
|
+
A numeric vector of counts (histogram)
|
18
|
+
}
|
19
|
+
\description{
|
20
|
+
Internal ancillary function (see \code{\link{enve.RecPlot2.Peak}}).
|
21
|
+
}
|
22
|
+
\author{
|
23
|
+
Luis M. Rodriguez-R [aut, cre]
|
24
|
+
}
|
@@ -0,0 +1,22 @@
|
|
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
|
+
\value{
|
15
|
+
A numeric index out of \code{peaks}.
|
16
|
+
}
|
17
|
+
\description{
|
18
|
+
Internal ancillary function (see \code{\link{enve.recplot2.findPeaks}}).
|
19
|
+
}
|
20
|
+
\author{
|
21
|
+
Luis M. Rodriguez-R [aut, cre]
|
22
|
+
}
|
@@ -0,0 +1,22 @@
|
|
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
|
+
\value{
|
15
|
+
The modified \code{\link{enve.RecPlot2}} object.
|
16
|
+
}
|
17
|
+
\description{
|
18
|
+
Change the intra-species cutoff of an existing recruitment plot.
|
19
|
+
}
|
20
|
+
\author{
|
21
|
+
Luis M. Rodriguez-R [aut, cre]
|
22
|
+
}
|
@@ -0,0 +1,52 @@
|
|
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(
|
8
|
+
x,
|
9
|
+
y,
|
10
|
+
method = "hellinger",
|
11
|
+
smooth.par = NULL,
|
12
|
+
pseudocounts = 0,
|
13
|
+
max.deviation = 0.75
|
14
|
+
)
|
15
|
+
}
|
16
|
+
\arguments{
|
17
|
+
\item{x}{First \code{\link{enve.RecPlot2}} object.}
|
18
|
+
|
19
|
+
\item{y}{Second \code{\link{enve.RecPlot2}} object.}
|
20
|
+
|
21
|
+
\item{method}{Distance method to use. This should be (an unambiguous abbreviation of)
|
22
|
+
one of:
|
23
|
+
\itemize{
|
24
|
+
\item{"hellinger"
|
25
|
+
(\emph{Hellinger, 1090, doi:10.1515/crll.1909.136.210}),}
|
26
|
+
\item{"bhattacharyya"
|
27
|
+
(\emph{Bhattacharyya, 1943, Bull. Calcutta Math. Soc. 35}),}
|
28
|
+
\item{"kl" or "kullback-leibler"
|
29
|
+
(\emph{Kullback & Leibler, 1951, doi:10.1214/aoms/1177729694}), or}
|
30
|
+
\item{"euclidean"}
|
31
|
+
}}
|
32
|
+
|
33
|
+
\item{smooth.par}{Smoothing parameter for cubic spline smoothing. Use 0 for no smoothing.
|
34
|
+
Use \code{NULL} to automatically determine this value using leave-one-out
|
35
|
+
cross-validation (see \code{smooth.spline} parameter \code{spar}).}
|
36
|
+
|
37
|
+
\item{pseudocounts}{Smoothing parameter for Laplace smoothing. Use 0 for no smoothing, or
|
38
|
+
1 for add-one smoothing.}
|
39
|
+
|
40
|
+
\item{max.deviation}{Maximum mean deviation between identity breaks tolerated (as percent
|
41
|
+
identity). Difference in number of \code{id.breaks} is never tolerated.}
|
42
|
+
}
|
43
|
+
\value{
|
44
|
+
A \strong{numeric} indicating the distance between the objects.
|
45
|
+
}
|
46
|
+
\description{
|
47
|
+
Compare the distribution of identities between two
|
48
|
+
\code{\link{enve.RecPlot2}} objects.
|
49
|
+
}
|
50
|
+
\author{
|
51
|
+
Luis M. Rodriguez-R [aut, cre]
|
52
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.coordinates}
|
4
|
+
\alias{enve.recplot2.coordinates}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) Coordinates}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.coordinates(x, bins)
|
8
|
+
}
|
9
|
+
\arguments{
|
10
|
+
\item{x}{\code{\link{enve.RecPlot2}} object.}
|
11
|
+
|
12
|
+
\item{bins}{Vector of selected bins to return. It can be a vector of logical values
|
13
|
+
with the same length as \code{x$pos.breaks-1} or a vector of integers. If
|
14
|
+
missing, returns the coordinates of all windows.}
|
15
|
+
}
|
16
|
+
\value{
|
17
|
+
Returns a data.frame with five columns: \code{name.from} (character),
|
18
|
+
\code{pos.from} (numeric), \code{name.to} (character), \code{pos.to}
|
19
|
+
(numeric), and \code{seq.name} (character).
|
20
|
+
The first two correspond to sequence and position of the start point of the
|
21
|
+
bin. The next two correspond to the sequence and position of the end point of
|
22
|
+
the bin. The last one indicates the name of the sequence (if defined).
|
23
|
+
}
|
24
|
+
\description{
|
25
|
+
Returns the sequence name and coordinates of the requested position bins.
|
26
|
+
}
|
27
|
+
\author{
|
28
|
+
Luis M. Rodriguez-R [aut, cre]
|
29
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.corePeak}
|
4
|
+
\alias{enve.recplot2.corePeak}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) Core Peak Finder}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.corePeak(x)
|
8
|
+
}
|
9
|
+
\arguments{
|
10
|
+
\item{x}{\code{list} of \code{\link{enve.RecPlot2.Peak}} objects.}
|
11
|
+
}
|
12
|
+
\value{
|
13
|
+
A \code{\link{enve.RecPlot2.Peak}} object.
|
14
|
+
}
|
15
|
+
\description{
|
16
|
+
Finds the peak in a list of peaks that is most likely to represent the
|
17
|
+
"core genome" of a population.
|
18
|
+
}
|
19
|
+
\author{
|
20
|
+
Luis M. Rodriguez-R [aut, cre]
|
21
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.extractWindows}
|
4
|
+
\alias{enve.recplot2.extractWindows}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) Extract Windows}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.extractWindows(
|
8
|
+
rp,
|
9
|
+
peak,
|
10
|
+
lower.tail = TRUE,
|
11
|
+
significance = 0.05,
|
12
|
+
seq.names = FALSE
|
13
|
+
)
|
14
|
+
}
|
15
|
+
\arguments{
|
16
|
+
\item{rp}{Recruitment plot, a \code{\link{enve.RecPlot2}} object.}
|
17
|
+
|
18
|
+
\item{peak}{Peak, an \code{\link{enve.RecPlot2.Peak}} object. If list, it is assumed to
|
19
|
+
be a list of \code{\link{enve.RecPlot2.Peak}} objects, in which case the core
|
20
|
+
peak is used (see \code{\link{enve.recplot2.corePeak}}).}
|
21
|
+
|
22
|
+
\item{lower.tail}{If \code{FALSE}, it returns windows significantly above the peak in
|
23
|
+
sequencing depth.}
|
24
|
+
|
25
|
+
\item{significance}{Significance threshold (alpha) to select windows.}
|
26
|
+
|
27
|
+
\item{seq.names}{Returns subject sequence names instead of a vector of Booleans. If
|
28
|
+
the recruitment plot was generated with named position bins (e.g, using
|
29
|
+
\code{pos.breaks=0} or a two-column \code{pos.breaks.tsv}), it returns a
|
30
|
+
vector of characters (the sequence identifiers), otherwise it returns a
|
31
|
+
data.frame with a name column and two columns of coordinates.}
|
32
|
+
}
|
33
|
+
\value{
|
34
|
+
Returns a vector of logicals if \code{seq.names = FALSE}.
|
35
|
+
If \code{seq.names = TRUE}, it returns a data.frame with five columns:
|
36
|
+
\code{name.from}, \code{name.to}, \code{pos.from}, \code{pos.to}, and
|
37
|
+
\code{seq.name} (see \code{\link{enve.recplot2.coordinates}}).
|
38
|
+
}
|
39
|
+
\description{
|
40
|
+
Extract windows significantly below (or above) the peak in sequencing
|
41
|
+
depth.
|
42
|
+
}
|
43
|
+
\author{
|
44
|
+
Luis M. Rodriguez-R [aut, cre]
|
45
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.findPeaks}
|
4
|
+
\alias{enve.recplot2.findPeaks}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) Peak Finder}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.findPeaks(x, method = "emauto", ...)
|
8
|
+
}
|
9
|
+
\arguments{
|
10
|
+
\item{x}{An \code{\link{enve.RecPlot2}} object.}
|
11
|
+
|
12
|
+
\item{method}{Peak-finder method. This should be one of:
|
13
|
+
\itemize{
|
14
|
+
\item \strong{emauto}
|
15
|
+
(Expectation-Maximization with auto-selection of components)
|
16
|
+
\item \strong{em}
|
17
|
+
(Expectation-Maximization)
|
18
|
+
\item \strong{mower}
|
19
|
+
(Custom distribution-mowing method)
|
20
|
+
}}
|
21
|
+
|
22
|
+
\item{...}{Any additional parameters supported by
|
23
|
+
\code{\link{enve.recplot2.findPeaks}}.}
|
24
|
+
}
|
25
|
+
\value{
|
26
|
+
Returns a list of \code{\link{enve.RecPlot2.Peak}} objects.
|
27
|
+
}
|
28
|
+
\description{
|
29
|
+
Identifies peaks in the population histogram potentially indicating
|
30
|
+
sub-population mixtures.
|
31
|
+
}
|
32
|
+
\author{
|
33
|
+
Luis M. Rodriguez-R [aut, cre]
|
34
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.findPeaks.__em_e}
|
4
|
+
\alias{enve.recplot2.findPeaks.__em_e}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) EM Peak Finder - Internal Ancillary Function Expectation}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.findPeaks.__em_e(x, theta)
|
8
|
+
}
|
9
|
+
\arguments{
|
10
|
+
\item{x}{Vector of log-transformed sequencing depths}
|
11
|
+
|
12
|
+
\item{theta}{Parameters list}
|
13
|
+
}
|
14
|
+
\value{
|
15
|
+
A list with components \code{ll} (numeric) the log-likelihood, and
|
16
|
+
\code{posterior} (numeric) the posterior probability.
|
17
|
+
}
|
18
|
+
\description{
|
19
|
+
Internal ancillary function (see \code{\link{enve.recplot2.findPeaks.em}}).
|
20
|
+
}
|
21
|
+
\author{
|
22
|
+
Luis M. Rodriguez-R [aut, cre]
|
23
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.findPeaks.__em_m}
|
4
|
+
\alias{enve.recplot2.findPeaks.__em_m}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) Em Peak Finder - Internal Ancillary Function Maximization}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.findPeaks.__em_m(x, posterior)
|
8
|
+
}
|
9
|
+
\arguments{
|
10
|
+
\item{x}{Vector of log-transformed sequencing depths}
|
11
|
+
|
12
|
+
\item{posterior}{Posterior probability}
|
13
|
+
}
|
14
|
+
\value{
|
15
|
+
A list with components \code{mu} (numeric) the estimated mean,
|
16
|
+
\code{sd} (numeric) the estimated standard deviation, and \code{alpha}
|
17
|
+
(numeric) the estimated alpha parameter.
|
18
|
+
}
|
19
|
+
\description{
|
20
|
+
Internal ancillary function (see \code{\link{enve.recplot2.findPeaks.em}}).
|
21
|
+
}
|
22
|
+
\author{
|
23
|
+
Luis M. Rodriguez-R [aut, cre]
|
24
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.findPeaks.__emauto_one}
|
4
|
+
\alias{enve.recplot2.findPeaks.__emauto_one}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) EMauto Peak Finder - Internal Ancillary Function}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.findPeaks.__emauto_one(x, comp, do_crit, best, verbose, ...)
|
8
|
+
}
|
9
|
+
\arguments{
|
10
|
+
\item{x}{\code{\link{enve.RecPlot2}} object.}
|
11
|
+
|
12
|
+
\item{comp}{Components.}
|
13
|
+
|
14
|
+
\item{do_crit}{Function estimating the criterion.}
|
15
|
+
|
16
|
+
\item{best}{Best solution thus far.}
|
17
|
+
|
18
|
+
\item{verbose}{If verbose.}
|
19
|
+
|
20
|
+
\item{...}{Additional parameters for \code{\link{enve.recplot2.findPeaks.em}}.}
|
21
|
+
}
|
22
|
+
\value{
|
23
|
+
Updated solution with the same structure as \code{best}.
|
24
|
+
}
|
25
|
+
\description{
|
26
|
+
Internal ancillary function (see
|
27
|
+
\code{\link{enve.recplot2.findPeaks.emauto}}).
|
28
|
+
}
|
29
|
+
\author{
|
30
|
+
Luis M. Rodriguez-R [aut, cre]
|
31
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.findPeaks.__mow_one}
|
4
|
+
\alias{enve.recplot2.findPeaks.__mow_one}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) Mowing Peak Finder - Internal Ancillary Function 1}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.findPeaks.__mow_one(
|
8
|
+
lsd1,
|
9
|
+
min.points,
|
10
|
+
quant.est,
|
11
|
+
mlv.opts,
|
12
|
+
fitdist.opts,
|
13
|
+
with.skewness,
|
14
|
+
optim.rounds,
|
15
|
+
optim.epsilon,
|
16
|
+
n.total,
|
17
|
+
merge.logdist,
|
18
|
+
verbose,
|
19
|
+
log
|
20
|
+
)
|
21
|
+
}
|
22
|
+
\arguments{
|
23
|
+
\item{lsd1}{Vector of log-transformed sequencing depths}
|
24
|
+
|
25
|
+
\item{min.points}{Minimum number of points}
|
26
|
+
|
27
|
+
\item{quant.est}{Quantile estimate}
|
28
|
+
|
29
|
+
\item{mlv.opts}{List of options for \code{mlv}}
|
30
|
+
|
31
|
+
\item{fitdist.opts}{List of options for \code{fitdist}}
|
32
|
+
|
33
|
+
\item{with.skewness}{If skewed-normal should be used}
|
34
|
+
|
35
|
+
\item{optim.rounds}{Maximum number of optimization rounds}
|
36
|
+
|
37
|
+
\item{optim.epsilon}{Minimum difference considered negligible}
|
38
|
+
|
39
|
+
\item{n.total}{Global number of windows}
|
40
|
+
|
41
|
+
\item{merge.logdist}{Attempted \code{merge.logdist} parameter}
|
42
|
+
|
43
|
+
\item{verbose}{If verbose}
|
44
|
+
|
45
|
+
\item{log}{If log-transformed depths}
|
46
|
+
}
|
47
|
+
\value{
|
48
|
+
Return an \code{enve.RecPlot2.Peak} object.
|
49
|
+
}
|
50
|
+
\description{
|
51
|
+
Internal ancillary function (see
|
52
|
+
\code{\link{enve.recplot2.findPeaks.mower}}).
|
53
|
+
}
|
54
|
+
\author{
|
55
|
+
Luis M. Rodriguez-R [aut, cre]
|
56
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.findPeaks.__mower}
|
4
|
+
\alias{enve.recplot2.findPeaks.__mower}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) Mowing Peak Finder - Internal Ancillary Function 2}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.findPeaks.__mower(peaks.opts)
|
8
|
+
}
|
9
|
+
\arguments{
|
10
|
+
\item{peaks.opts}{List of options for \code{\link{enve.recplot2.findPeaks.__mow_one}}}
|
11
|
+
}
|
12
|
+
\value{
|
13
|
+
A list of \code{enve.RecPlot2.Peak} objects.
|
14
|
+
}
|
15
|
+
\description{
|
16
|
+
Internal ancillary function (see \code{\link{enve.recplot2.findPeaks.mower}}).
|
17
|
+
}
|
18
|
+
\author{
|
19
|
+
Luis M. Rodriguez-R [aut, cre]
|
20
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.findPeaks.em}
|
4
|
+
\alias{enve.recplot2.findPeaks.em}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) Em Peak Finder}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.findPeaks.em(
|
8
|
+
x,
|
9
|
+
max.iter = 1000,
|
10
|
+
ll.diff.res = 1e-08,
|
11
|
+
components = 2,
|
12
|
+
rm.top = 0.05,
|
13
|
+
verbose = FALSE,
|
14
|
+
init,
|
15
|
+
log = TRUE
|
16
|
+
)
|
17
|
+
}
|
18
|
+
\arguments{
|
19
|
+
\item{x}{An \code{\link{enve.RecPlot2}} object.}
|
20
|
+
|
21
|
+
\item{max.iter}{Maximum number of EM iterations.}
|
22
|
+
|
23
|
+
\item{ll.diff.res}{Maximum Log-Likelihood difference to be considered as convergent.}
|
24
|
+
|
25
|
+
\item{components}{Number of distributions assumed in the mixture.}
|
26
|
+
|
27
|
+
\item{rm.top}{Top-values to remove before finding peaks, as a quantile probability.
|
28
|
+
This step is useful to remove highly conserved regions, but can be
|
29
|
+
turned off by setting \code{rm.top=0}. The quantile is determined
|
30
|
+
\strong{after} removing zero-coverage windows.}
|
31
|
+
|
32
|
+
\item{verbose}{Display (mostly debugging) information.}
|
33
|
+
|
34
|
+
\item{init}{Initialization parameters. By default, these are derived from k-means
|
35
|
+
clustering. A named list with vectors for \code{mu}, \code{sd}, and
|
36
|
+
\code{alpha}, each of length \code{components}.}
|
37
|
+
|
38
|
+
\item{log}{Logical value indicating if the estimations should be performed in
|
39
|
+
natural logarithm units. Do not change unless you know what you're
|
40
|
+
doing.}
|
41
|
+
}
|
42
|
+
\value{
|
43
|
+
Returns a list of \code{\link{enve.RecPlot2.Peak}} objects.
|
44
|
+
}
|
45
|
+
\description{
|
46
|
+
Identifies peaks in the population histogram using a Gaussian Mixture
|
47
|
+
Model Expectation Maximization (GMM-EM) method.
|
48
|
+
}
|
49
|
+
\author{
|
50
|
+
Luis M. Rodriguez-R [aut, cre]
|
51
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.findPeaks.emauto}
|
4
|
+
\alias{enve.recplot2.findPeaks.emauto}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) Emauto Peak Finder}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.findPeaks.emauto(
|
8
|
+
x,
|
9
|
+
components = seq(1, 5),
|
10
|
+
criterion = "aic",
|
11
|
+
merge.tol = 2L,
|
12
|
+
verbose = FALSE,
|
13
|
+
...
|
14
|
+
)
|
15
|
+
}
|
16
|
+
\arguments{
|
17
|
+
\item{x}{An \code{\link{enve.RecPlot2}} object.}
|
18
|
+
|
19
|
+
\item{components}{A vector of number of components to evaluate.}
|
20
|
+
|
21
|
+
\item{criterion}{Criterion to use for components selection. Must be one of:
|
22
|
+
\code{aic} (Akaike Information Criterion), \code{bic} or \code{sbc}
|
23
|
+
(Bayesian Information Criterion or Schwarz Criterion).}
|
24
|
+
|
25
|
+
\item{merge.tol}{When attempting to merge peaks with very similar sequencing depth, use
|
26
|
+
this number of significant digits (in log-scale).}
|
27
|
+
|
28
|
+
\item{verbose}{Display (mostly debugging) information.}
|
29
|
+
|
30
|
+
\item{...}{Any additional parameters supported by
|
31
|
+
\code{\link{enve.recplot2.findPeaks.em}}.}
|
32
|
+
}
|
33
|
+
\value{
|
34
|
+
Returns a list of \code{\link{enve.RecPlot2.Peak}} objects.
|
35
|
+
}
|
36
|
+
\description{
|
37
|
+
Identifies peaks in the population histogram using a Gaussian Mixture
|
38
|
+
Model Expectation Maximization (GMM-EM) method with number of components
|
39
|
+
automatically detected.
|
40
|
+
}
|
41
|
+
\author{
|
42
|
+
Luis M. Rodriguez-R [aut, cre]
|
43
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.findPeaks.mower}
|
4
|
+
\alias{enve.recplot2.findPeaks.mower}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) Mowing Peak Finder}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.findPeaks.mower(
|
8
|
+
x,
|
9
|
+
min.points = 10,
|
10
|
+
quant.est = c(0.002, 0.998),
|
11
|
+
mlv.opts = list(method = "parzen"),
|
12
|
+
fitdist.opts.sn = list(distr = "sn", method = "qme", probs = c(0.1, 0.5, 0.8), start
|
13
|
+
= list(omega = 1, alpha = -1), lower = c(0, -Inf, -Inf)),
|
14
|
+
fitdist.opts.norm = list(distr = "norm", method = "qme", probs = c(0.4, 0.6), start =
|
15
|
+
list(sd = 1), lower = c(0, -Inf)),
|
16
|
+
rm.top = 0.05,
|
17
|
+
with.skewness = TRUE,
|
18
|
+
optim.rounds = 200,
|
19
|
+
optim.epsilon = 1e-04,
|
20
|
+
merge.logdist = log(1.75),
|
21
|
+
verbose = FALSE,
|
22
|
+
log = TRUE
|
23
|
+
)
|
24
|
+
}
|
25
|
+
\arguments{
|
26
|
+
\item{x}{An \code{\link{enve.RecPlot2}} object.}
|
27
|
+
|
28
|
+
\item{min.points}{Minimum number of points in the quantile-estimation-range
|
29
|
+
\code{(quant.est)} to estimate a peak.}
|
30
|
+
|
31
|
+
\item{quant.est}{Range of quantiles to be used in the estimation of a peak's
|
32
|
+
parameters.}
|
33
|
+
|
34
|
+
\item{mlv.opts}{Ignored. For backwards compatibility.}
|
35
|
+
|
36
|
+
\item{fitdist.opts.sn}{Options passed to \code{fitdist} to estimate the standard deviation if
|
37
|
+
\code{with.skewness=TRUE}. Note that the \code{start} parameter will be
|
38
|
+
ammended with \code{xi=estimated} mode for each peak.}
|
39
|
+
|
40
|
+
\item{fitdist.opts.norm}{Options passed to \code{fitdist} to estimate the standard deviation if
|
41
|
+
\code{with.skewness=FALSE}. Note that the \code{start} parameter will be
|
42
|
+
ammended with \code{mean=estimated} mode for each peak.}
|
43
|
+
|
44
|
+
\item{rm.top}{Top-values to remove before finding peaks, as a quantile probability.
|
45
|
+
This step is useful to remove highly conserved regions, but can be
|
46
|
+
turned off by setting \code{rm.top=0}. The quantile is determined
|
47
|
+
\strong{after} removing zero-coverage windows.}
|
48
|
+
|
49
|
+
\item{with.skewness}{Allow skewness correction of the peaks. Typically, the
|
50
|
+
sequencing-depth distribution for a single peak is left-skewed, due
|
51
|
+
partly (but not exclusively) to fragmentation and mapping sensitivity.
|
52
|
+
See \emph{Lindner et al 2013, Bioinformatics 29(10):1260-7} for an
|
53
|
+
alternative solution for the first problem (fragmentation) called
|
54
|
+
"tail distribution".}
|
55
|
+
|
56
|
+
\item{optim.rounds}{Maximum rounds of peak optimization.}
|
57
|
+
|
58
|
+
\item{optim.epsilon}{Trace change at which optimization stops (unless \code{optim.rounds} is
|
59
|
+
reached first). The trace change is estimated as the sum of square
|
60
|
+
differences between parameters in one round and those from two rounds
|
61
|
+
earlier (to avoid infinite loops from approximation).}
|
62
|
+
|
63
|
+
\item{merge.logdist}{Maximum value of \code{|log-ratio|} between centrality parameters in peaks
|
64
|
+
to attempt merging. The default of ~0.22 corresponds to a maximum
|
65
|
+
difference of 25\%.}
|
66
|
+
|
67
|
+
\item{verbose}{Display (mostly debugging) information.}
|
68
|
+
|
69
|
+
\item{log}{Logical value indicating if the estimations should be performed in
|
70
|
+
natural logarithm units. Do not change unless you know what you're
|
71
|
+
doing.}
|
72
|
+
}
|
73
|
+
\value{
|
74
|
+
Returns a list of \code{\link{enve.RecPlot2.Peak}} objects.
|
75
|
+
}
|
76
|
+
\description{
|
77
|
+
Identifies peaks in the population histogram potentially indicating
|
78
|
+
sub-population mixtures, using a custom distribution-mowing method.
|
79
|
+
}
|
80
|
+
\author{
|
81
|
+
Luis M. Rodriguez-R [aut, cre]
|
82
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\docType{class}
|
4
|
+
\name{enve.RecPlot2.Peak-class}
|
5
|
+
\alias{enve.RecPlot2.Peak-class}
|
6
|
+
\alias{enve.RecPlot2.Peak}
|
7
|
+
\title{Enveomics: Recruitment Plot (2) Peak - S4 Class}
|
8
|
+
\description{
|
9
|
+
Enve-omics representation of a peak in the sequencing depth histogram
|
10
|
+
of a Recruitment plot (see \code{\link{enve.recplot2.findPeaks}}).
|
11
|
+
}
|
12
|
+
\section{Slots}{
|
13
|
+
|
14
|
+
\describe{
|
15
|
+
\item{\code{dist}}{\code{(character)}
|
16
|
+
Distribution of the peak. Currently supported: \code{norm} (normal) and \code{sn}
|
17
|
+
(skew-normal).}
|
18
|
+
|
19
|
+
\item{\code{values}}{\code{(numeric)}
|
20
|
+
Sequencing depth values predicted to conform the peak.}
|
21
|
+
|
22
|
+
\item{\code{values.res}}{\code{(numeric)}
|
23
|
+
Sequencing depth values not explained by this or previously identified
|
24
|
+
peaks.}
|
25
|
+
|
26
|
+
\item{\code{mode}}{\code{(numeric)}
|
27
|
+
Seed-value of mode anchoring the peak.}
|
28
|
+
|
29
|
+
\item{\code{param.hat}}{\code{(list)}
|
30
|
+
Parameters of the distribution. A list of two values if dist=\code{norm} (sd
|
31
|
+
and mean), or three values if dist=\code{sn}(omega=scale, alpha=shape, and
|
32
|
+
xi=location). Note that the "dispersion" parameter is always first and
|
33
|
+
the "location" parameter is always last.}
|
34
|
+
|
35
|
+
\item{\code{n.hat}}{\code{(numeric)}
|
36
|
+
Number of bins estimated to be explained by this peak. This should
|
37
|
+
ideally be equal to the length of \code{values}, but it's not an integer.}
|
38
|
+
|
39
|
+
\item{\code{n.total}}{\code{(numeric)}
|
40
|
+
Total number of bins from which the peak was extracted. I.e., total
|
41
|
+
number of position bins with non-zero sequencing depth in the recruitment
|
42
|
+
plot (regardless of peak count).}
|
43
|
+
|
44
|
+
\item{\code{err.res}}{\code{(numeric)}
|
45
|
+
Error left after adding the peak (mower) or log-likelihood (em or emauto).}
|
46
|
+
|
47
|
+
\item{\code{merge.logdist}}{\code{(numeric)}
|
48
|
+
Attempted \code{merge.logdist} parameter.}
|
49
|
+
|
50
|
+
\item{\code{seq.depth}}{\code{(numeric)}
|
51
|
+
Best estimate available for the sequencing depth of the peak (centrality).}
|
52
|
+
|
53
|
+
\item{\code{log}}{\code{(logical)}
|
54
|
+
Indicates if the estimation was performed in natural logarithm space.}
|
55
|
+
}}
|
56
|
+
|
57
|
+
\author{
|
58
|
+
Luis M. Rodriguez-R [aut, cre]
|
59
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\name{enve.recplot2.seqdepth}
|
4
|
+
\alias{enve.recplot2.seqdepth}
|
5
|
+
\title{Enveomics: Recruitment Plot (2) Sequencing Depth}
|
6
|
+
\usage{
|
7
|
+
enve.recplot2.seqdepth(x, sel, low.identity = FALSE)
|
8
|
+
}
|
9
|
+
\arguments{
|
10
|
+
\item{x}{\code{\link{enve.RecPlot2}} object.}
|
11
|
+
|
12
|
+
\item{sel}{Window(s) for which the sequencing depth is to be calculated. If not
|
13
|
+
passed, it returns the sequencing depth of all windows.}
|
14
|
+
|
15
|
+
\item{low.identity}{A logical indicating if the sequencing depth is to be estimated only
|
16
|
+
with low-identity matches. By default, only high-identity matches are
|
17
|
+
used.}
|
18
|
+
}
|
19
|
+
\value{
|
20
|
+
Returns a numeric vector of sequencing depths (in bp/bp).
|
21
|
+
}
|
22
|
+
\description{
|
23
|
+
Calculate the sequencing depth of the given window(s).
|
24
|
+
}
|
25
|
+
\author{
|
26
|
+
Luis M. Rodriguez-R [aut, cre]
|
27
|
+
}
|