本文整理汇总了Python中Network.network[gene1]方法的典型用法代码示例。如果您正苦于以下问题:Python Network.network[gene1]方法的具体用法?Python Network.network[gene1]怎么用?Python Network.network[gene1]使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Network
的用法示例。
在下文中一共展示了Network.network[gene1]方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: JobManager
# 需要导入模块: import Network [as 别名]
# 或者: from Network import network[gene1] [as 别名]
# Setup job manager
jobman = JobManager(settings)
# Figure out list of dex targets and put them into a network so we can
# compare
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