本文整理汇总了Python中Pipeline.main方法的典型用法代码示例。如果您正苦于以下问题:Python Pipeline.main方法的具体用法?Python Pipeline.main怎么用?Python Pipeline.main使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pipeline
的用法示例。
在下文中一共展示了Pipeline.main方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: update_report
# 需要导入模块: import Pipeline [as 别名]
# 或者: from Pipeline import main [as 别名]
P.run_report(clean=True)
###################################################################
###################################################################
###################################################################
@follows(mkdir("report"))
def update_report():
'''update report.'''
E.info("updating documentation")
P.run_report(clean=False)
###################################################################
###################################################################
###################################################################
@follows(mkdir("%s/bamfiles" % PARAMS["web_dir"]),
mkdir("%s/medips" % PARAMS["web_dir"]),
)
def publish():
'''publish files.'''
# publish web pages
P.publish_report()
if __name__ == "__main__":
sys.exit(P.main(sys.argv))
示例2: int
# 需要导入模块: import Pipeline [as 别名]
# 或者: from Pipeline import main [as 别名]
query_ids.add( int(query_id) )
sbjct_ids.add( int(sbjct_id) )
if query_id == sbjct_id: self_links += 1
total_results += 1
outf = IOTools.openFile( outfile, "w" )
outf.write( "category\tcounts\n")
outf.write( "\t".join( map(str, ('nids', len(nids)))) + "\n" )
outf.write( "\t".join( map(str, ('links', total_results))) + "\n" )
outf.write( "\t".join( map(str, ('self', self_links))) + "\n" )
outf.write( "\t".join( map(str, ('queries', len(query_ids)))) + "\n" )
outf.write( "\t".join( map(str, ('sbjcts', len(sbjct_ids)))) + "\n" )
outf.close()
outf = IOTools.openFile( outfile + '.missing_queries.gz', 'w' )
outf.write( 'nid\n' )
outf.write( "\n".join( map(str, sorted( list( nids.difference( query_ids )) ) )) + "\n" )
outf.close()
outf = IOTools.openFile( outfile + '.missing_sbjcts.gz', 'w' )
outf.write( 'nid\n' )
outf.write( "\n".join( map(str, sorted( list( nids.difference( sbjct_ids )) ) )) + "\n" )
outf.close()
@follows( buildPFAMDomains, buildPFAMFamilies, buildSCOPDomains )
def domains(): pass
if __name__ == "__main__":
sys.exit(P.main())