本文整理匯總了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)