Esempio n. 1
0
class StatsOnTaxonomy(object):
    """All the statistics to perform on an OTU table that has taxonomy
    associated to it."""

    all_paths = """
    /nmds/
    /permanova/
    /betadis/
    /unifrac/
    """

    def __init__(self, parent):
        # Save parent #
        self.tax, self.parent = parent, parent
        # Paths #
        self.p = AutoPaths(self.parent.p.stats_dir, self.all_paths)
        # R stuff #
        self.nmds = NMDS(self, self.parent.otu_csv)
        self.permanova = PERMANOVA(self)
        self.betadis = BetaDispersion(self)
        # Other #
        self.unifrac = Unifrac(self)

    def run(self):
        self.nmds.run()
        self.permanova.run()
        self.betadis.run()
Esempio n. 2
0
 def __init__(self, parent):
     # Save parent #
     self.tax, self.parent = parent, parent
     # Paths #
     self.p = AutoPaths(self.parent.p.stats_dir, self.all_paths)
     # R stuff #
     self.nmds = NMDS(self, self.parent.otu_csv)
     self.permanova = PERMANOVA(self)
     self.betadis = BetaDispersion(self)
     # Other #
     self.unifrac = Unifrac(self)