miga-base 0.3.0.0 → 0.3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -4
- data/actions/init.rb +258 -0
- data/actions/run_local.rb +1 -2
- data/actions/test_taxonomy.rb +4 -1
- data/bin/miga +8 -1
- data/lib/miga/dataset.rb +4 -4
- data/lib/miga/dataset_result.rb +7 -4
- data/lib/miga/version.rb +2 -2
- data/scripts/_distances_noref_nomulti.bash +3 -1
- data/scripts/clade_finding.bash +1 -1
- data/scripts/init.bash +1 -1
- data/scripts/miga.bash +1 -1
- data/scripts/mytaxa.bash +78 -72
- data/scripts/mytaxa_scan.bash +67 -62
- data/scripts/ogs.bash +1 -1
- data/scripts/trimmed_fasta.bash +4 -3
- 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 +703 -0
- data/utils/enveomics/Manifest/Tasks/distances.json +161 -0
- data/utils/enveomics/Manifest/Tasks/fasta.json +571 -0
- data/utils/enveomics/Manifest/Tasks/fastq.json +208 -0
- data/utils/enveomics/Manifest/Tasks/graphics.json +126 -0
- data/utils/enveomics/Manifest/Tasks/ogs.json +339 -0
- data/utils/enveomics/Manifest/Tasks/other.json +746 -0
- data/utils/enveomics/Manifest/Tasks/remote.json +355 -0
- data/utils/enveomics/Manifest/Tasks/sequence-identity.json +454 -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 +132 -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 +56 -0
- data/utils/enveomics/Pipelines/assembly.pbs/FastA.filterN.pl +60 -0
- data/utils/enveomics/Pipelines/assembly.pbs/FastA.length.pl +38 -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 +55 -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 +40 -0
- data/utils/enveomics/Scripts/AAsubs.log2ratio.rb +171 -0
- data/utils/enveomics/Scripts/Aln.cat.rb +162 -0
- data/utils/enveomics/Scripts/Aln.convert.pl +35 -0
- data/utils/enveomics/Scripts/AlphaDiversity.pl +152 -0
- data/utils/enveomics/Scripts/BlastPairwise.AAsubs.pl +102 -0
- data/utils/enveomics/Scripts/BlastTab.addlen.rb +61 -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 +106 -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 +40 -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.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 +87 -0
- data/utils/enveomics/Scripts/FastA.length.pl +38 -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.slider.pl +85 -0
- data/utils/enveomics/Scripts/FastA.split.pl +55 -0
- data/utils/enveomics/Scripts/FastA.subsample.pl +131 -0
- data/utils/enveomics/Scripts/FastA.tag.rb +64 -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.toFastA.awk +24 -0
- data/utils/enveomics/Scripts/GenBank.add_fields.rb +84 -0
- data/utils/enveomics/Scripts/HMM.essential.rb +254 -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 +306 -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/RefSeq.download.bash +48 -0
- data/utils/enveomics/Scripts/SRA.download.bash +50 -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 +30 -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 +373 -0
- data/utils/enveomics/Scripts/ani.rb +362 -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/essential.hmm.gz +0 -0
- data/utils/enveomics/Scripts/lib/enveomics_rb/enveomics.rb +26 -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 +137 -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 +44 -0
- data/utils/enveomics/enveomics.R/DESCRIPTION +31 -0
- data/utils/enveomics/enveomics.R/NAMESPACE +35 -0
- data/utils/enveomics/enveomics.R/R/autoprune.R +121 -0
- data/utils/enveomics/enveomics.R/R/barplot.R +165 -0
- data/utils/enveomics/enveomics.R/R/cliopts.R +119 -0
- data/utils/enveomics/enveomics.R/R/df2dist.R +117 -0
- data/utils/enveomics/enveomics.R/R/growthcurve.R +263 -0
- data/utils/enveomics/enveomics.R/R/recplot.R +320 -0
- data/utils/enveomics/enveomics.R/R/recplot2.R +745 -0
- data/utils/enveomics/enveomics.R/R/tribs.R +423 -0
- data/utils/enveomics/enveomics.R/R/utils.R +16 -0
- data/utils/enveomics/enveomics.R/README.md +52 -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/enve.GrowthCurve-class.Rd +30 -0
- data/utils/enveomics/enveomics.R/man/enve.TRIBS-class.Rd +43 -0
- data/utils/enveomics/enveomics.R/man/enve.TRIBS.merge.Rd +19 -0
- data/utils/enveomics/enveomics.R/man/enve.TRIBStest-class.Rd +37 -0
- data/utils/enveomics/enveomics.R/man/enve.__prune.iter.Rd +24 -0
- data/utils/enveomics/enveomics.R/man/enve.__prune.reduce.Rd +24 -0
- data/utils/enveomics/enveomics.R/man/enve.__tribs.Rd +33 -0
- data/utils/enveomics/enveomics.R/man/enve.barplot.Rd +64 -0
- data/utils/enveomics/enveomics.R/man/enve.cliopts.Rd +37 -0
- data/utils/enveomics/enveomics.R/man/enve.col.alpha.Rd +19 -0
- data/utils/enveomics/enveomics.R/man/enve.col2alpha.Rd +18 -0
- data/utils/enveomics/enveomics.R/man/enve.df2dist.Rd +26 -0
- data/utils/enveomics/enveomics.R/man/enve.df2dist.group.Rd +25 -0
- data/utils/enveomics/enveomics.R/man/enve.df2dist.list.Rd +26 -0
- data/utils/enveomics/enveomics.R/man/enve.growthcurve.Rd +49 -0
- data/utils/enveomics/enveomics.R/man/enve.prune.dist.Rd +28 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot.Rd +97 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2-class.Rd +40 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.Rd +40 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__counts.Rd +24 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__findPeak.Rd +40 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__findPeaks.Rd +18 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__peakHist.Rd +22 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.__whichClosestPeak.Rd +20 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.changeCutoff.Rd +18 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.corePeak.Rd +18 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.extractWindows.Rd +27 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.findPeaks.Rd +53 -0
- data/utils/enveomics/enveomics.R/man/enve.recplot2.peak-class.Rd +44 -0
- data/utils/enveomics/enveomics.R/man/enve.tribs.Rd +44 -0
- data/utils/enveomics/enveomics.R/man/enve.tribs.test.Rd +21 -0
- data/utils/enveomics/enveomics.R/man/enveomics.R-package.Rd +15 -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 +43 -0
- data/utils/enveomics/enveomics.R/man/plot.enve.TRIBS.Rd +29 -0
- data/utils/enveomics/enveomics.R/man/plot.enve.TRIBStest.Rd +30 -0
- data/utils/enveomics/enveomics.R/man/plot.enve.recplot2.Rd +71 -0
- data/utils/enveomics/enveomics.R/man/summary.enve.GrowthCurve.Rd +18 -0
- data/utils/enveomics/enveomics.R/man/summary.enve.TRIBS.Rd +18 -0
- data/utils/enveomics/enveomics.R/man/summary.enve.TRIBStest.Rd +18 -0
- data/utils/enveomics/enveomics.R/man/z$-methods.Rd +27 -0
- data/utils/enveomics/globals.mk +8 -0
- data/utils/enveomics/manifest.json +9 -0
- data/utils/index_metadata.rb +0 -0
- data/utils/plot-taxdist.R +0 -0
- data/utils/requirements.txt +19 -19
- metadata +242 -2
@@ -0,0 +1 @@
|
|
1
|
+
gi|4558520|gb|AF033819.3| 1 9182
|
@@ -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
|
@@ -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,44 @@
|
|
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 "
|
33
|
+
library(inlinedocs)
|
34
|
+
package.skeleton.dx('./');
|
35
|
+
" | R --vanilla
|
36
|
+
cat man/enveomics.R-package.Rd | tr -d '\r' \
|
37
|
+
| grep -v '^}$' | grep -v '^\\author{' \
|
38
|
+
| grep -v '^Maintainer' \
|
39
|
+
| perl -pe 's/^\\keyword/}\n\\author{Luis M. Rodriguez-R <lmrodriguezr\@gmail.com> [aut, cre]}\n\n\\keyword/' \
|
40
|
+
| perl -lwe '$/=\0; $_=<>; s/^\\details{\n+([^}].*\n+)*}\n+//mg; print' \
|
41
|
+
> o && mv o man/enveomics.R-package.Rd
|
42
|
+
#[[ ! -d inst/doc ]] && mkdir -p inst/doc
|
43
|
+
#pandoc -o inst/doc/enveomics.R.pdf -f markdown_github README.md
|
44
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
Package: enveomics.R
|
2
|
+
Version: 1.1.5
|
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
|
+
modeest,
|
19
|
+
fitdistrplus,
|
20
|
+
sn,
|
21
|
+
investr
|
22
|
+
Suggests:
|
23
|
+
tools,
|
24
|
+
vegan,
|
25
|
+
ape,
|
26
|
+
picante,
|
27
|
+
gplots,
|
28
|
+
optparse
|
29
|
+
License: Artistic-2.0
|
30
|
+
LazyLoad: yes
|
31
|
+
Encoding: UTF-8
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import(methods)
|
2
|
+
import(modeest)
|
3
|
+
import(parallel)
|
4
|
+
import(fitdistrplus)
|
5
|
+
import(sn)
|
6
|
+
importFrom("investr", "predFit")
|
7
|
+
importFrom("grDevices", "boxplot.stats", "col2rgb", "grey", "rainbow",
|
8
|
+
"rgb")
|
9
|
+
importFrom("graphics", "abline", "axis", "barplot", "hist", "image",
|
10
|
+
"layout", "legend", "lines", "par", "points", "polygon",
|
11
|
+
"rect", "text")
|
12
|
+
importFrom("stats", "as.dist", "cophenetic", "cor", "median",
|
13
|
+
"quantile", "runif", "smooth.spline", "nls", "nls.control", "qnorm")
|
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.corePeak, enve.recplot2.changeCutoff,
|
33
|
+
enve.recplot2.extractWindows,
|
34
|
+
enve.growthcurve, plot.enve.GrowthCurve, summary.enve.GrowthCurve,
|
35
|
+
enve.col2alpha)
|
@@ -0,0 +1,121 @@
|
|
1
|
+
|
2
|
+
enve.prune.dist <- function
|
3
|
+
### Automatically prunes a tree, to keep representatives of each clade.
|
4
|
+
(t,
|
5
|
+
### A `phylo` object or a path to the Newick file.
|
6
|
+
dist.quantile=0.25,
|
7
|
+
### The quantile of edge lengths.
|
8
|
+
min_dist,
|
9
|
+
### The minimum distance to allow between two tips. If not set, dist.quantile is
|
10
|
+
### used instead to calculate it.
|
11
|
+
quiet=FALSE,
|
12
|
+
### Boolean indicating if the function must run without output.
|
13
|
+
max_iters=100,
|
14
|
+
### Maximum number of iterations.
|
15
|
+
min_nodes_random=4e4,
|
16
|
+
### Minimum number of nodes to trigger "tip-pairs" nodes sampling. This sampling
|
17
|
+
### is less reproducible and more computationally expensive, but it's the only
|
18
|
+
### solution if the cophenetic matrix exceeds 2^31-1 entries; above that, it
|
19
|
+
### cannot be represented in R.
|
20
|
+
random_nodes_frx=1
|
21
|
+
### Fraction of the nodes to be sampled if more than `min_nodes_random`.
|
22
|
+
){
|
23
|
+
if(!requireNamespace("ape", quietly=TRUE))
|
24
|
+
stop('Unavailable ape library.');
|
25
|
+
if(is.character(t)) t <- ape::read.tree(t)
|
26
|
+
if(missing(min_dist)){
|
27
|
+
if(dist.quantile>0){
|
28
|
+
min_dist <- as.numeric(quantile(t$edge.length, dist.quantile));
|
29
|
+
}else{
|
30
|
+
min_dist <- as.numeric(min(t$edge.length[t$edge.length>0]));
|
31
|
+
}
|
32
|
+
}
|
33
|
+
if(!quiet) cat('\nObjective minimum distance: ',min_dist,', initial tips: ',length(t$tip.label),'\n', sep='');
|
34
|
+
round=1;
|
35
|
+
while(round <= max_iters){
|
36
|
+
if(length(t$tip.label) > min_nodes_random){
|
37
|
+
if(!quiet) cat(' | Iter: ',round-1,', Tips: ', length(t$tip.label),
|
38
|
+
', reducing tip-pairs.\n', sep='');
|
39
|
+
rnd.nodes <- sample(t$tip.label, length(t$tip.label)*random_nodes_frx);
|
40
|
+
t <- enve.__prune.reduce(t, rnd.nodes, min_dist, quiet);
|
41
|
+
}else{
|
42
|
+
if(!quiet) cat(' Gathering distances...\r');
|
43
|
+
d <- cophenetic(t);
|
44
|
+
diag(d) <- NA;
|
45
|
+
if(!quiet) cat(' | Iter: ',round-1,', Tips: ', length(t$tip.label),
|
46
|
+
', Median distance: ', median(d, na.rm=TRUE),
|
47
|
+
', Minimum distance: ', min(d, na.rm=TRUE),
|
48
|
+
'\n', sep='');
|
49
|
+
# Run iteration
|
50
|
+
if(min(d, na.rm=TRUE) < min_dist){
|
51
|
+
t <- enve.__prune.iter(t, d, min_dist, quiet);
|
52
|
+
}else{
|
53
|
+
break;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
round <- round + 1;
|
57
|
+
}
|
58
|
+
return(t);
|
59
|
+
### Returns a pruned phylo object.
|
60
|
+
}
|
61
|
+
|
62
|
+
enve.__prune.reduce <- function
|
63
|
+
### Internal function for enve.prune.dist
|
64
|
+
(t, nodes, min_dist, quiet){
|
65
|
+
if(!quiet) pb <- txtProgressBar(1, length(nodes), style=3);
|
66
|
+
for(i in 1:length(nodes)){
|
67
|
+
node.name <- nodes[i];
|
68
|
+
if(!quiet) setTxtProgressBar(pb, i);
|
69
|
+
# Get node ID
|
70
|
+
node <- which(t$tip.label==node.name);
|
71
|
+
if(length(node)==0) next;
|
72
|
+
# Get parent and distance to parent
|
73
|
+
parent.node <- t$edge[ t$edge[,2]==node, 1];
|
74
|
+
# Get edges to parent
|
75
|
+
parent.edges <- which(t$edge[,1]==parent.node);
|
76
|
+
stopit <- FALSE;
|
77
|
+
for(j in parent.edges){
|
78
|
+
for(k in parent.edges){
|
79
|
+
if(j != k & t$edge[j,2]<length(t$tip.label) & t$edge[k,2]<length(t$tip.label) & sum(t$edge.length[c(j,k)]) < min_dist){
|
80
|
+
t <- ape::drop.tip(t, t$edge[k,2]);
|
81
|
+
stopit <- TRUE;
|
82
|
+
break;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
if(stopit) break;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
if(!quiet) cat('\n');
|
89
|
+
return(t);
|
90
|
+
}
|
91
|
+
|
92
|
+
enve.__prune.iter <- function
|
93
|
+
### Internal function for enve.prune.dist
|
94
|
+
(t,
|
95
|
+
dist,
|
96
|
+
min_dist,
|
97
|
+
quiet){
|
98
|
+
ori_len <- length(t$tip.label);
|
99
|
+
# Prune
|
100
|
+
if(!quiet) pb <- txtProgressBar(1, ncol(dist)-1, style=3);
|
101
|
+
ignore <- c();
|
102
|
+
for(i in 1:(ncol(dist)-1)){
|
103
|
+
if(i %in% ignore) next;
|
104
|
+
for(j in (i+1):nrow(dist)){
|
105
|
+
if(dist[j, i]<min_dist){
|
106
|
+
t <- ape::drop.tip(t, rownames(dist)[j]);
|
107
|
+
ignore <- c(ignore, j);
|
108
|
+
break;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
if(!quiet) setTxtProgressBar(pb, i);
|
112
|
+
}
|
113
|
+
if(!quiet) cat('\n');
|
114
|
+
# Check if it droped tips
|
115
|
+
cur_len <- length(t$tip.label);
|
116
|
+
if(cur_len == ori_len){
|
117
|
+
stop("Internal error: small edge found in tree, with no equivalent in distance matrix.\n");
|
118
|
+
}
|
119
|
+
return(t);
|
120
|
+
}
|
121
|
+
|