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()
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)