本文整理匯總了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