Skip to content
Snippets Groups Projects
Commit b6043307 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

fix Object-oriented galaxy instance (for get_previews())

parent 5e0fb690
No related branches found
No related tags found
2 merge requests!10Release 2.0,!9Release 2.0 (merge dev to master)
......@@ -101,7 +101,7 @@ class LoadData(speciesData.SpeciesData):
return histories
def setup_library(self, instance, data_dir_root='./src_data'):
def setup_library(self, data_dir_root='./src_data'):
"""
Create a "Project Data" library in galaxy, mirroring the "src_data" folder of the current organism
directory tree
......@@ -111,7 +111,7 @@ class LoadData(speciesData.SpeciesData):
self.goto_species_dir()
gio = GalaxyInstance(url=self.instance_url,
instance = GalaxyInstance(url=self.instance_url,
email=self.config["galaxy_default_admin_email"],
password=self.config["galaxy_default_admin_password"]
)
......@@ -372,7 +372,7 @@ if __name__ == "__main__":
# Load the datasets into a galaxy library
logging.info("Setting up library for {0} {1}".format(load_data_for_current_species.genus, load_data_for_current_species.species))
load_data_for_current_species.setup_library(load_data_for_current_species.instance)
load_data_for_current_species.setup_library()
logging.debug("Successfully set up library in galaxy for {0} {1}".format(load_data_for_current_species.genus, load_data_for_current_species.species))
# Set or get the history for the current organism
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment