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.
Files changed (265) hide show
  1. checksums.yaml +4 -4
  2. data/lib/miga/version.rb +2 -2
  3. data/utils/FastAAI/00.Libraries/01.SCG_HMMs/Archaea_SCG.hmm +41964 -0
  4. data/utils/FastAAI/00.Libraries/01.SCG_HMMs/Bacteria_SCG.hmm +32439 -0
  5. data/utils/FastAAI/00.Libraries/01.SCG_HMMs/Complete_SCG_DB.hmm +62056 -0
  6. data/utils/FastAAI/FastAAI +3659 -0
  7. data/utils/FastAAI/FastAAI-legacy/FastAAI +1336 -0
  8. data/utils/FastAAI/FastAAI-legacy/kAAI_v1.0_virus.py +1296 -0
  9. data/utils/FastAAI/README.md +84 -0
  10. data/utils/enveomics/Docs/recplot2.md +244 -0
  11. data/utils/enveomics/Examples/aai-matrix.bash +66 -0
  12. data/utils/enveomics/Examples/ani-matrix.bash +66 -0
  13. data/utils/enveomics/Examples/essential-phylogeny.bash +105 -0
  14. data/utils/enveomics/Examples/unus-genome-phylogeny.bash +100 -0
  15. data/utils/enveomics/LICENSE.txt +73 -0
  16. data/utils/enveomics/Makefile +52 -0
  17. data/utils/enveomics/Manifest/Tasks/aasubs.json +103 -0
  18. data/utils/enveomics/Manifest/Tasks/blasttab.json +790 -0
  19. data/utils/enveomics/Manifest/Tasks/distances.json +161 -0
  20. data/utils/enveomics/Manifest/Tasks/fasta.json +802 -0
  21. data/utils/enveomics/Manifest/Tasks/fastq.json +291 -0
  22. data/utils/enveomics/Manifest/Tasks/graphics.json +126 -0
  23. data/utils/enveomics/Manifest/Tasks/mapping.json +165 -0
  24. data/utils/enveomics/Manifest/Tasks/ogs.json +382 -0
  25. data/utils/enveomics/Manifest/Tasks/other.json +906 -0
  26. data/utils/enveomics/Manifest/Tasks/remote.json +356 -0
  27. data/utils/enveomics/Manifest/Tasks/sequence-identity.json +650 -0
  28. data/utils/enveomics/Manifest/Tasks/tables.json +308 -0
  29. data/utils/enveomics/Manifest/Tasks/trees.json +68 -0
  30. data/utils/enveomics/Manifest/Tasks/variants.json +111 -0
  31. data/utils/enveomics/Manifest/categories.json +165 -0
  32. data/utils/enveomics/Manifest/examples.json +162 -0
  33. data/utils/enveomics/Manifest/tasks.json +4 -0
  34. data/utils/enveomics/README.md +42 -0
  35. data/utils/enveomics/Scripts/AAsubs.log2ratio.rb +171 -0
  36. data/utils/enveomics/Scripts/Aln.cat.rb +221 -0
  37. data/utils/enveomics/Scripts/Aln.convert.pl +35 -0
  38. data/utils/enveomics/Scripts/AlphaDiversity.pl +152 -0
  39. data/utils/enveomics/Scripts/BedGraph.tad.rb +138 -0
  40. data/utils/enveomics/Scripts/BedGraph.window.rb +71 -0
  41. data/utils/enveomics/Scripts/BlastPairwise.AAsubs.pl +102 -0
  42. data/utils/enveomics/Scripts/BlastTab.addlen.rb +63 -0
  43. data/utils/enveomics/Scripts/BlastTab.advance.bash +48 -0
  44. data/utils/enveomics/Scripts/BlastTab.best_hit_sorted.pl +55 -0
  45. data/utils/enveomics/Scripts/BlastTab.catsbj.pl +104 -0
  46. data/utils/enveomics/Scripts/BlastTab.cogCat.rb +76 -0
  47. data/utils/enveomics/Scripts/BlastTab.filter.pl +47 -0
  48. data/utils/enveomics/Scripts/BlastTab.kegg_pep2path_rest.pl +194 -0
  49. data/utils/enveomics/Scripts/BlastTab.metaxaPrep.pl +104 -0
  50. data/utils/enveomics/Scripts/BlastTab.pairedHits.rb +157 -0
  51. data/utils/enveomics/Scripts/BlastTab.recplot2.R +48 -0
  52. data/utils/enveomics/Scripts/BlastTab.seqdepth.pl +86 -0
  53. data/utils/enveomics/Scripts/BlastTab.seqdepth_ZIP.pl +119 -0
  54. data/utils/enveomics/Scripts/BlastTab.seqdepth_nomedian.pl +86 -0
  55. data/utils/enveomics/Scripts/BlastTab.subsample.pl +47 -0
  56. data/utils/enveomics/Scripts/BlastTab.sumPerHit.pl +114 -0
  57. data/utils/enveomics/Scripts/BlastTab.taxid2taxrank.pl +90 -0
  58. data/utils/enveomics/Scripts/BlastTab.topHits_sorted.rb +123 -0
  59. data/utils/enveomics/Scripts/Chao1.pl +97 -0
  60. data/utils/enveomics/Scripts/CharTable.classify.rb +234 -0
  61. data/utils/enveomics/Scripts/EBIseq2tax.rb +83 -0
  62. data/utils/enveomics/Scripts/FastA.N50.pl +60 -0
  63. data/utils/enveomics/Scripts/FastA.extract.rb +152 -0
  64. data/utils/enveomics/Scripts/FastA.filter.pl +52 -0
  65. data/utils/enveomics/Scripts/FastA.filterLen.pl +28 -0
  66. data/utils/enveomics/Scripts/FastA.filterN.pl +60 -0
  67. data/utils/enveomics/Scripts/FastA.fragment.rb +100 -0
  68. data/utils/enveomics/Scripts/FastA.gc.pl +42 -0
  69. data/utils/enveomics/Scripts/FastA.interpose.pl +93 -0
  70. data/utils/enveomics/Scripts/FastA.length.pl +38 -0
  71. data/utils/enveomics/Scripts/FastA.mask.rb +89 -0
  72. data/utils/enveomics/Scripts/FastA.per_file.pl +36 -0
  73. data/utils/enveomics/Scripts/FastA.qlen.pl +57 -0
  74. data/utils/enveomics/Scripts/FastA.rename.pl +65 -0
  75. data/utils/enveomics/Scripts/FastA.revcom.pl +23 -0
  76. data/utils/enveomics/Scripts/FastA.sample.rb +98 -0
  77. data/utils/enveomics/Scripts/FastA.slider.pl +85 -0
  78. data/utils/enveomics/Scripts/FastA.split.pl +55 -0
  79. data/utils/enveomics/Scripts/FastA.split.rb +79 -0
  80. data/utils/enveomics/Scripts/FastA.subsample.pl +131 -0
  81. data/utils/enveomics/Scripts/FastA.tag.rb +65 -0
  82. data/utils/enveomics/Scripts/FastA.toFastQ.rb +69 -0
  83. data/utils/enveomics/Scripts/FastA.wrap.rb +48 -0
  84. data/utils/enveomics/Scripts/FastQ.filter.pl +54 -0
  85. data/utils/enveomics/Scripts/FastQ.interpose.pl +90 -0
  86. data/utils/enveomics/Scripts/FastQ.maskQual.rb +89 -0
  87. data/utils/enveomics/Scripts/FastQ.offset.pl +90 -0
  88. data/utils/enveomics/Scripts/FastQ.split.pl +53 -0
  89. data/utils/enveomics/Scripts/FastQ.tag.rb +70 -0
  90. data/utils/enveomics/Scripts/FastQ.test-error.rb +81 -0
  91. data/utils/enveomics/Scripts/FastQ.toFastA.awk +24 -0
  92. data/utils/enveomics/Scripts/GFF.catsbj.pl +127 -0
  93. data/utils/enveomics/Scripts/GenBank.add_fields.rb +84 -0
  94. data/utils/enveomics/Scripts/HMM.essential.rb +351 -0
  95. data/utils/enveomics/Scripts/HMM.haai.rb +168 -0
  96. data/utils/enveomics/Scripts/HMMsearch.extractIds.rb +83 -0
  97. data/utils/enveomics/Scripts/JPlace.distances.rb +88 -0
  98. data/utils/enveomics/Scripts/JPlace.to_iToL.rb +320 -0
  99. data/utils/enveomics/Scripts/M5nr.getSequences.rb +81 -0
  100. data/utils/enveomics/Scripts/MeTaxa.distribution.pl +198 -0
  101. data/utils/enveomics/Scripts/MyTaxa.fragsByTax.pl +35 -0
  102. data/utils/enveomics/Scripts/MyTaxa.seq-taxrank.rb +49 -0
  103. data/utils/enveomics/Scripts/NCBIacc2tax.rb +92 -0
  104. data/utils/enveomics/Scripts/Newick.autoprune.R +27 -0
  105. data/utils/enveomics/Scripts/RAxML-EPA.to_iToL.pl +228 -0
  106. data/utils/enveomics/Scripts/RecPlot2.compareIdentities.R +32 -0
  107. data/utils/enveomics/Scripts/RefSeq.download.bash +48 -0
  108. data/utils/enveomics/Scripts/SRA.download.bash +67 -0
  109. data/utils/enveomics/Scripts/TRIBS.plot-test.R +36 -0
  110. data/utils/enveomics/Scripts/TRIBS.test.R +39 -0
  111. data/utils/enveomics/Scripts/Table.barplot.R +31 -0
  112. data/utils/enveomics/Scripts/Table.df2dist.R +30 -0
  113. data/utils/enveomics/Scripts/Table.filter.pl +61 -0
  114. data/utils/enveomics/Scripts/Table.merge.pl +77 -0
  115. data/utils/enveomics/Scripts/Table.prefScore.R +60 -0
  116. data/utils/enveomics/Scripts/Table.replace.rb +69 -0
  117. data/utils/enveomics/Scripts/Table.round.rb +63 -0
  118. data/utils/enveomics/Scripts/Table.split.pl +57 -0
  119. data/utils/enveomics/Scripts/Taxonomy.silva2ncbi.rb +227 -0
  120. data/utils/enveomics/Scripts/VCF.KaKs.rb +147 -0
  121. data/utils/enveomics/Scripts/VCF.SNPs.rb +88 -0
  122. data/utils/enveomics/Scripts/aai.rb +421 -0
  123. data/utils/enveomics/Scripts/ani.rb +362 -0
  124. data/utils/enveomics/Scripts/anir.rb +137 -0
  125. data/utils/enveomics/Scripts/clust.rand.rb +102 -0
  126. data/utils/enveomics/Scripts/gi2tax.rb +103 -0
  127. data/utils/enveomics/Scripts/in_silico_GA_GI.pl +96 -0
  128. data/utils/enveomics/Scripts/lib/data/dupont_2012_essential.hmm.gz +0 -0
  129. data/utils/enveomics/Scripts/lib/data/lee_2019_essential.hmm.gz +0 -0
  130. data/utils/enveomics/Scripts/lib/enveomics.R +1 -0
  131. data/utils/enveomics/Scripts/lib/enveomics_rb/anir.rb +293 -0
  132. data/utils/enveomics/Scripts/lib/enveomics_rb/bm_set.rb +175 -0
  133. data/utils/enveomics/Scripts/lib/enveomics_rb/enveomics.rb +24 -0
  134. data/utils/enveomics/Scripts/lib/enveomics_rb/errors.rb +17 -0
  135. data/utils/enveomics/Scripts/lib/enveomics_rb/gmm_em.rb +30 -0
  136. data/utils/enveomics/Scripts/lib/enveomics_rb/jplace.rb +253 -0
  137. data/utils/enveomics/Scripts/lib/enveomics_rb/match.rb +88 -0
  138. data/utils/enveomics/Scripts/lib/enveomics_rb/og.rb +182 -0
  139. data/utils/enveomics/Scripts/lib/enveomics_rb/rbm.rb +49 -0
  140. data/utils/enveomics/Scripts/lib/enveomics_rb/remote_data.rb +74 -0
  141. data/utils/enveomics/Scripts/lib/enveomics_rb/seq_range.rb +237 -0
  142. data/utils/enveomics/Scripts/lib/enveomics_rb/stats/rand.rb +31 -0
  143. data/utils/enveomics/Scripts/lib/enveomics_rb/stats/sample.rb +152 -0
  144. data/utils/enveomics/Scripts/lib/enveomics_rb/stats.rb +3 -0
  145. data/utils/enveomics/Scripts/lib/enveomics_rb/utils.rb +74 -0
  146. data/utils/enveomics/Scripts/lib/enveomics_rb/vcf.rb +135 -0
  147. data/utils/enveomics/Scripts/ogs.annotate.rb +88 -0
  148. data/utils/enveomics/Scripts/ogs.core-pan.rb +160 -0
  149. data/utils/enveomics/Scripts/ogs.extract.rb +125 -0
  150. data/utils/enveomics/Scripts/ogs.mcl.rb +186 -0
  151. data/utils/enveomics/Scripts/ogs.rb +104 -0
  152. data/utils/enveomics/Scripts/ogs.stats.rb +131 -0
  153. data/utils/enveomics/Scripts/rbm-legacy.rb +172 -0
  154. data/utils/enveomics/Scripts/rbm.rb +108 -0
  155. data/utils/enveomics/Scripts/sam.filter.rb +148 -0
  156. data/utils/enveomics/Tests/Makefile +10 -0
  157. data/utils/enveomics/Tests/Mgen_M2288.faa +3189 -0
  158. data/utils/enveomics/Tests/Mgen_M2288.fna +8282 -0
  159. data/utils/enveomics/Tests/Mgen_M2321.fna +8288 -0
  160. data/utils/enveomics/Tests/Nequ_Kin4M.faa +2970 -0
  161. data/utils/enveomics/Tests/Xanthomonas_oryzae-PilA.tribs.Rdata +0 -0
  162. data/utils/enveomics/Tests/Xanthomonas_oryzae-PilA.txt +7 -0
  163. data/utils/enveomics/Tests/Xanthomonas_oryzae.aai-mat.tsv +17 -0
  164. data/utils/enveomics/Tests/Xanthomonas_oryzae.aai.tsv +137 -0
  165. data/utils/enveomics/Tests/a_mg.cds-go.blast.tsv +123 -0
  166. data/utils/enveomics/Tests/a_mg.reads-cds.blast.tsv +200 -0
  167. data/utils/enveomics/Tests/a_mg.reads-cds.counts.tsv +55 -0
  168. data/utils/enveomics/Tests/alkB.nwk +1 -0
  169. data/utils/enveomics/Tests/anthrax-cansnp-data.tsv +13 -0
  170. data/utils/enveomics/Tests/anthrax-cansnp-key.tsv +17 -0
  171. data/utils/enveomics/Tests/hiv1.faa +59 -0
  172. data/utils/enveomics/Tests/hiv1.fna +134 -0
  173. data/utils/enveomics/Tests/hiv2.faa +70 -0
  174. data/utils/enveomics/Tests/hiv_mix-hiv1.blast.tsv +233 -0
  175. data/utils/enveomics/Tests/hiv_mix-hiv1.blast.tsv.lim +1 -0
  176. data/utils/enveomics/Tests/hiv_mix-hiv1.blast.tsv.rec +233 -0
  177. data/utils/enveomics/Tests/low-cov.bg.gz +0 -0
  178. data/utils/enveomics/Tests/phyla_counts.tsv +10 -0
  179. data/utils/enveomics/Tests/primate_lentivirus.ogs +11 -0
  180. data/utils/enveomics/Tests/primate_lentivirus.rbm/hiv1-hiv1.rbm +9 -0
  181. data/utils/enveomics/Tests/primate_lentivirus.rbm/hiv1-hiv2.rbm +8 -0
  182. data/utils/enveomics/Tests/primate_lentivirus.rbm/hiv1-siv.rbm +6 -0
  183. data/utils/enveomics/Tests/primate_lentivirus.rbm/hiv2-hiv2.rbm +9 -0
  184. data/utils/enveomics/Tests/primate_lentivirus.rbm/hiv2-siv.rbm +6 -0
  185. data/utils/enveomics/Tests/primate_lentivirus.rbm/siv-siv.rbm +6 -0
  186. data/utils/enveomics/build_enveomics_r.bash +45 -0
  187. data/utils/enveomics/enveomics.R/DESCRIPTION +31 -0
  188. data/utils/enveomics/enveomics.R/NAMESPACE +39 -0
  189. data/utils/enveomics/enveomics.R/R/autoprune.R +167 -0
  190. data/utils/enveomics/enveomics.R/R/barplot.R +203 -0
  191. data/utils/enveomics/enveomics.R/R/cliopts.R +141 -0
  192. data/utils/enveomics/enveomics.R/R/df2dist.R +192 -0
  193. data/utils/enveomics/enveomics.R/R/growthcurve.R +349 -0
  194. data/utils/enveomics/enveomics.R/R/prefscore.R +79 -0
  195. data/utils/enveomics/enveomics.R/R/recplot.R +419 -0
  196. data/utils/enveomics/enveomics.R/R/recplot2.R +1698 -0
  197. data/utils/enveomics/enveomics.R/R/tribs.R +638 -0
  198. data/utils/enveomics/enveomics.R/R/utils.R +90 -0
  199. data/utils/enveomics/enveomics.R/README.md +81 -0
  200. data/utils/enveomics/enveomics.R/data/growth.curves.rda +0 -0
  201. data/utils/enveomics/enveomics.R/data/phyla.counts.rda +0 -0
  202. data/utils/enveomics/enveomics.R/man/cash-enve.GrowthCurve-method.Rd +16 -0
  203. data/utils/enveomics/enveomics.R/man/cash-enve.RecPlot2-method.Rd +16 -0
  204. data/utils/enveomics/enveomics.R/man/cash-enve.RecPlot2.Peak-method.Rd +16 -0
  205. data/utils/enveomics/enveomics.R/man/enve.GrowthCurve-class.Rd +25 -0
  206. data/utils/enveomics/enveomics.R/man/enve.TRIBS-class.Rd +47 -0
  207. data/utils/enveomics/enveomics.R/man/enve.TRIBS.merge.Rd +23 -0
  208. data/utils/enveomics/enveomics.R/man/enve.TRIBStest-class.Rd +47 -0
  209. data/utils/enveomics/enveomics.R/man/enve.__prune.iter.Rd +26 -0
  210. data/utils/enveomics/enveomics.R/man/enve.__prune.reduce.Rd +26 -0
  211. data/utils/enveomics/enveomics.R/man/enve.__tribs.Rd +44 -0
  212. data/utils/enveomics/enveomics.R/man/enve.barplot.Rd +111 -0
  213. data/utils/enveomics/enveomics.R/man/enve.cliopts.Rd +67 -0
  214. data/utils/enveomics/enveomics.R/man/enve.col.alpha.Rd +34 -0
  215. data/utils/enveomics/enveomics.R/man/enve.col2alpha.Rd +25 -0
  216. data/utils/enveomics/enveomics.R/man/enve.df2dist.Rd +59 -0
  217. data/utils/enveomics/enveomics.R/man/enve.df2dist.group.Rd +63 -0
  218. data/utils/enveomics/enveomics.R/man/enve.df2dist.list.Rd +46 -0
  219. data/utils/enveomics/enveomics.R/man/enve.growthcurve.Rd +78 -0
  220. data/utils/enveomics/enveomics.R/man/enve.prefscore.Rd +50 -0
  221. data/utils/enveomics/enveomics.R/man/enve.prune.dist.Rd +44 -0
  222. data/utils/enveomics/enveomics.R/man/enve.recplot.Rd +147 -0
  223. data/utils/enveomics/enveomics.R/man/enve.recplot2-class.Rd +45 -0
  224. data/utils/enveomics/enveomics.R/man/enve.recplot2.ANIr.Rd +27 -0
  225. data/utils/enveomics/enveomics.R/man/enve.recplot2.Rd +77 -0
  226. data/utils/enveomics/enveomics.R/man/enve.recplot2.__counts.Rd +28 -0
  227. data/utils/enveomics/enveomics.R/man/enve.recplot2.__peakHist.Rd +24 -0
  228. data/utils/enveomics/enveomics.R/man/enve.recplot2.__whichClosestPeak.Rd +22 -0
  229. data/utils/enveomics/enveomics.R/man/enve.recplot2.changeCutoff.Rd +22 -0
  230. data/utils/enveomics/enveomics.R/man/enve.recplot2.compareIdentities.Rd +52 -0
  231. data/utils/enveomics/enveomics.R/man/enve.recplot2.coordinates.Rd +29 -0
  232. data/utils/enveomics/enveomics.R/man/enve.recplot2.corePeak.Rd +21 -0
  233. data/utils/enveomics/enveomics.R/man/enve.recplot2.extractWindows.Rd +45 -0
  234. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.Rd +34 -0
  235. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__em_e.Rd +23 -0
  236. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__em_m.Rd +24 -0
  237. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__emauto_one.Rd +31 -0
  238. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__mow_one.Rd +56 -0
  239. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.__mower.Rd +20 -0
  240. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.em.Rd +51 -0
  241. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.emauto.Rd +43 -0
  242. data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.mower.Rd +82 -0
  243. data/utils/enveomics/enveomics.R/man/enve.recplot2.peak-class.Rd +59 -0
  244. data/utils/enveomics/enveomics.R/man/enve.recplot2.seqdepth.Rd +27 -0
  245. data/utils/enveomics/enveomics.R/man/enve.recplot2.windowDepthThreshold.Rd +36 -0
  246. data/utils/enveomics/enveomics.R/man/enve.selvector.Rd +23 -0
  247. data/utils/enveomics/enveomics.R/man/enve.tribs.Rd +68 -0
  248. data/utils/enveomics/enveomics.R/man/enve.tribs.test.Rd +28 -0
  249. data/utils/enveomics/enveomics.R/man/enve.truncate.Rd +27 -0
  250. data/utils/enveomics/enveomics.R/man/growth.curves.Rd +14 -0
  251. data/utils/enveomics/enveomics.R/man/phyla.counts.Rd +13 -0
  252. data/utils/enveomics/enveomics.R/man/plot.enve.GrowthCurve.Rd +81 -0
  253. data/utils/enveomics/enveomics.R/man/plot.enve.TRIBS.Rd +49 -0
  254. data/utils/enveomics/enveomics.R/man/plot.enve.TRIBStest.Rd +48 -0
  255. data/utils/enveomics/enveomics.R/man/plot.enve.recplot2.Rd +125 -0
  256. data/utils/enveomics/enveomics.R/man/summary.enve.GrowthCurve.Rd +22 -0
  257. data/utils/enveomics/enveomics.R/man/summary.enve.TRIBS.Rd +22 -0
  258. data/utils/enveomics/enveomics.R/man/summary.enve.TRIBStest.Rd +22 -0
  259. data/utils/enveomics/globals.mk +8 -0
  260. data/utils/enveomics/manifest.json +9 -0
  261. data/utils/multitrim/Multitrim How-To.pdf +0 -0
  262. data/utils/multitrim/README.md +67 -0
  263. data/utils/multitrim/multitrim.py +1555 -0
  264. data/utils/multitrim/multitrim.yml +13 -0
  265. metadata +268 -6
