Пример #1
0
    def variant_list(self):
        """
        Gets the list of variants. The (i, j) entry of the matrix encodes the Pearson correlation between the ith and jth variants.

        :return: List of variants.
        :rtype: list of Variant
        """
        jvars = self._jldm.variants()
        return list(map(lambda jrep: Variant._from_java(jrep), jvars))
Пример #2
0
    def variant_list(self):
        """
        Gets the list of variants. The (i, j) entry of the matrix encodes the Pearson correlation between the ith and jth variants.

        :return: List of variants.
        :rtype: list of Variant
        """
        jvars = self._jldm.variants()
        return list(map(lambda jrep: Variant._from_java(jrep), jvars))
Пример #3
0
 def _convert_to_py(self, annotation):
     if annotation:
         return Variant._from_java(annotation)
     else:
         return annotation
Пример #4
0
Файл: expr.py Проект: Fedja/hail
 def _convert_to_py(self, annotation):
     if annotation:
         return Variant._from_java(annotation)
     else:
         return annotation