Skip to content
Snippets Groups Projects

Run wf

Merged Loraine Gueguen requested to merge run_wf into dev
Files
3
@@ -68,7 +68,9 @@ class RunWorkflowJbrowse(runWorkflowPhaeo.RunWorkflow):
self.common = self.name
if not self.common_name is None and self.common_name != "":
self.common = self.common_name
# common_name only is not sufficient as may not be unique between the different strains of the species and
# galaxy will throw error "Found a preexisting organism with the same attributes in the database"
self.common = self.common_name + "(" + self.name + ")"
self.genome_analysis_name = "genome v{0} of {1}".format(self.genome_version, self.full_name)
self.genome_analysis_programversion = "genome v{0}".format(self.genome_version)
@@ -156,7 +158,9 @@ class RunWorkflowJbrowse(runWorkflowPhaeo.RunWorkflow):
tool_inputs={"abbr": self.abbreviation,
"genus": self.genus_uppercase,
"species": self.chado_species_name,
"common": self.common})
"common": self.common},
time_sleep=30
)
organism_dict = json.loads(add_organism_tool_dataset)
org_id = str(organism_dict["organism_id"]) # id needs to be a str to be recognized by chado tools
@@ -194,7 +198,8 @@ class RunWorkflowJbrowse(runWorkflowPhaeo.RunWorkflow):
if len(prj_lib) == 1:
library_id = prj_lib[0].id
else:
logging.error("Multiple (or no one) libraries '%s' exist" % constants.GALAXY_LIBRARY_NAME)
logging.critical("Multiple (or no one) libraries '%s' exist" % constants.GALAXY_LIBRARY_NAME)
sys.exit()
folder_dict_list = self.instance.libraries.get_folders(library_id=str(library_id))
folders_id_dict = {}
Loading