Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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')
Ejemplo n.º 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')
Ejemplo n.º 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')
Ejemplo n.º 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')