本文整理汇总了Python中Population.Population.from_wrapped_dict方法的典型用法代码示例。如果您正苦于以下问题:Python Population.from_wrapped_dict方法的具体用法?Python Population.from_wrapped_dict怎么用?Python Population.from_wrapped_dict使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Population.Population
的用法示例。
在下文中一共展示了Population.from_wrapped_dict方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: load_pop
# 需要导入模块: from Population import Population [as 别名]
# 或者: from Population.Population import from_wrapped_dict [as 别名]
def load_pop(file, wrapped_dict):
if file == '/dev/null':
pop = None
else:
pop = Population()
pop.from_wrapped_dict(wrapped_dict)
return pop
示例2: len
# 需要导入模块: from Population import Population [as 别名]
# 或者: from Population.Population import from_wrapped_dict [as 别名]
#!/usr/bin/env python
import gd_util
import sys
from Population import Population
################################################################################
if len(sys.argv) != 13:
gd_util.die('Usage')
input, p1_input, p2_input, input_type, data_source, min_reads, min_qual, retain, discard_fixed, biased, output, ind_arg = sys.argv[1:]
p_total = Population()
p_total.from_wrapped_dict(ind_arg)
p1 = Population()
p1.from_population_file(p1_input)
if not p_total.is_superset(p1):
gd_util.die('There is an individual in population 1 that is not in the SNP table')
p2 = Population()
p2.from_population_file(p2_input)
if not p_total.is_superset(p2):
gd_util.die('There is an individual in population 2 that is not in the SNP table')
################################################################################
prog = 'Fst_column'
args = [ prog ]