本文整理汇总了Python中Pipeline.load方法的典型用法代码示例。如果您正苦于以下问题:Python Pipeline.load方法的具体用法?Python Pipeline.load怎么用?Python Pipeline.load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pipeline
的用法示例。
在下文中一共展示了Pipeline.load方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: loadCoverageData
# 需要导入模块: import Pipeline [as 别名]
# 或者: from Pipeline import load [as 别名]
def loadCoverageData(infile, outfile):
'''
load coverage data into database
'''
to_cluster = True
tablename = P.toTable(outfile)
database = os.path.join(PARAMS["results_resultsdir"], PARAMS["database"])
dbh = sqlite3.connect(database)
cc = dbh.cursor()
temp = P.getTempFile()
temp.write("contig_id\tacoverage\n")
for data in cc.execute("""SELECT contig_id, AVG(coverage) FROM %s GROUP BY contig_id""" % tablename).fetchall():
temp.write("\t".join(list(data)) + "\n")
temp.close()
P.load(temp.name, outfile)
os.unlink(temp.name)
示例2: loadSummary
# 需要导入模块: import Pipeline [as 别名]
# 或者: from Pipeline import load [as 别名]
def loadSummary(infile, outfile):
'''load all summary tables.'''
P.load(infile, outfile)
示例3: loadEstimatedTaxonomicRelativeAbundances
# 需要导入模块: import Pipeline [as 别名]
# 或者: from Pipeline import load [as 别名]
def loadEstimatedTaxonomicRelativeAbundances(infile, outfile):
'''
load metaphlan taxonomic abundance estimations
'''
P.load(infile, outfile)
示例4: loadFalsePositiveRate
# 需要导入模块: import Pipeline [as 别名]
# 或者: from Pipeline import load [as 别名]
def loadFalsePositiveRate(infile, outfile):
'''
load false positive rate calculations
'''
P.load(infile, outfile)
示例5: loadTrueTaxonomicAbundances
# 需要导入模块: import Pipeline [as 别名]
# 或者: from Pipeline import load [as 别名]
def loadTrueTaxonomicAbundances(infile, outfile):
'''
load the true taxonomic relative abundances
'''
P.load(infile, outfile)
示例6: loadGi2Taxid
# 需要导入模块: import Pipeline [as 别名]
# 或者: from Pipeline import load [as 别名]
def loadGi2Taxid(infile, outfile):
'''
load gi to taxid mapping
'''
P.load(infile, outfile, "--header=gi,taxid --index=taxid")
示例7: loadCategoriesFile
# 需要导入模块: import Pipeline [as 别名]
# 或者: from Pipeline import load [as 别名]
def loadCategoriesFile(infile, outfile):
'''
load the taxonomic categories file
'''
P.load(infile, outfile, "--index=taxid")
示例8: loadTaxonomyNames
# 需要导入模块: import Pipeline [as 别名]
# 或者: from Pipeline import load [as 别名]
def loadTaxonomyNames(infile, outfile):
'''
load taxonomic names
'''
P.load(infile, outfile, "--index=taxid")
示例9: loadSummary
# 需要导入模块: import Pipeline [as 别名]
# 或者: from Pipeline import load [as 别名]
def loadSummary(infile, outfile):
"""load all summary tables."""
P.load(infile, outfile)