Exemple #1
0
    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)
Exemple #2
0
    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)
Exemple #3
0
 def test_calculate_data(self):
     for data in ['tree', 'dst', 'cluster']:
         calculate_data(self.wordlist, data)
         calculate_data(self.wordlist, data, mode='shared')
Exemple #4
0
 def test_calculate_data(self):
     for data in ['tree', 'dst', 'cluster']:
         calculate_data(self.wordlist, data)
         calculate_data(self.wordlist, data, mode='shared')
Exemple #5
0
    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')
Exemple #6
0
    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')