本文整理汇总了Python中pymodule.PassingData.list_type_id方法的典型用法代码示例。如果您正苦于以下问题:Python PassingData.list_type_id方法的具体用法?Python PassingData.list_type_id怎么用?Python PassingData.list_type_id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pymodule.PassingData
的用法示例。
在下文中一共展示了PassingData.list_type_id方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: computing_node_handler
# 需要导入模块: from pymodule import PassingData [as 别名]
# 或者: from pymodule.PassingData import list_type_id [as 别名]
def computing_node_handler(self, communicator, data, param_obj):
"""
2009-9-16
parameter test_type is renamed to test_type_id
2008-08-20
wrap all parameters into pd and pass it to run_wilcox_test
2008-07-17
"""
node_rank = communicator.rank
sys.stderr.write("Node no.%s working...\n"%node_rank)
data = cPickle.loads(data)
result_ls = []
pd = PassingData(snps_context_wrapper=param_obj.snps_context_wrapper,\
results_directory=param_obj.results_directory,\
min_MAF=param_obj.min_MAF, get_closest=self.get_closest, min_distance=self.min_distance, \
min_sample_size=self.min_sample_size, test_type_id=self.test_type_id, \
results_type=self.results_type, no_of_permutations=self.no_of_permutations,\
no_of_min_breaks=self.no_of_min_breaks)
for results_method_id, list_type_id in data:
pd.results_id = results_method_id
pd.list_type_id = list_type_id
result = self.run_wilcox_test(pd)
if result is not None:
result_ls.append(result)
sys.stderr.write("Node no.%s done with %s results.\n"%(node_rank, len(result_ls)))
return result_ls
示例2: run
# 需要导入模块: from pymodule import PassingData [as 别名]
# 或者: from pymodule.PassingData import list_type_id [as 别名]
def run(self):
"""
2008-10-28
"""
if self.debug:
import pdb
pdb.set_trace()
db = Stock_250kDB.Stock_250kDB(drivername=self.drivername, username=self.db_user,
password=self.db_passwd, hostname=self.hostname, database=self.dbname, schema=self.schema)
db.setup(create_tables=False)
session = db.session
hist_type = CheckCandidateGeneRank.getHistType(self.call_method_id, self.min_distance, self.get_closest, self.min_MAF, \
self.allow_two_sample_overlapping, self.results_type, self.null_distribution_type_id)
snps_context_wrapper = self.dealWithSnpsContextWrapper(self.snps_context_picklef, self.min_distance, self.get_closest)
param_obj = PassingData(call_method_id=self.call_method_id, \
analysis_method_id=getattr(self, 'analysis_method_id', None),\
analysis_method_id_ls=getattr(self, 'analysis_method_id_ls', None),\
phenotype_method_id_ls=getattr(self, 'phenotype_method_id_ls', None),\
list_type_id_ls=self.list_type_id_ls, \
results_type=self.results_type,\
no_check_gene_list=True)
params_ls = self.generate_params(param_obj)
pd = PassingData(snps_context_wrapper=snps_context_wrapper, \
results_directory=self.results_directory, \
min_MAF=self.min_MAF,
get_closest=self.get_closest,
min_distance=self.min_distance,\
no_of_top_snps=self.no_of_top_snps,
min_sample_size=self.min_sample_size,
test_type_id=self.test_type_id, \
results_type=self.results_type,
no_of_permutations=self.no_of_permutations,\
no_of_min_breaks=self.no_of_min_breaks,
type=hist_type,\
null_distribution_type_id=self.null_distribution_type_id,\
allow_two_sample_overlapping=self.allow_two_sample_overlapping,
min_score=self.min_score,
session=session,\
commit=self.commit)
for results_id, list_type_id in params_ls:
pd.list_type_id = list_type_id
pd.results_id = results_id
self.pick_candidate_genes(pd)