mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Modified get_flanks.py and get_flanks.xml files. Better exception handling and tool tips. Also moved GMAJ and LAJ tools to Graph/Display data section.
18 lines
461 B
Python
Executable File
18 lines
461 B
Python
Executable File
import os, sys
|
|
|
|
def print_out(data):
|
|
build = str(data.dbkey)
|
|
id = data.id
|
|
extension = ["bed", "interval"]
|
|
return (build,id,extension)
|
|
|
|
def print_name(data):
|
|
if isinstance(data, list):
|
|
name_list=[]
|
|
for item in data:
|
|
name_list.append("_NAME_" + item.name.replace("(","_OPEN_").replace(")","_CLOSE_").replace(" ","_SPACE_"))
|
|
return name_list
|
|
else:
|
|
return "_NAME_" + data.name.replace("(","_OPEN_").replace(")","_CLOSE_").replace(" ","_SPACE_")
|
|
|