@@ -0,0 +1,233 @@
1
+ 8528 8627 97.03 169 2
2
+ 4500 4599 94.00 152 3
3
+ 554 653 96.00 161 6
4
+ 5564 5663 93.07 147 9
5
+ 1542 1641 95.00 158 12
6
+ 4743 4842 94.00 152 14
7
+ 2565 2664 94.12 154 17
8
+ 7723 7822 96.00 161 18
9
+ 2461 2560 94.12 154 19
10
+ 7817 7913 96.94 163 23
11
+ 8553 8649 96.91 163 25
12
+ 214 310 96.91 163 28
13
+ 2602 2701 94.12 154 33
14
+ 2086 2185 97.00 169 34
15
+ 3397 3496 94.00 150 35
16
+ 1333 1430 93.94 148 40
17
+ 6501 6600 97.03 169 44
18
+ 673 772 96.00 163 46
19
+ 6090 6189 95.05 158 47
20
+ 316 415 96.00 163 48
21
+ 4830 4929 97.00 169 49
22
+ 3925 4024 95.00 156 50
23
+ 6472 6571 95.05 158 51
24
+ 5396 5495 95.00 158 52
25
+ 958 1057 96.00 163 55
26
+ 6744 6841 93.94 148 56
27
+ 5974 6073 96.04 163 58
28
+ 5867 5966 94.06 152 60
29
+ 5438 5536 96.97 167 63
30
+ 7137 7236 97.03 169 65
31
+ 5002 5101 96.04 163 66
32
+ 8509 8606 94.90 154 68
33
+ 7966 8064 97.98 171 70
34
+ 1900 1999 93.14 148 71
35
+ 7554 7653 93.07 147 72
36
+ 7408 7507 94.06 152 73
37
+ 9071 9170 96.00 163 75
38
+ 2 85 95.24 134 75
39
+ 3295 3394 96.00 161 76
40
+ 68 167 94.12 152 79
41
+ 2903 3002 94.00 150 81
42
+ 7980 8079 94.00 150 85
43
+ 3125 3222 96.00 161 86
44
+ 8312 8411 94.06 152 87
45
+ 3810 3905 97.92 167 91
46
+ 8816 8915 95.00 156 97
47
+ 3465 3564 95.00 158 100
48
+ 6573 6672 96.04 163 109
49
+ 7433 7533 93.20 148 110
50
+ 8530 8629 95.00 156 112
51
+ 1002 1097 94.85 150 113
52
+ 109 208 95.00 156 114
53
+ 4311 4409 95.96 161 116
54
+ 2592 2688 96.91 161 117
55
+ 4431 4530 94.06 152 122
56
+ 6772 6868 96.91 163 123
57
+ 869 968 94.00 150 125
58
+ 8525 8624 98.00 174 126
59
+ 4762 4859 93.88 148 127
60
+ 3092 3191 97.00 169 128
61
+ 2768 2865 97.96 171 132
62
+ 3781 3880 94.00 150 138
63
+ 390 486 95.88 158 143
64
+ 7602 7699 94.90 154 147
65
+ 4126 4225 93.00 145 148
66
+ 6974 7073 97.00 169 151
67
+ 872 968 97.94 169 152
68
+ 6321 6420 95.00 158 153
69
+ 7890 7989 96.00 163 157
70
+ 7250 7348 97.98 172 159
71
+ 6863 6962 93.14 148 164
72
+ 4252 4351 96.00 161 165
73
+ 5421 5520 94.00 152 166
74
+ 1997 2096 94.00 150 167
75
+ 6221 6320 95.00 156 168
76
+ 4212 4311 99.00 178 169
77
+ 161 259 95.05 158 170
78
+ 1836 1935 96.00 161 172
79
+ 4646 4745 93.00 147 173
80
+ 2246 2345 95.00 156 175
81
+ 4141 4240 92.08 141 177
82
+ 7714 7813 94.12 152 181
83
+ 2761 2860 95.00 156 185
84
+ 2329 2428 96.00 161 189
85
+ 951 1050 94.00 152 191
86
+ 6926 7025 95.00 158 193
87
+ 3092 3190 92.00 139 195
88
+ 7058 7157 94.00 150 196
89
+ 8895 8994 95.00 156 198
90
+ 5428 5527 95.05 156 199
91
+ 6003 6102 94.00 150 200
92
+ 704 800 96.91 163 205
93
+ 6180 6279 96.08 165 206
94
+ 1441 1540 96.00 163 207
95
+ 4364 4462 94.00 150 210
96
+ 3275 3374 95.05 158 211
97
+ 2430 2529 97.00 169 213
98
+ 2594 2693 95.05 158 215
99
+ 3876 3975 97.00 167 217
100
+ 1203 1302 96.00 161 219
101
+ 2220 2319 98.00 174 221
102
+ 9053 9152 95.00 156 223
103
+ 2 67 93.94 99.0 223
104
+ 5239 5338 95.00 158 225
105
+ 2780 2879 94.06 152 228
106
+ 423 521 92.93 145 230
107
+ 273 372 95.00 158 231
108
+ 4097 4196 95.00 158 233
109
+ 7224 7323 93.00 147 234
110
+ 8474 8573 97.00 169 237
111
+ 5615 5714 96.00 163 238
112
+ 8804 8900 95.88 158 239
113
+ 6719 6818 95.05 158 240
114
+ 5362 5458 94.85 150 242
115
+ 866 965 94.06 152 251
116
+ 8442 8541 92.00 139 253
117
+ 7073 7172 94.06 152 254
118
+ 1580 1679 91.00 135 255
119
+ 4603 4700 95.92 158 256
120
+ 519 618 97.00 167 260
121
+ 3213 3312 97.00 169 261
122
+ 8968 9067 96.00 163 264
123
+ 6509 6605 97.94 169 270
124
+ 7649 7748 96.00 161 271
125
+ 8332 8431 93.27 150 273
126
+ 7708 7807 94.06 152 274
127
+ 6755 6854 97.00 167 275
128
+ 8704 8803 97.00 169 277
129
+ 4942 5041 96.00 161 278
130
+ 926 1025 96.00 161 280
131
+ 213 312 94.06 152 284
132
+ 5883 5980 96.94 165 285
133
+ 3427 3526 93.07 147 287
134
+ 6898 6997 97.03 169 288
135
+ 493 592 95.00 158 290
136
+ 5247 5344 94.95 154 295
137
+ 1142 1241 96.04 163 297
138
+ 837 935 97.00 167 298
139
+ 5087 5186 93.00 145 301
140
+ 9019 9115 94.90 152 302
141
+ 8527 8621 96.88 159 303
142
+ 9067 9166 95.00 156 305
143
+ 2 81 95.00 124 305
144
+ 3165 3264 94.00 152 307
145
+ 2303 2402 95.05 158 313
146
+ 6553 6652 94.00 150 315
147
+ 4703 4802 96.00 163 316
148
+ 5364 5463 96.00 163 319
149
+ 4306 4404 97.98 172 320
150
+ 2971 3070 95.05 158 321
151
+ 3652 3751 97.03 169 322
152
+ 8972 9071 93.00 145 323
153
+ 7302 7401 96.00 161 325
154
+ 1543 1642 94.06 150 326
155
+ 6034 6133 98.00 174 332
156
+ 4963 5054 93.48 135 333
157
+ 5103 5202 94.06 152 335
158
+ 1002 1097 92.71 139 336
159
+ 3007 3106 93.14 148 338
160
+ 5658 5755 95.92 158 339
161
+ 830 929 94.06 152 342
162
+ 6979 7078 93.07 147 343
163
+ 3926 4025 94.06 152 344
164
+ 2047 2145 95.96 159 345
165
+ 7952 8051 95.00 158 353
166
+ 9018 9111 96.81 158 354
167
+ 5508 5607 91.09 135 355
168
+ 5710 5809 93.07 147 362
169
+ 6296 6395 94.00 152 363
170
+ 6554 6653 97.00 169 368
171
+ 7297 7396 98.00 174 369
172
+ 31 129 96.00 161 370
173
+ 9116 9182 95.59 108 370
174
+ 6688 6787 93.00 147 371
175
+ 5769 5868 96.04 163 372
176
+ 5461 5560 96.00 163 376
177
+ 1438 1537 96.00 161 377
178
+ 3870 3969 97.00 167 380
179
+ 6937 7036 95.00 158 385
180
+ 1765 1861 96.94 163 387
181
+ 7150 7249 95.00 158 388
182
+ 6866 6962 97.94 169 389
183
+ 678 777 94.06 152 393
184
+ 2441 2540 95.00 156 396
185
+ 5634 5733 95.00 156 404
186
+ 5456 5555 96.00 161 405
187
+ 6463 6562 95.00 158 407
188
+ 122 221 95.05 158 408
189
+ 4519 4618 94.00 152 412
190
+ 3679 3778 95.00 158 413
191
+ 8626 8725 94.00 152 416
192
+ 6577 6676 93.00 147 417
193
+ 8543 8639 95.88 156 418
194
+ 8753 8852 96.00 161 420
195
+ 2224 2323 93.07 147 421
196
+ 6645 6744 93.00 145 422
197
+ 3892 3991 92.00 139 425
198
+ 3599 3698 97.00 169 426
199
+ 1408 1508 96.04 165 428
200
+ 3341 3440 97.00 167 429
201
+ 8316 8415 95.00 156 436
202
+ 1809 1908 96.00 163 438
203
+ 7770 7869 97.00 169 439
204
+ 7250 7349 97.00 169 440
205
+ 5590 5688 93.94 150 441
206
+ 8475 8574 98.02 174 443
207
+ 2139 2237 95.96 161 446
208
+ 4074 4173 95.00 158 448
209
+ 5269 5367 95.00 156 450
210
+ 7237 7336 96.00 161 451
211
+ 2461 2559 94.06 152 454
212
+ 1168 1267 95.05 158 455
213
+ 3083 3178 95.88 156 457
214
+ 5129 5228 99.00 180 463
215
+ 8590 8684 96.84 159 464
216
+ 2677 2776 93.20 148 465
217
+ 8332 8431 95.00 156 466
218
+ 7692 7791 96.04 163 470
219
+ 51 150 95.00 158 471
220
+ 1397 1496 98.00 172 472
221
+ 42 141 94.00 152 475
222
+ 2117 2216 96.00 161 476
223
+ 5481 5579 93.94 147 482
224
+ 7809 7908 95.00 158 485
225
+ 4991 5089 94.00 148 486
226
+ 9059 9158 97.00 167 487
227
+ 2 73 95.83 115 487
228
+ 133 232 95.10 158 488
229
+ 6966 7065 95.10 159 490
230
+ 6296 6390 96.84 158 492
231
+ 4728 4827 97.00 169 495
232
+ 4205 4304 96.08 165 498
233
+ 6833 6932 98.00 172 499
Binary file
@@ -0,0 +1,10 @@
1
+ OTU Site A Site B Site C Site D
2
+ Actinobacteria 22 1 2 22
3
+ Dehalococcoidia 44 3 2 44
4
+ Fusobacteria 1 4 2 32
5
+ Nitrospirae 32 3 6 1
6
+ Planctomycetes 11 2 1 11
7
+ Proteobacteria 77 25 38 7
8
+ Spirochaetes 4 11 7 3
9
+ Thermotogae 2 11 1 2
10
+ unclassified 1 1 1 1
@@ -0,0 +1,11 @@
1
+ hiv1 hiv2 siv
2
+ lcl|AF033819.3_prot_AAC82593.1_1 lcl|NC_001722.1_prot_NP_056837.1_2 lcl|NC_001549.1_prot_NP_054369.1_2
3
+ lcl|AF033819.3_prot_AAC82598.2_2 lcl|NC_001722.1_prot_NP_663784.1_1 lcl|NC_001549.1_prot_NP_687035.1_1
4
+ lcl|AF033819.3_prot_AAC82594.1_3 lcl|NC_001722.1_prot_NP_056839.1_3 lcl|NC_001549.1_prot_NP_054370.1_3
5
+ lcl|AF033819.3_prot_AAC82595.1_4 lcl|NC_001722.1_prot_NP_056841.1_5 lcl|NC_001549.1_prot_NP_054371.1_4
6
+ lcl|AF033819.3_prot_AAC82591.1_5 lcl|NC_001722.1_prot_NP_056842.1_6 -
7
+ lcl|AF033819.3_prot_AAC82592.1_6 lcl|NC_001722.1_prot_NP_056843.1_7 -
8
+ lcl|AF033819.3_prot_AAD20388.1_7 - -
9
+ lcl|AF033819.3_prot_AAC82596.1_8 lcl|NC_001722.1_prot_NP_056844.1_8 lcl|NC_001549.1_prot_NP_054372.1_5
10
+ lcl|AF033819.3_prot_AAC82597.1_9 lcl|NC_001722.1_prot_NP_056845.1_9 lcl|NC_001549.1_prot_NP_054373.1_6
11
+ - lcl|NC_001722.1_prot_NP_056840.1_4 -
@@ -0,0 +1,9 @@
1
+ lcl|AF033819.3_prot_AAC82593.1_1 lcl|AF033819.3_prot_AAC82593.1_1 100.00 500 0 0 1 500 1 500 0.0 1044 500 500
2
+ lcl|AF033819.3_prot_AAC82598.2_2 lcl|AF033819.3_prot_AAC82598.2_2 100.00 1003 0 0 1 1003 1 1003 0.0 2062 1003 1003
3
+ lcl|AF033819.3_prot_AAC82594.1_3 lcl|AF033819.3_prot_AAC82594.1_3 100.00 192 0 0 1 192 1 192 6e-147 400 192 192
4
+ lcl|AF033819.3_prot_AAC82595.1_4 lcl|AF033819.3_prot_AAC82595.1_4 100.00 78 0 0 1 78 1 78 4e-56 161 78 78
5
+ lcl|AF033819.3_prot_AAC82591.1_5 lcl|AF033819.3_prot_AAC82591.1_5 100.00 86 0 0 1 86 1 86 6e-63 179 86 86
6
+ lcl|AF033819.3_prot_AAC82592.1_6 lcl|AF033819.3_prot_AAC82592.1_6 100.00 116 0 0 1 116 1 116 1e-82 231 116 116
7
+ lcl|AF033819.3_prot_AAD20388.1_7 lcl|AF033819.3_prot_AAD20388.1_7 100.00 82 0 0 1 82 1 82 2e-54 157 82 82
8
+ lcl|AF033819.3_prot_AAC82596.1_8 lcl|AF033819.3_prot_AAC82596.1_8 100.00 856 0 0 1 856 1 856 0.0 1770 856 856
9
+ lcl|AF033819.3_prot_AAC82597.1_9 lcl|AF033819.3_prot_AAC82597.1_9 100.00 123 0 0 1 123 1 123 1e-92 257 123 123
@@ -0,0 +1,8 @@
1
+ lcl|AF033819.3_prot_AAC82593.1_1 lcl|NC_001722.1_prot_NP_056837.1_2 58.19 452 178 7 1 448 1 445 0.0 526 500 521
2
+ lcl|AF033819.3_prot_AAC82598.2_2 lcl|NC_001722.1_prot_NP_663784.1_1 58.24 953 397 1 42 994 498 1449 0.0 1169 1003 1550
3
+ lcl|AF033819.3_prot_AAC82594.1_3 lcl|NC_001722.1_prot_NP_056839.1_3 33.75 160 91 6 2 153 4 156 2e-20 75.9 192 215
4
+ lcl|AF033819.3_prot_AAC82595.1_4 lcl|NC_001722.1_prot_NP_056841.1_5 40.79 76 45 0 2 77 7 82 1e-18 65.9 78 87
5
+ lcl|AF033819.3_prot_AAC82591.1_5 lcl|NC_001722.1_prot_NP_056842.1_6 67.74 31 9 1 18 47 46 76 9e-12 47.8 86 130
6
+ lcl|AF033819.3_prot_AAC82592.1_6 lcl|NC_001722.1_prot_NP_056843.1_7 46.43 28 14 1 8 34 5 32 0.004 25.0 116 103
7
+ lcl|AF033819.3_prot_AAC82596.1_8 lcl|NC_001722.1_prot_NP_056844.1_8 34.47 879 492 22 25 856 19 860 3e-146 447 856 860
8
+ lcl|AF033819.3_prot_AAC82597.1_9 lcl|NC_001722.1_prot_NP_056845.1_9 56.90 58 25 0 66 123 98 155 2e-22 80.1 123 257
@@ -0,0 +1,6 @@
1
+ lcl|AF033819.3_prot_AAC82593.1_1 lcl|NC_001549.1_prot_NP_054369.1_2 52.67 524 208 9 1 496 1 512 0.0 518 500 513
2
+ lcl|AF033819.3_prot_AAC82598.2_2 lcl|NC_001549.1_prot_NP_687035.1_1 60.25 966 373 6 36 994 487 1448 0.0 1196 1003 1472
3
+ lcl|AF033819.3_prot_AAC82594.1_3 lcl|NC_001549.1_prot_NP_054370.1_3 38.71 155 87 7 2 152 4 154 1e-25 90.9 192 219
4
+ lcl|AF033819.3_prot_AAC82595.1_4 lcl|NC_001549.1_prot_NP_054371.1_4 30.43 69 40 3 11 73 21 87 4e-07 34.3 78 118
5
+ lcl|AF033819.3_prot_AAC82596.1_8 lcl|NC_001549.1_prot_NP_054372.1_5 36.16 874 464 26 34 855 22 853 5e-154 467 856 854
6
+ lcl|AF033819.3_prot_AAC82597.1_9 lcl|NC_001549.1_prot_NP_054373.1_6 60.34 58 23 0 66 123 82 139 5e-21 75.9 123 223
@@ -0,0 +1,9 @@
1
+ lcl|NC_001722.1_prot_NP_663784.1_1 lcl|NC_001722.1_prot_NP_663784.1_1 100.00 1550 0 0 1 1550 1 1550 0.0 3210 1550 1550
2
+ lcl|NC_001722.1_prot_NP_056837.1_2 lcl|NC_001722.1_prot_NP_056837.1_2 100.00 521 0 0 1 521 1 521 0.0 1077 521 521
3
+ lcl|NC_001722.1_prot_NP_056839.1_3 lcl|NC_001722.1_prot_NP_056839.1_3 100.00 215 0 0 1 215 1 215 5e-164 446 215 215
4
+ lcl|NC_001722.1_prot_NP_056840.1_4 lcl|NC_001722.1_prot_NP_056840.1_4 100.00 113 0 0 1 113 1 113 6e-85 237 113 113
5
+ lcl|NC_001722.1_prot_NP_056841.1_5 lcl|NC_001722.1_prot_NP_056841.1_5 100.00 87 0 0 1 87 1 87 5e-63 179 87 87
6
+ lcl|NC_001722.1_prot_NP_056842.1_6 lcl|NC_001722.1_prot_NP_056842.1_6 100.00 130 0 0 1 130 1 130 4e-94 262 130 130
7
+ lcl|NC_001722.1_prot_NP_056843.1_7 lcl|NC_001722.1_prot_NP_056843.1_7 100.00 103 0 0 1 103 1 103 2e-72 204 103 103
8
+ lcl|NC_001722.1_prot_NP_056844.1_8 lcl|NC_001722.1_prot_NP_056844.1_8 100.00 860 0 0 1 860 1 860 0.0 1799 860 860
9
+ lcl|NC_001722.1_prot_NP_056845.1_9 lcl|NC_001722.1_prot_NP_056845.1_9 100.00 257 0 0 1 257 1 257 0.0 536 257 257
@@ -0,0 +1,6 @@
1
+ lcl|NC_001722.1_prot_NP_663784.1_1 lcl|NC_001549.1_prot_NP_687035.1_1 56.99 1474 601 10 1 1458 1 1457 0.0 1697 1550 1472
2
+ lcl|NC_001722.1_prot_NP_056837.1_2 lcl|NC_001549.1_prot_NP_054369.1_2 57.39 528 203 7 1 521 1 513 0.0 593 521 513
3
+ lcl|NC_001722.1_prot_NP_056839.1_3 lcl|NC_001549.1_prot_NP_054370.1_3 44.97 169 88 5 1 167 1 166 6e-41 132 215 219
4
+ lcl|NC_001722.1_prot_NP_056841.1_5 lcl|NC_001549.1_prot_NP_054371.1_4 35.21 71 42 2 17 83 22 92 3e-11 46.2 87 118
5
+ lcl|NC_001722.1_prot_NP_056844.1_8 lcl|NC_001549.1_prot_NP_054372.1_5 44.90 873 401 14 25 859 23 853 0.0 714 860 854
6
+ lcl|NC_001722.1_prot_NP_056845.1_9 lcl|NC_001549.1_prot_NP_054373.1_6 41.74 230 108 5 1 224 1 210 2e-50 158 257 223
@@ -0,0 +1,6 @@
1
+ lcl|NC_001549.1_prot_NP_687035.1_1 lcl|NC_001549.1_prot_NP_687035.1_1 100.00 1472 0 0 1 1472 1 1472 0.0 3045 1472 1472
2
+ lcl|NC_001549.1_prot_NP_054369.1_2 lcl|NC_001549.1_prot_NP_054369.1_2 100.00 513 0 0 1 513 1 513 0.0 1067 513 513
3
+ lcl|NC_001549.1_prot_NP_054370.1_3 lcl|NC_001549.1_prot_NP_054370.1_3 100.00 219 0 0 1 219 1 219 7e-169 459 219 219
4
+ lcl|NC_001549.1_prot_NP_054371.1_4 lcl|NC_001549.1_prot_NP_054371.1_4 100.00 118 0 0 1 118 1 118 3e-87 243 118 118
5
+ lcl|NC_001549.1_prot_NP_054372.1_5 lcl|NC_001549.1_prot_NP_054372.1_5 100.00 854 0 0 1 854 1 854 0.0 1776 854 854
6
+ lcl|NC_001549.1_prot_NP_054373.1_6 lcl|NC_001549.1_prot_NP_054373.1_6 100.00 223 0 0 1 223 1 223 5e-170 462 223 223
@@ -0,0 +1,45 @@
1
+ #!/bin/bash
2
+
3
+ cd $(dirname -- $0)/enveomics.R
4
+ rm man/*
5
+ echo '
6
+ \name{phyla.counts}
7
+ \docType{data}
8
+ \alias{phyla.counts}
9
+ \title{Counts of microbial phyla in four sites}
10
+ \description{
11
+ This data set gives the counts of phyla in three different
12
+ sites.
13
+ }
14
+ \usage{phyla.counts}
15
+ \format{A data frame with 9 rows (phyla) and 4 rows (sites).}
16
+ \keyword{datasets}
17
+ ' > man/phyla.counts.Rd
18
+ echo '
19
+ \name{growth.curves}
20
+ \docType{data}
21
+ \alias{growth.curves}
22
+ \title{Bacterial growth curves for three Escherichia coli mutants}
23
+ \description{
24
+ This data set provides time (first column) and three triplicated growth
25
+ curves as optical density at 600nm (OD_600nm) for different mutants of E.
26
+ coli.
27
+ }
28
+ \usage{growth.curves}
29
+ \format{A data frame with 16 rows (times) and 10 rows (times and OD_600nm).}
30
+ \keyword{datasets}
31
+ ' > man/growth.curves.Rd
32
+ echo 'roxygen2::roxygenise();' | R --vanilla
33
+ #echo "
34
+ #library(inlinedocs)
35
+ #package.skeleton.dx('./');
36
+ #" | R --vanilla
37
+ #cat man/enveomics.R-package.Rd | tr -d '\r' \
38
+ # | grep -v '^}$' | grep -v '^\\author{' \
39
+ # | grep -v '^Maintainer' \
40
+ # | perl -pe 's/^\\keyword/}\n\\author{Luis M. Rodriguez-R <lmrodriguezr\@gmail.com> [aut, cre]}\n\n\\keyword/' \
41
+ # | perl -lwe '$/=\0; $_=<>; s/^\\details{\n+([^}].*\n+)*}\n+//mg; print' \
42
+ # > o && mv o man/enveomics.R-package.Rd
43
+ #[[ ! -d inst/doc ]] && mkdir -p inst/doc
44
+ #pandoc -o inst/doc/enveomics.R.pdf -f markdown_github README.md
45
+
@@ -0,0 +1,31 @@
1
+ Package: enveomics.R
2
+ Version: 1.9.0
3
+ Authors@R: c(person("Luis M.", "Rodriguez-R", role = c("aut", "cre"),
4
+ email = "lmrodriguezr@gmail.com"))
5
+ Title: Various Utilities for Microbial Genomics and Metagenomics
6
+ Description: A collection of functions for microbial ecology and other
7
+ applications of genomics and metagenomics. Companion package for the
8
+ Enveomics Collection (Rodriguez-R, L.M. and Konstantinidis, K.T., 2016
9
+ <DOI:10.7287/peerj.preprints.1900v1>).
10
+ Author: Luis M. Rodriguez-R [aut, cre]
11
+ Maintainer: Luis M. Rodriguez-R <lmrodriguezr@gmail.com>
12
+ URL: http://enve-omics.ce.gatech.edu/enveomics/
13
+ Depends:
14
+ R (>= 2.9),
15
+ stats,
16
+ methods,
17
+ parallel,
18
+ fitdistrplus,
19
+ sn,
20
+ investr
21
+ Suggests:
22
+ tools,
23
+ vegan,
24
+ ape,
25
+ picante,
26
+ gplots,
27
+ optparse
28
+ License: Artistic-2.0
29
+ LazyData: yes
30
+ Encoding: UTF-8
31
+ RoxygenNote: 7.1.2
@@ -0,0 +1,39 @@
1
+ import(methods)
2
+ import(parallel)
3
+ import(fitdistrplus)
4
+ import(sn)
5
+ importFrom("investr", "predFit")
6
+ importFrom("grDevices", "boxplot.stats", "col2rgb", "grey", "rainbow",
7
+ "rgb")
8
+ importFrom("graphics", "abline", "axis", "barplot", "hist", "image",
9
+ "layout", "legend", "lines", "par", "points", "polygon",
10
+ "rect", "text")
11
+ importFrom("stats", "as.dist", "cophenetic", "cor", "median",
12
+ "quantile", "runif", "smooth.spline", "nls", "nls.control", "qnorm",
13
+ "dnorm", "kmeans")
14
+ importFrom("utils", "head", "read.table", "setTxtProgressBar", "tail",
15
+ "txtProgressBar")
16
+ exportClasses(enve.RecPlot2, enve.RecPlot2.Peak, enve.TRIBS, enve.TRIBStest,
17
+ enve.GrowthCurve)
18
+ S3method(plot, enve.RecPlot2)
19
+ S3method(plot, enve.TRIBS)
20
+ S3method(plot, enve.TRIBStest)
21
+ S3method(plot, enve.GrowthCurve)
22
+ S3method(summary, enve.TRIBS)
23
+ S3method(summary, enve.TRIBStest)
24
+ S3method(summary, enve.GrowthCurve)
25
+ export(
26
+ enve.cliopts, enve.col.alpha,
27
+ enve.barplot, enve.recplot, enve.prune.dist,
28
+ enve.tribs, plot.enve.TRIBS, summary.enve.TRIBS, enve.tribs.test,
29
+ plot.enve.TRIBStest, summary.enve.TRIBStest,
30
+ enve.df2dist, enve.df2dist.group, enve.df2dist.list,
31
+ enve.recplot2, plot.enve.RecPlot2, enve.recplot2.findPeaks,
32
+ enve.recplot2.findPeaks.emauto, enve.recplot2.findPeaks.em,
33
+ enve.recplot2.findPeaks.mower,
34
+ enve.recplot2.corePeak, enve.recplot2.changeCutoff,
35
+ enve.recplot2.windowDepthThreshold, enve.recplot2.extractWindows,
36
+ enve.recplot2.compareIdentities,
37
+ enve.recplot2.coordinates, enve.recplot2.seqdepth, enve.recplot2.ANIr,
38
+ enve.growthcurve, plot.enve.GrowthCurve, summary.enve.GrowthCurve,
39
+ enve.col2alpha, enve.truncate, enve.selvector, enve.prefscore)
@@ -0,0 +1,167 @@
1
+ #' Enveomics: Prune Dist
2
+ #'
3
+ #' Automatically prunes a tree, to keep representatives of each clade.
4
+ #'
5
+ #' @param t A \strong{phylo} object or a path to the Newick file.
6
+ #' @param dist.quantile The quantile of edge lengths.
7
+ #' @param min_dist The minimum distance to allow between two tips.
8
+ #' If not set, \code{dist.quantile} is used instead to calculate it.
9
+ #' @param quiet Boolean indicating if the function must run without output.
10
+ #' @param max_iters Maximum number of iterations.
11
+ #' @param min_nodes_random
12
+ #' Minimum number of nodes to trigger \emph{tip-pairs} nodes sampling.
13
+ #' This sampling is less reproducible and more computationally expensive,
14
+ #' but it's the only solution if the cophenetic matrix exceeds \code{2^31-1}
15
+ #' entries; above that, it cannot be represented in R.
16
+ #' @param random_nodes_frx
17
+ #' Fraction of the nodes to be sampled if more than \code{min_nodes_random}.
18
+ #'
19
+ #' @return Returns a pruned \strong{phylo} object.
20
+ #'
21
+ #' @author Luis M. Rodriguez-R [aut, cre]
22
+ #'
23
+ #' @export
24
+
25
+ enve.prune.dist <- function(
26
+ t,
27
+ dist.quantile = 0.25,
28
+ min_dist,
29
+ quiet = FALSE,
30
+ max_iters = 100,
31
+ min_nodes_random = 4e4,
32
+ random_nodes_frx = 1
33
+ ) {
34
+ if (!requireNamespace("ape", quietly = TRUE))
35
+ stop('Unavailable ape library.');
36
+ if (is.character(t)) t <- ape::read.tree(t)
37
+ if (missing(min_dist)) {
38
+ if (dist.quantile > 0) {
39
+ min_dist <- as.numeric(quantile(t$edge.length, dist.quantile))
40
+ } else {
41
+ min_dist <- as.numeric(min(t$edge.length[t$edge.length>0]))
42
+ }
43
+ }
44
+ if (!quiet)
45
+ cat("\nObjective minimum distance: ", min_dist, ", initial tips: ",
46
+ length(t$tip.label), "\n", sep = "")
47
+
48
+ round <- 1
49
+ while (round <= max_iters) {
50
+ if (length(t$tip.label) > min_nodes_random) {
51
+ if (!quiet)
52
+ cat(" | Iter: ", round - 1, ", Tips: ", length(t$tip.label),
53
+ ", reducing tip-pairs.\n", sep = "")
54
+ rnd.nodes <- sample(t$tip.label, length(t$tip.label) * random_nodes_frx)
55
+ t <- enve.__prune.reduce(t, rnd.nodes, min_dist, quiet)
56
+ } else {
57
+ if (!quiet) cat(" Gathering distances...\r")
58
+ d <- cophenetic(t)
59
+ diag(d) <- NA
60
+ if(!quiet)
61
+ cat(" | Iter: ", round - 1, ", Tips: ", length(t$tip.label),
62
+ ", Median distance: ", median(d, na.rm = TRUE),
63
+ ", Minimum distance: ", min(d, na.rm = TRUE), "\n", sep = "")
64
+ # Run iteration
65
+ if (min(d, na.rm = TRUE) < min_dist) {
66
+ t <- enve.__prune.iter(t, d, min_dist, quiet)
67
+ } else {
68
+ break
69
+ }
70
+ }
71
+ round <- round + 1
72
+ }
73
+ return(t)
74
+ }
75
+
76
+ #' Enveomics: Prune Reduce (Internal Function)
77
+ #'
78
+ #' Internal function for \code{\link{enve.prune.dist}}.
79
+ #'
80
+ #' @param t A \strong{phylo} object.
81
+ #' @param nodes Vector of nodes.
82
+ #' @param min_dist Minimum distance.
83
+ #' @param quiet If running quietly.
84
+ #'
85
+ #' @return A \strong{phylo} object.
86
+ #'
87
+ #' @author Luis M. Rodriguez-R [aut, cre]
88
+ #'
89
+ #' @export
90
+
91
+ enve.__prune.reduce <- function(t, nodes, min_dist, quiet) {
92
+ if (!quiet) pb <- txtProgressBar(1, length(nodes), style = 3)
93
+ for (i in 1:length(nodes)) {
94
+ node.name <- nodes[i]
95
+ if (!quiet) setTxtProgressBar(pb, i)
96
+
97
+ # Get node ID
98
+ node <- which(t$tip.label == node.name)
99
+ if (length(node) == 0) next
100
+
101
+ # Get parent and distance to parent
102
+ parent.node <- t$edge[t$edge[, 2] == node, 1]
103
+
104
+ # Get edges to parent
105
+ parent.edges <- which(t$edge[, 1] == parent.node)
106
+ stopit <- FALSE
107
+ for (j in parent.edges) {
108
+ for (k in parent.edges) {
109
+ if (j != k & t$edge[j,2]<length(t$tip.label) &
110
+ t$edge[k,2]<length(t$tip.label) &
111
+ sum(t$edge.length[c(j,k)]) < min_dist) {
112
+ t <- ape::drop.tip(t, t$edge[k,2])
113
+ stopit <- TRUE
114
+ break
115
+ }
116
+ }
117
+ if (stopit) break
118
+ }
119
+ }
120
+ if (!quiet) cat("\n")
121
+ return(t)
122
+ }
123
+
124
+ #' Enveomics: Prune Iter (Internal Function)
125
+ #'
126
+ #' Internal function for \code{\link{enve.prune.dist}}.
127
+ #'
128
+ #' @param t A \strong{phylo} object.
129
+ #' @param dist Cophenetic distance matrix.
130
+ #' @param min_dist Minimum distance.
131
+ #' @param quiet If running quietly.
132
+ #'
133
+ #' @return Returns a \strong{phylo} object.
134
+ #'
135
+ #' @author Luis M. Rodriguez-R [aut, cre]
136
+ #'
137
+ #' @export
138
+
139
+ enve.__prune.iter <- function(t, dist, min_dist, quiet) {
140
+ ori_len <- length(t$tip.label)
141
+
142
+ # Prune
143
+ if (!quiet) pb <- txtProgressBar(1, ncol(dist) - 1, style = 3)
144
+ ignore <- c()
145
+ for (i in 1:(ncol(dist) - 1)) {
146
+ if (i %in% ignore) next
147
+ for (j in (i + 1):nrow(dist)) {
148
+ if (dist[j, i] < min_dist) {
149
+ t <- ape::drop.tip(t, rownames(dist)[j])
150
+ ignore <- c(ignore, j)
151
+ break
152
+ }
153
+ }
154
+ if (!quiet) setTxtProgressBar(pb, i)
155
+ }
156
+ if(!quiet) cat("\n")
157
+
158
+ # Check if it droped tips
159
+ cur_len <- length(t$tip.label)
160
+ if (cur_len == ori_len){
161
+ stop(
162
+ "Internal error: small edge found in tree, with no equivalent in distance matrix.\n"
163
+ )
164
+ }
165
+ return(t)
166
+ }
167
+