本文整理汇总了Python中Network.network[target][gene]方法的典型用法代码示例。如果您正苦于以下问题:Python Network.network[target][gene]方法的具体用法?Python Network.network[target][gene]怎么用?Python Network.network[target][gene]使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Network
的用法示例。
在下文中一共展示了Network.network[target][gene]方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Network
# 需要导入模块: import Network [as 别名]
# 或者: from Network import network[target][gene] [as 别名]
net = Network()
net.gene_list = dex_storage.gene_list
target = sys.argv[1]
if target == "At1g25550":
dex_storage = dex_storage2
for gene1 in dex_storage.gene_list:
net.network[gene1] = {}
for gene2 in dex_storage.gene_list:
net.network[gene1][gene2] = 0
for gene in dex_storage.gene_list:
print dex_storage.experiments[0].ratios[gene]
if dex_storage.experiments[0].ratios[gene] >= 2.0:
print dex_storage.experiments[0].ratios[gene]
net.network[target][gene] = 1
elif dex_storage.experiments[0].ratios[gene] <= 0.5:
net.network[target][gene] = -1
else:
net.network[target][gene] = 0
# Run a fresh DFG
#dfg = DFG4GRN()
#settings["dfg4grn"]["eta_z"] = 0.1
#settings["dfg4grn"]["lambda_w"] = 0.1
#settings["dfg4grn"]["tau"] = 3
#settings["dfg4grn"]["delta_t"] = "3 3 3 3 3 5"
#dfg.setup(ts_storage, TFList(tfs), settings, "DFG-NO_WT_LambdaW-{0}_Dex".format(0.1), 1)
#jobman.queueJob(dfg)