def calculate(self, data, taxa='taxa', concepts='concepts', ref='cogid', **keywords): """ Function calculates specific data. Parameters ---------- data : str The type of data that shall be calculated. Currently supports * "tree": calculate a reference tree based on shared cognates * "dst": get distances between taxa based on shared cognates * "cluster": cluster the taxa into groups using different methods """ calculate_data(self, data, taxa, concepts, ref, **keywords)
def calculate( self, data, taxa='taxa', concepts='concepts', ref='cogid', **keywords): """ Function calculates specific data. Parameters ---------- data : str The type of data that shall be calculated. Currently supports * "tree": calculate a reference tree based on shared cognates * "dst": get distances between taxa based on shared cognates * "cluster": cluster the taxa into groups using different methods """ calculate_data(self, data, taxa, concepts, ref, **keywords)
def test_calculate_data(self): for data in ['tree', 'dst', 'cluster']: calculate_data(self.wordlist, data) calculate_data(self.wordlist, data, mode='shared')
def test_calculate_data(self): from lingpy.basic.ops import calculate_data for data in ['tree', 'dst', 'cluster']: calculate_data(self.wordlist, data) calculate_data(self.wordlist, data, mode='shared')