本文整理匯總了Python中Files.multilist方法的典型用法代碼示例。如果您正苦於以下問題:Python Files.multilist方法的具體用法?Python Files.multilist怎麽用?Python Files.multilist使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Files
的用法示例。
在下文中一共展示了Files.multilist方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: main
# 需要導入模塊: import Files [as 別名]
# 或者: from Files import multilist [as 別名]
def main():
"""
Main program function
"""
#Get the arguments
#args=getArgument()
args=Files()
#Initiate graph object
mygraph=Graph()
#If the uniprot2go filter is done
if(args.filter):
#Intanciate a multilist object
mymultilist=Multilist(args.multilist)
#filter data
mymultilist.GOfilter(args.filter,args.results)
#Change multilist file
args.multilist=mymultilist.filtered
#If multilist file is given
if(args.multilist):
config=Davidconfig(args.config)
#Parse multilist data
mygraph.parse(Multilist(args.multilist))
#Parse pValue data
if(args.pValue): mygraph.parse(pValue(args.pValue))
#Parse similarity data
if(args.similarity): mygraph.parse(Similarity(args.similarity))
#Parse interaction data
if(args.interact): mygraph.parse(Interact(args.interact))
if(args.iRNA_db): mygraph.parse(Database_data(args.iRNA_db,args.fastmode))
#Analysis david results from file
if(args.enrichment):
#Get enrichment data
enrichment=config.readconfig(David(args.enrichment))
#Set data on the graph
mygraph.parse(enrichment)
#Analyse multilist with david
elif(args.david):
#Set config data
enrichment=config.readconfig(David())
#Get david data
enrichment.analysis(mygraph)
#Write data
enrichment.writefile(args.results)
#Set data on the graph
mygraph.parse(enrichment)
if(args.name): mygraph.parse(Name(args.name))
#Generate nodes csv
mygraph.writefile(args.results)