本文整理汇总了Python中pymodule.PassingData.row_id2NA_mismatch_rate方法的典型用法代码示例。如果您正苦于以下问题:Python PassingData.row_id2NA_mismatch_rate方法的具体用法?Python PassingData.row_id2NA_mismatch_rate怎么用?Python PassingData.row_id2NA_mismatch_rate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pymodule.PassingData
的用法示例。
在下文中一共展示了PassingData.row_id2NA_mismatch_rate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: qcDataMatrixVSsnpData
# 需要导入模块: from pymodule import PassingData [as 别名]
# 或者: from pymodule.PassingData import row_id2NA_mismatch_rate [as 别名]
def qcDataMatrixVSsnpData(self, pdata, snps_name2snps_id, snpData2, curs, session, readme):
"""
2008-08-16
split from run() to enable one_by_one option
"""
# swap the ecotype_id_ls and call_info_id_ls when passing them to SNPData. now strain_acc_list=ecotype_id_ls
snpData1 = SNPData(
header=pdata.header,
strain_acc_list=pdata.ecotype_id_ls,
category_list=pdata.call_info_id_ls,
data_matrix=pdata.data_matrix,
min_probability=self.min_probability,
call_method_id=self.call_method_id,
col_id2id=snps_name2snps_id,
max_call_info_mismatch_rate=self.max_call_info_mismatch_rate,
snps_table="stock_250k.snps",
)
# snps_table is set to the stock_250k snps_table
twoSNPData = TwoSNPData(
SNPData1=snpData1,
SNPData2=snpData2,
curs=curs,
QC_method_id=self.QC_method_id,
user=self.user,
row_matching_by_which_value=0,
debug=self.debug,
)
if self.run_type == 1:
row_id2NA_mismatch_rate = twoSNPData.cmp_row_wise()
elif self.run_type == 2:
twoSNPData.save_col_wise(session, readme)
row_id2NA_mismatch_rate = {}
else:
sys.stderr.write("run_type=%s is not supported.\n" % self.run_type)
sys.exit(5)
passingdata = PassingData()
passingdata.row_id2NA_mismatch_rate = row_id2NA_mismatch_rate
passingdata.row_id12row_id2 = twoSNPData.row_id12row_id2
return passingdata