miga-base 0.7.26.0 → 0.7.26.1
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/lib/miga/version.rb +1 -1
- 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/FastAAI +1336 -0
- data/utils/FastAAI/README.md +84 -0
- data/utils/FastAAI/kAAI_v1.0_virus.py +1296 -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 +786 -0
- data/utils/enveomics/Manifest/Tasks/distances.json +161 -0
- data/utils/enveomics/Manifest/Tasks/fasta.json +766 -0
- data/utils/enveomics/Manifest/Tasks/fastq.json +243 -0
- data/utils/enveomics/Manifest/Tasks/graphics.json +126 -0
- data/utils/enveomics/Manifest/Tasks/mapping.json +67 -0
- data/utils/enveomics/Manifest/Tasks/ogs.json +382 -0
- data/utils/enveomics/Manifest/Tasks/other.json +829 -0
- data/utils/enveomics/Manifest/Tasks/remote.json +355 -0
- data/utils/enveomics/Manifest/Tasks/sequence-identity.json +501 -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 +156 -0
- data/utils/enveomics/Manifest/examples.json +154 -0
- data/utils/enveomics/Manifest/tasks.json +4 -0
- data/utils/enveomics/Pipelines/assembly.pbs/CONFIG.mock.bash +69 -0
- data/utils/enveomics/Pipelines/assembly.pbs/FastA.N50.pl +1 -0
- data/utils/enveomics/Pipelines/assembly.pbs/FastA.filterN.pl +1 -0
- data/utils/enveomics/Pipelines/assembly.pbs/FastA.length.pl +1 -0
- data/utils/enveomics/Pipelines/assembly.pbs/README.md +189 -0
- data/utils/enveomics/Pipelines/assembly.pbs/RUNME-2.bash +112 -0
- data/utils/enveomics/Pipelines/assembly.pbs/RUNME-3.bash +23 -0
- data/utils/enveomics/Pipelines/assembly.pbs/RUNME-4.bash +44 -0
- data/utils/enveomics/Pipelines/assembly.pbs/RUNME.bash +50 -0
- data/utils/enveomics/Pipelines/assembly.pbs/kSelector.R +37 -0
- data/utils/enveomics/Pipelines/assembly.pbs/newbler.pbs +68 -0
- data/utils/enveomics/Pipelines/assembly.pbs/newbler_preparator.pl +49 -0
- data/utils/enveomics/Pipelines/assembly.pbs/soap.pbs +80 -0
- data/utils/enveomics/Pipelines/assembly.pbs/stats.pbs +57 -0
- data/utils/enveomics/Pipelines/assembly.pbs/velvet.pbs +63 -0
- data/utils/enveomics/Pipelines/blast.pbs/01.pbs.bash +38 -0
- data/utils/enveomics/Pipelines/blast.pbs/02.pbs.bash +73 -0
- data/utils/enveomics/Pipelines/blast.pbs/03.pbs.bash +21 -0
- data/utils/enveomics/Pipelines/blast.pbs/BlastTab.recover_job.pl +72 -0
- data/utils/enveomics/Pipelines/blast.pbs/CONFIG.mock.bash +98 -0
- data/utils/enveomics/Pipelines/blast.pbs/FastA.split.pl +1 -0
- data/utils/enveomics/Pipelines/blast.pbs/README.md +127 -0
- data/utils/enveomics/Pipelines/blast.pbs/RUNME.bash +109 -0
- data/utils/enveomics/Pipelines/blast.pbs/TASK.check.bash +128 -0
- data/utils/enveomics/Pipelines/blast.pbs/TASK.dry.bash +16 -0
- data/utils/enveomics/Pipelines/blast.pbs/TASK.eo.bash +22 -0
- data/utils/enveomics/Pipelines/blast.pbs/TASK.pause.bash +26 -0
- data/utils/enveomics/Pipelines/blast.pbs/TASK.run.bash +89 -0
- data/utils/enveomics/Pipelines/blast.pbs/sentinel.pbs.bash +29 -0
- data/utils/enveomics/Pipelines/idba.pbs/README.md +49 -0
- data/utils/enveomics/Pipelines/idba.pbs/RUNME.bash +95 -0
- data/utils/enveomics/Pipelines/idba.pbs/run.pbs +56 -0
- data/utils/enveomics/Pipelines/trim.pbs/README.md +54 -0
- data/utils/enveomics/Pipelines/trim.pbs/RUNME.bash +70 -0
- data/utils/enveomics/Pipelines/trim.pbs/run.pbs +130 -0
- data/utils/enveomics/README.md +42 -0
- data/utils/enveomics/Scripts/AAsubs.log2ratio.rb +171 -0
- data/utils/enveomics/Scripts/Aln.cat.rb +163 -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 +93 -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 +101 -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 +56 -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 +92 -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 +83 -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.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.offset.pl +90 -0
- data/utils/enveomics/Scripts/FastQ.split.pl +53 -0
- data/utils/enveomics/Scripts/FastQ.tag.rb +63 -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 +57 -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.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 +418 -0
- data/utils/enveomics/Scripts/ani.rb +362 -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/enveomics.rb +24 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/jplace.rb +253 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/og.rb +182 -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/stat.rb +30 -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.rb +146 -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/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 +155 -0
- data/utils/enveomics/enveomics.R/R/barplot.R +184 -0
- data/utils/enveomics/enveomics.R/R/cliopts.R +135 -0
- data/utils/enveomics/enveomics.R/R/df2dist.R +154 -0
- data/utils/enveomics/enveomics.R/R/growthcurve.R +331 -0
- data/utils/enveomics/enveomics.R/R/recplot.R +354 -0
- data/utils/enveomics/enveomics.R/R/recplot2.R +1631 -0
- data/utils/enveomics/enveomics.R/R/tribs.R +583 -0
- data/utils/enveomics/enveomics.R/R/utils.R +50 -0
- data/utils/enveomics/enveomics.R/README.md +80 -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 +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 +25 -0
- data/utils/enveomics/enveomics.R/man/enve.TRIBS-class.Rd +46 -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 +23 -0
- data/utils/enveomics/enveomics.R/man/enve.__prune.reduce.Rd +23 -0
- data/utils/enveomics/enveomics.R/man/enve.__tribs.Rd +32 -0
- data/utils/enveomics/enveomics.R/man/enve.barplot.Rd +91 -0
- data/utils/enveomics/enveomics.R/man/enve.cliopts.Rd +57 -0
- data/utils/enveomics/enveomics.R/man/enve.col.alpha.Rd +24 -0
- data/utils/enveomics/enveomics.R/man/enve.col2alpha.Rd +19 -0
- data/utils/enveomics/enveomics.R/man/enve.df2dist.Rd +39 -0
- data/utils/enveomics/enveomics.R/man/enve.df2dist.group.Rd +38 -0
- data/utils/enveomics/enveomics.R/man/enve.df2dist.list.Rd +40 -0
- data/utils/enveomics/enveomics.R/man/enve.growthcurve.Rd +67 -0
- data/utils/enveomics/enveomics.R/man/enve.prune.dist.Rd +37 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot.Rd +122 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2-class.Rd +45 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.ANIr.Rd +24 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.Rd +68 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__counts.Rd +25 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__peakHist.Rd +21 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__whichClosestPeak.Rd +19 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.changeCutoff.Rd +19 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.compareIdentities.Rd +41 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.coordinates.Rd +29 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.corePeak.Rd +18 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.extractWindows.Rd +40 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.Rd +36 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__em_e.Rd +19 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__em_m.Rd +19 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__emauto_one.Rd +27 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__mow_one.Rd +41 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__mower.Rd +17 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.em.Rd +43 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.emauto.Rd +37 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.mower.Rd +74 -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 +32 -0
- data/utils/enveomics/enveomics.R/man/enve.tribs.Rd +59 -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 +63 -0
- data/utils/enveomics/enveomics.R/man/plot.enve.TRIBS.Rd +38 -0
- data/utils/enveomics/enveomics.R/man/plot.enve.TRIBStest.Rd +38 -0
- data/utils/enveomics/enveomics.R/man/plot.enve.recplot2.Rd +111 -0
- data/utils/enveomics/enveomics.R/man/summary.enve.GrowthCurve.Rd +19 -0
- data/utils/enveomics/enveomics.R/man/summary.enve.TRIBS.Rd +19 -0
- data/utils/enveomics/enveomics.R/man/summary.enve.TRIBStest.Rd +19 -0
- data/utils/enveomics/globals.mk +8 -0
- data/utils/enveomics/manifest.json +9 -0
- metadata +277 -4
@@ -0,0 +1,50 @@
|
|
1
|
+
#' Enveomics: Color Alpha
|
2
|
+
#'
|
3
|
+
#' Modify alpha in a color (or vector of colors).
|
4
|
+
#'
|
5
|
+
#' @param col Color or vector of colors. It can be any value supported by
|
6
|
+
#' \code{\link[grDevices]{col2rgb}}, such as \code{darkred} or \code{#009988}.
|
7
|
+
#' @param alpha Alpha value to add to the color, from 0 to 1.
|
8
|
+
#'
|
9
|
+
#' @return Returns a color or a vector of colors in \emph{hex} notation,
|
10
|
+
#' including \code{alpha}.
|
11
|
+
#'
|
12
|
+
#' @author Luis M. Rodriguez-R [aut, cre]
|
13
|
+
#'
|
14
|
+
#' @export
|
15
|
+
|
16
|
+
enve.col.alpha <- function
|
17
|
+
(col,
|
18
|
+
alpha=1/2
|
19
|
+
){
|
20
|
+
return(
|
21
|
+
apply(col2rgb(col), 2,
|
22
|
+
function(x) do.call(rgb, as.list(c(x[1:3]/256, alpha))) ) )
|
23
|
+
}
|
24
|
+
|
25
|
+
#' Enveomics: Truncate
|
26
|
+
#'
|
27
|
+
#' Removes the \code{n} highest and lowest values from a vector, and applies
|
28
|
+
#' summary function. The value of \code{n} is determined such that the central
|
29
|
+
#' range is used, corresponding to the \code{f} fraction of values.
|
30
|
+
#'
|
31
|
+
#' @param x A vector of numbers.
|
32
|
+
#' @param f The fraction of values to retain.
|
33
|
+
#' @param FUN Summary function to apply to the vectors. To obtain the
|
34
|
+
#' truncated vector itself, use \code{c}.
|
35
|
+
#'
|
36
|
+
#' @return Returns the summary \code{(FUN)} of the truncated vector.
|
37
|
+
#'
|
38
|
+
#' @author Luis M. Rodriguez-R [aut, cre]
|
39
|
+
#'
|
40
|
+
#' @export
|
41
|
+
|
42
|
+
enve.truncate <- function
|
43
|
+
(x,
|
44
|
+
f=0.95,
|
45
|
+
FUN=mean
|
46
|
+
){
|
47
|
+
n <- round(length(x)*(1-f)/2)
|
48
|
+
y <- sort(x)[ -c(seq(1, n), seq(length(x)+1-n, length(x))) ]
|
49
|
+
return(FUN(y))
|
50
|
+
}
|
@@ -0,0 +1,80 @@
|
|
1
|
+
# enveomics.R
|
2
|
+
|
3
|
+
## Installing `enveomics.R`
|
4
|
+
To install the latest version of `enveomics.R` uploaded to CRAN, execute in R:
|
5
|
+
|
6
|
+
```R
|
7
|
+
install.packages('enveomics.R')
|
8
|
+
```
|
9
|
+
|
10
|
+
To install the current developer version of `enveomics.R`, execute in R:
|
11
|
+
|
12
|
+
```R
|
13
|
+
install.packages('devtools')
|
14
|
+
library('devtools')
|
15
|
+
install_github('lmrodriguezr/enveomics', subdir='enveomics.R')
|
16
|
+
```
|
17
|
+
|
18
|
+
## Using `enveomics.R`
|
19
|
+
To load enveomics.R, simply execute:
|
20
|
+
|
21
|
+
```R
|
22
|
+
library(enveomics.R);
|
23
|
+
```
|
24
|
+
|
25
|
+
And open help messages using any of the following commands:
|
26
|
+
|
27
|
+
```R
|
28
|
+
?enveomics.R
|
29
|
+
?enve.barplot
|
30
|
+
?enve.recplot2
|
31
|
+
?enve.recplot2.compareIdentities
|
32
|
+
?enve.recplot2.changeCutoff
|
33
|
+
?enve.recplot2.findPeaks
|
34
|
+
?enve.recplot2.corePeak
|
35
|
+
?enve.recplot2.windowDepthThreshold
|
36
|
+
?enve.recplot2.extractWindows
|
37
|
+
?enve.recplot2.coordinates
|
38
|
+
?enve.recplot2.seqdepth
|
39
|
+
?enve.recplot2.ANIr
|
40
|
+
?enve.prune.dist
|
41
|
+
?enve.tribs
|
42
|
+
?enve.tribs.test
|
43
|
+
?enve.growthcurve
|
44
|
+
?enve.col.alpha
|
45
|
+
?enve.truncate
|
46
|
+
```
|
47
|
+
|
48
|
+
You can run some examples using these libraries in the
|
49
|
+
[enveomics-GUI](https://github.com/lmrodriguezr/enveomics-gui).
|
50
|
+
|
51
|
+
For additional information on recruitment plots, see the
|
52
|
+
[Recruitment plots working document](https://github.com/lmrodriguezr/enveomics/blob/master/Docs/recplot2.md).
|
53
|
+
|
54
|
+
## Changelog
|
55
|
+
* 1.7.1: Improved efficiency of `enve.df2dist` about five-fold.
|
56
|
+
* 1.7.0: Uniformized output for `enve.recplot2.extractWindows` and
|
57
|
+
`enve.recplot2.coordinates` to ease automation. Thanks to Tomeu Viver and
|
58
|
+
Roth Conrad for troubleshooting.
|
59
|
+
* 1.6.0: Speed up in recplot2 with proper structure manipulation
|
60
|
+
(by: Kenji Gerhardt). Also, default value for `id.breaks` was changed from
|
61
|
+
300 to 60.
|
62
|
+
* 1.5.0: Modernized documentation, now in ROxygen2 (by: Tatyana Kiryutina)
|
63
|
+
* 1.4.4: Removes modeest library as requirement, and replaces mower peak-finder
|
64
|
+
initialization to median (instead of mode).
|
65
|
+
* 1.4.2: Solved bug #36.
|
66
|
+
* 1.4.0: New option `pos.breaks.tsv` for `enve.recplot2`.
|
67
|
+
* 1.3.4: Gracefully handles and plots recruitment plots with insufficient data
|
68
|
+
to find peaks.
|
69
|
+
* 1.3.3: New function `enve.recplot2.windowDepthThreshold`.
|
70
|
+
* 1.3.2: New option `panel.fun` for `plot.enve.RecPlot2`.
|
71
|
+
* 1.3.1: New function enve.truncate.
|
72
|
+
* 1.3: Several bug fixes and new utilities for recruitment plots (recplot2).
|
73
|
+
* 1.1.0: New function enve.growthcurve and related class enve.GrowthCurve
|
74
|
+
with S3 methods plot and summary.
|
75
|
+
* 1.0.2: Fine-tuned default parameters in enve.recplot2.findPeaks and
|
76
|
+
solved a minor bug in enve.recplot2 that caused failures in low-coverage
|
77
|
+
datasets when using too many threads.
|
78
|
+
* 1.0.1: enve.recplot2 now supports pos.breaks=0 to define a
|
79
|
+
bin per subject sequence.
|
80
|
+
|
Binary file
|
Binary file
|
@@ -0,0 +1,17 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/growthcurve.R
|
3
|
+
\docType{methods}
|
4
|
+
\name{$,enve.GrowthCurve-method}
|
5
|
+
\alias{$,enve.GrowthCurve-method}
|
6
|
+
\title{Attribute accessor}
|
7
|
+
\usage{
|
8
|
+
\S4method{$}{enve.GrowthCurve}(x, name)
|
9
|
+
}
|
10
|
+
\arguments{
|
11
|
+
\item{x}{Object}
|
12
|
+
|
13
|
+
\item{name}{Attribute name}
|
14
|
+
}
|
15
|
+
\description{
|
16
|
+
Attribute accessor
|
17
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\docType{methods}
|
4
|
+
\name{$,enve.RecPlot2-method}
|
5
|
+
\alias{$,enve.RecPlot2-method}
|
6
|
+
\title{Attribute accessor}
|
7
|
+
\usage{
|
8
|
+
\S4method{$}{enve.RecPlot2}(x, name)
|
9
|
+
}
|
10
|
+
\arguments{
|
11
|
+
\item{x}{Object}
|
12
|
+
|
13
|
+
\item{name}{Attribute name}
|
14
|
+
}
|
15
|
+
\description{
|
16
|
+
Attribute accessor
|
17
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/recplot2.R
|
3
|
+
\docType{methods}
|
4
|
+
\name{$,enve.RecPlot2.Peak-method}
|
5
|
+
\alias{$,enve.RecPlot2.Peak-method}
|
6
|
+
\title{Attribute accessor}
|
7
|
+
\usage{
|
8
|
+
\S4method{$}{enve.RecPlot2.Peak}(x, name)
|
9
|
+
}
|
10
|
+
\arguments{
|
11
|
+
\item{x}{Object}
|
12
|
+
|
13
|
+
\item{name}{Attribute name}
|
14
|
+
}
|
15
|
+
\description{
|
16
|
+
Attribute accessor
|
17
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/growthcurve.R
|
3
|
+
\docType{class}
|
4
|
+
\name{enve.GrowthCurve-class}
|
5
|
+
\alias{enve.GrowthCurve-class}
|
6
|
+
\alias{enve.GrowthCurve}
|
7
|
+
\title{Enveomics: Growth Curve S4 Class}
|
8
|
+
\description{
|
9
|
+
Enve-omics representation of fitted growth curves.
|
10
|
+
}
|
11
|
+
\section{Slots}{
|
12
|
+
|
13
|
+
\describe{
|
14
|
+
\item{\code{design}}{\code{(array)} Experimental design of the experiment.}
|
15
|
+
|
16
|
+
\item{\code{models}}{\code{(list)} Fitted growth curve models.}
|
17
|
+
|
18
|
+
\item{\code{predict}}{\code{(list)} Fitted growth curve values.}
|
19
|
+
|
20
|
+
\item{\code{call}}{\code{(call)} Call producing this object.}
|
21
|
+
}}
|
22
|
+
|
23
|
+
\author{
|
24
|
+
Luis M. Rodriguez-R [aut, cre]
|
25
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/tribs.R
|
3
|
+
\docType{class}
|
4
|
+
\name{enve.TRIBS-class}
|
5
|
+
\alias{enve.TRIBS-class}
|
6
|
+
\alias{enve.TRIBS}
|
7
|
+
\title{Enveomics: TRIBS S4 Class}
|
8
|
+
\description{
|
9
|
+
Enve-omics representation of "Transformed-space Resampling In Biased Sets
|
10
|
+
(TRIBS)". This object represents sets of distances between objects,
|
11
|
+
sampled nearly-uniformly at random in "distance space". Subsampling
|
12
|
+
without selection is trivial, since both the distances space and the
|
13
|
+
selection occur in the same transformed space. However, it's useful to
|
14
|
+
compare randomly subsampled sets against a selected set of objects. This
|
15
|
+
is intended to identify overdispersion or overclustering (see
|
16
|
+
\code{\link{enve.TRIBStest}}) of a subset against the entire collection of objects
|
17
|
+
with minimum impact of sampling biases. This object can be produced by
|
18
|
+
\code{\link{enve.tribs}} and supports S4 methods \code{plot} and \code{summary}.
|
19
|
+
}
|
20
|
+
\section{Slots}{
|
21
|
+
|
22
|
+
\describe{
|
23
|
+
\item{\code{distance}}{\code{(numeric)} Centrality measurement of the distances
|
24
|
+
between the selected objects (without subsampling).}
|
25
|
+
|
26
|
+
\item{\code{points}}{\code{(matrix)} Position of the different objects in distance
|
27
|
+
space.}
|
28
|
+
|
29
|
+
\item{\code{distances}}{\code{(matrix)} Subsampled distances, where the rows are
|
30
|
+
replicates and the columns are subsampling levels.}
|
31
|
+
|
32
|
+
\item{\code{spaceSize}}{\code{(numeric)} Number of objects.}
|
33
|
+
|
34
|
+
\item{\code{selSize}}{\code{(numeric)} Number of selected objects.}
|
35
|
+
|
36
|
+
\item{\code{dimensions}}{\code{(numeric)} Number of dimensions in the distance space.}
|
37
|
+
|
38
|
+
\item{\code{subsamples}}{\code{(numeric)} Subsampling levels (as fractions, from
|
39
|
+
0 to 1).}
|
40
|
+
|
41
|
+
\item{\code{call}}{\code{(call)} Call producing this object.}
|
42
|
+
}}
|
43
|
+
|
44
|
+
\author{
|
45
|
+
Luis M. Rodriguez-R [aut, cre]
|
46
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/tribs.R
|
3
|
+
\name{enve.TRIBS.merge}
|
4
|
+
\alias{enve.TRIBS.merge}
|
5
|
+
\title{Enveomics: TRIBS Merge}
|
6
|
+
\usage{
|
7
|
+
enve.TRIBS.merge(x, y)
|
8
|
+
}
|
9
|
+
\arguments{
|
10
|
+
\item{x}{First \code{\link{enve.TRIBS}} object.}
|
11
|
+
|
12
|
+
\item{y}{Second \code{\link{enve.TRIBS}} object.}
|
13
|
+
}
|
14
|
+
\value{
|
15
|
+
Returns an \code{\link{enve.TRIBS}} object.
|
16
|
+
}
|
17
|
+
\description{
|
18
|
+
Merges two \code{\link{enve.TRIBS}} objects generated from the same objects at
|
19
|
+
different subsampling levels.
|
20
|
+
}
|
21
|
+
\author{
|
22
|
+
Luis M. Rodriguez-R [aut, cre]
|
23
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/tribs.R
|
3
|
+
\docType{class}
|
4
|
+
\name{enve.TRIBStest-class}
|
5
|
+
\alias{enve.TRIBStest-class}
|
6
|
+
\alias{enve.TRIBStest}
|
7
|
+
\title{Enveomics: TRIBS Test S4 Class}
|
8
|
+
\description{
|
9
|
+
Test of significance of overclustering or overdispersion in a selected
|
10
|
+
set of objects with respect to the entire set (see \code{\link{enve.TRIBS}}). This
|
11
|
+
object can be produced by \code{\link{enve.tribs.test}} and supports S4 methods
|
12
|
+
\code{plot} and \code{summary}.
|
13
|
+
}
|
14
|
+
\section{Slots}{
|
15
|
+
|
16
|
+
\describe{
|
17
|
+
\item{\code{pval.gt}}{\code{(numeric)}
|
18
|
+
P-value for the overdispersion test.}
|
19
|
+
|
20
|
+
\item{\code{pval.lt}}{\code{(numeric)}
|
21
|
+
P-value for the overclustering test.}
|
22
|
+
|
23
|
+
\item{\code{all.dist}}{\code{(numeric)}
|
24
|
+
Empiric PDF of distances for the entire dataset (subsampled at selection
|
25
|
+
size).}
|
26
|
+
|
27
|
+
\item{\code{sel.dist}}{\code{(numeric)}
|
28
|
+
Empiric PDF of distances for the selected objects (without subsampling).}
|
29
|
+
|
30
|
+
\item{\code{diff.dist}}{\code{(numeric)}
|
31
|
+
Empiric PDF of the difference between \code{all.dist} and \code{sel.dist}.
|
32
|
+
The p-values are estimating by comparing areas in this PDF greater than and
|
33
|
+
lesser than zero.}
|
34
|
+
|
35
|
+
\item{\code{dist.mids}}{\code{(numeric)}
|
36
|
+
Midpoints of the empiric PDFs of distances.}
|
37
|
+
|
38
|
+
\item{\code{diff.mids}}{\code{(numeric)}
|
39
|
+
Midpoints of the empiric PDF of difference of distances.}
|
40
|
+
|
41
|
+
\item{\code{call}}{\code{(call)}
|
42
|
+
Call producing this object.}
|
43
|
+
}}
|
44
|
+
|
45
|
+
\author{
|
46
|
+
Luis M. Rodriguez-R [aut, cre]
|
47
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/autoprune.R
|
3
|
+
\name{enve.__prune.iter}
|
4
|
+
\alias{enve.__prune.iter}
|
5
|
+
\title{Enveomics: Prune Iter (Internal Function)}
|
6
|
+
\usage{
|
7
|
+
enve.__prune.iter(t, dist, min_dist, quiet)
|
8
|
+
}
|
9
|
+
\arguments{
|
10
|
+
\item{t}{A \strong{phylo} object}
|
11
|
+
|
12
|
+
\item{dist}{Cophenetic distance matrix}
|
13
|
+
|
14
|
+
\item{min_dist}{Minimum distance}
|
15
|
+
|
16
|
+
\item{quiet}{If running quietly}
|
17
|
+
}
|
18
|
+
\description{
|
19
|
+
Internal function for \code{\link{enve.prune.dist}}.
|
20
|
+
}
|
21
|
+
\author{
|
22
|
+
Luis M. Rodriguez-R [aut, cre]
|
23
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/autoprune.R
|
3
|
+
\name{enve.__prune.reduce}
|
4
|
+
\alias{enve.__prune.reduce}
|
5
|
+
\title{Enveomics: Prune Reduce (Internal Function)}
|
6
|
+
\usage{
|
7
|
+
enve.__prune.reduce(t, nodes, min_dist, quiet)
|
8
|
+
}
|
9
|
+
\arguments{
|
10
|
+
\item{t}{A \strong{phylo} object}
|
11
|
+
|
12
|
+
\item{nodes}{Vector of nodes}
|
13
|
+
|
14
|
+
\item{min_dist}{Minimum distance}
|
15
|
+
|
16
|
+
\item{quiet}{If running quietly}
|
17
|
+
}
|
18
|
+
\description{
|
19
|
+
Internal function for \code{\link{enve.prune.dist}}.
|
20
|
+
}
|
21
|
+
\author{
|
22
|
+
Luis M. Rodriguez-R [aut, cre]
|
23
|
+
}
|
@@ -0,0 +1,32 @@
|
|
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 - Internal Ancillary Function}
|
6
|
+
\usage{
|
7
|
+
enve.__tribs(rep, frx, selection, dimensions, dots, dist.method,
|
8
|
+
summary.fx, dist)
|
9
|
+
}
|
10
|
+
\arguments{
|
11
|
+
\item{rep}{Replicates}
|
12
|
+
|
13
|
+
\item{frx}{Fraction}
|
14
|
+
|
15
|
+
\item{selection}{Selection}
|
16
|
+
|
17
|
+
\item{dimensions}{Dimensions}
|
18
|
+
|
19
|
+
\item{dots}{Sampling points}
|
20
|
+
|
21
|
+
\item{dist.method}{Distance method}
|
22
|
+
|
23
|
+
\item{summary.fx}{Summary function}
|
24
|
+
|
25
|
+
\item{dist}{Distance}
|
26
|
+
}
|
27
|
+
\description{
|
28
|
+
Internal ancillary function (see \code{\link{enve.tribs}}).
|
29
|
+
}
|
30
|
+
\author{
|
31
|
+
Luis M. Rodriguez-R [aut, cre]
|
32
|
+
}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
% Generated by roxygen2: do not edit by hand
|
2
|
+
% Please edit documentation in R/barplot.R
|
3
|
+
\name{enve.barplot}
|
4
|
+
\alias{enve.barplot}
|
5
|
+
\title{Enveomics: Barplot}
|
6
|
+
\usage{
|
7
|
+
enve.barplot(x, sizes, top = 25, colors.per.group = 9,
|
8
|
+
bars.width = 4, legend.ncol = 1, other.col = "#000000",
|
9
|
+
add.trend = FALSE, organic.trend = FALSE, sort.by = median,
|
10
|
+
min.report = 101, order = NULL, col, ...)
|
11
|
+
}
|
12
|
+
\arguments{
|
13
|
+
\item{x}{Can be either the input data or the path to the file containing
|
14
|
+
the table.
|
15
|
+
\itemize{
|
16
|
+
\item{If it contains the data, it must be a data frame or an
|
17
|
+
object coercible to a data frame.}
|
18
|
+
\item{If it is a path, it must point to a
|
19
|
+
tab-delimited file containing a header (first row) and row names
|
20
|
+
(first column).}
|
21
|
+
}}
|
22
|
+
|
23
|
+
\item{sizes}{A numeric vector containing the real size of the samples
|
24
|
+
(columns) in the same order of the input table. If set, the values are
|
25
|
+
assumed to be 100\%. Otherwise, the sum of the columns is used.}
|
26
|
+
|
27
|
+
\item{top}{Maximum number of categories to display. Any additional
|
28
|
+
categories will be listed as "Others".}
|
29
|
+
|
30
|
+
\item{colors.per.group}{Number of categories in the first two saturation
|
31
|
+
groups of colors. The third group contains the remaining categories if
|
32
|
+
needed.}
|
33
|
+
|
34
|
+
\item{bars.width}{Width of the barplot with respect to the legend.}
|
35
|
+
|
36
|
+
\item{legend.ncol}{Number of columns in the legend.}
|
37
|
+
|
38
|
+
\item{other.col}{Color of the "Others" category.}
|
39
|
+
|
40
|
+
\item{add.trend}{Controls if semi-transparent areas are to be plotted
|
41
|
+
between the bars to connect the regions (trend regions).}
|
42
|
+
|
43
|
+
\item{organic.trend}{Controls if the trend regions are to be smoothed
|
44
|
+
(curves). By default, trend regions have straight edges. If \code{TRUE},
|
45
|
+
forces \code{add.trend=TRUE}.}
|
46
|
+
|
47
|
+
\item{sort.by}{Any function that takes a numeric vector and returns a
|
48
|
+
numeric scalar. This function is applied to each row, and the resulting
|
49
|
+
values are used to sort the rows (decreasingly). Good options include:
|
50
|
+
\code{sd, min, max, mean, median}.}
|
51
|
+
|
52
|
+
\item{min.report}{Minimum percentage to report the value in the plot.
|
53
|
+
Any value above 100 indicates that no values are to be reported.}
|
54
|
+
|
55
|
+
\item{order}{Controls how the rows should be ordered.
|
56
|
+
\itemize{
|
57
|
+
\item{If \code{NULL}
|
58
|
+
(default), \code{sort.by} is applied per row and the results are
|
59
|
+
sorted decreasingly.}
|
60
|
+
\item{If \code{NA}, no sorting is performed, i.e., the original
|
61
|
+
order is respected.}
|
62
|
+
\item{If a vector is provided, it is assumed to be the
|
63
|
+
custom order to be used (either by numeric index or by row names).}
|
64
|
+
}}
|
65
|
+
|
66
|
+
\item{col}{Colors to use. If provided, overrides the variables \code{top}
|
67
|
+
and \code{colors.per.group}, but \code{other.col} is still used if the
|
68
|
+
vector is insufficient for all the rows. An additional palette is available with
|
69
|
+
\code{col='coto'} (contributed by Luis (Coto) Orellana).}
|
70
|
+
|
71
|
+
\item{...}{Any additional parameters to be passed to barplot.}
|
72
|
+
}
|
73
|
+
\description{
|
74
|
+
Creates nice barplots from tab-delimited tables.
|
75
|
+
}
|
76
|
+
\examples{
|
77
|
+
# Load data
|
78
|
+
data("phyla.counts", package="enveomics.R", envir=environment())
|
79
|
+
# Create a barplot sorted by variance with organic trends
|
80
|
+
enve.barplot(
|
81
|
+
phyla.counts, # Counts of phyla in four sites
|
82
|
+
sizes=c(250,100,75,200), # Total sizes of the datasets of each site
|
83
|
+
bars.width=2, # Decrease from default, so the names are fully displayed
|
84
|
+
organic.trend=TRUE, # Nice curvy background
|
85
|
+
sort.by=var # Sort by variance across sites
|
86
|
+
)
|
87
|
+
|
88
|
+
}
|
89
|
+
\author{
|
90
|
+
Luis M. Rodriguez-R [aut, cre]
|
91
|
+
}
|