本文整理汇总了Python中galaxy.datatypes.images.Html.set_meta方法的典型用法代码示例。如果您正苦于以下问题:Python Html.set_meta方法的具体用法?Python Html.set_meta怎么用?Python Html.set_meta使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类galaxy.datatypes.images.Html
的用法示例。
在下文中一共展示了Html.set_meta方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: set_meta
# 需要导入模块: from galaxy.datatypes.images import Html [as 别名]
# 或者: from galaxy.datatypes.images.Html import set_meta [as 别名]
def set_meta( self, dataset, **kwd ):
"""
for lped/pbed eg
"""
Html.set_meta( self, dataset, **kwd )
if kwd.get('overwrite') == False:
if verbose:
gal_Log.debug('@@@ rgenetics set_meta called with overwrite = False')
return True
try:
efp = dataset.extra_files_path
except:
if verbose:
gal_Log.debug('@@@rgenetics set_meta failed %s - dataset %s has no efp ?' % (sys.exc_info()[0], dataset.name))
return False
try:
flist = os.listdir(efp)
except:
if verbose: gal_Log.debug('@@@rgenetics set_meta failed %s - dataset %s has no efp ?' % (sys.exc_info()[0],dataset.name))
return False
if len(flist) == 0:
if verbose:
gal_Log.debug('@@@rgenetics set_meta failed - %s efp %s is empty?' % (dataset.name,efp))
return False
self.regenerate_primary_file(dataset)
if not dataset.info:
dataset.info = 'Galaxy genotype datatype object'
if not dataset.blurb:
dataset.blurb = 'Composite file - Rgenetics Galaxy toolkit'
return True
示例2: set_meta
# 需要导入模块: from galaxy.datatypes.images import Html [as 别名]
# 或者: from galaxy.datatypes.images.Html import set_meta [as 别名]
def set_meta( self, dataset, **kwd ):
"""
for lped/pbed eg
"""
Html.set_meta( self, dataset, **kwd )
if kwd.get('overwrite') == False:
return True
try:
efp = dataset.extra_files_path
except:
return False
try:
flist = os.listdir(efp)
except:
return False
if len(flist) == 0:
return False
self.regenerate_primary_file(dataset)
if not dataset.info:
dataset.info = 'Galaxy Impute2 datatype object'
if not dataset.blurb:
dataset.blurb = 'Composite file - Otago Impute2 Galaxy toolkit'
return True
示例3: set_meta
# 需要导入模块: from galaxy.datatypes.images import Html [as 别名]
# 或者: from galaxy.datatypes.images.Html import set_meta [as 别名]
def set_meta( self, dataset, **kwd ):
Html.set_meta( self, dataset, **kwd )
self.regenerate_primary_file(dataset)
示例4: set_meta
# 需要导入模块: from galaxy.datatypes.images import Html [as 别名]
# 或者: from galaxy.datatypes.images.Html import set_meta [as 别名]
def set_meta( self, dataset, **kwd ):
log.debug("## set_meta for FusionInspector ")
Html.set_meta( self, dataset, **kwd )
self.regenerate_primary_file(dataset)