本文整理匯總了Python中puzzle.plugins.GeminiPlugin._get_genotypes方法的典型用法代碼示例。如果您正苦於以下問題:Python GeminiPlugin._get_genotypes方法的具體用法?Python GeminiPlugin._get_genotypes怎麽用?Python GeminiPlugin._get_genotypes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類puzzle.plugins.GeminiPlugin
的用法示例。
在下文中一共展示了GeminiPlugin._get_genotypes方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_get_genotypes
# 需要導入模塊: from puzzle.plugins import GeminiPlugin [as 別名]
# 或者: from puzzle.plugins.GeminiPlugin import _get_genotypes [as 別名]
def test_get_genotypes(gemini_variant):
adapter = GeminiPlugin()
ind = DotDict()
ind.ind_index = 0
ind.ind_id = '1'
ind.case_id = 'Case_1'
ind.phenotype = 2
ind_objs = [ind]
individual = adapter._get_genotypes(gemini_variant, ind_objs)[0]
assert individual.sample_id == ind.ind_id
assert individual.sample_id == ind.ind_id
assert individual.genotype == 'G/A'
assert individual.case_id == ind.case_id
assert individual.phenotype == ind.phenotype
assert individual.ref_depth == 10
assert individual.alt_depth == 7
assert individual.depth == 17
assert individual.genotype_quality == 99