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))
def _convert_to_py(self, annotation): if annotation: return Variant._from_java(annotation) else: return annotation