Skip to content
Snippets Groups Projects

Release v2.1.0

Merged Loraine Gueguen requested to merge dev into master
Compare and Show latest version
2 files
+ 8
11
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 7
10
@@ -47,12 +47,12 @@ class SpeciesData:
else:
return string
def set_service_attribute(self, attribute, service, parameters_dictionary):
def set_service_attribute(self, service, parameters_dictionary):
parameters_dictionary_services = parameters_dictionary[constants.ORG_PARAM_SERVICES]
if(service in parameters_dictionary_services.keys()):
attribute = parameters_dictionary_services[service]
return parameters_dictionary_services[service]
else:
attribute = "0"
return "0"
def __init__(self, parameters_dictionary):
self.parameters_dictionary = parameters_dictionary
@@ -69,11 +69,13 @@ class SpeciesData:
self.date = datetime.today().strftime("%Y-%m-%d")
self.origin = parameters_dictionary_description[constants.ORG_PARAM_DESC_ORIGIN]
self.performed = parameters_dictionary_data[constants.ORG_PARAM_DATA_PERFORMED_BY]
self.picture_path = parameters_dictionary_description[constants.ORG_PARAM_DESC_PICTURE_PATH]
if parameters_dictionary_data[constants.ORG_PARAM_DATA_GENOME_VERSION] == "":
self.genome_version = "1.0"
else:
self.genome_version = str(parameters_dictionary_data[constants.ORG_PARAM_DATA_GENOME_VERSION])
if parameters_dictionary_data[constants.ORG_PARAM_DATA_OGS_VERSION] == "":
self.ogs_version = "1.0"
else:
@@ -89,13 +91,8 @@ class SpeciesData:
self.blastx_path = parameters_dictionary_data[constants.ORG_PARAM_DATA_BLASTX_PATH]
self.orthofinder_path = parameters_dictionary_data[constants.ORG_PARAM_DATA_ORTHOFINDER_PATH]
self.set_service_attribute(self.blast, constants.ORG_PARAM_SERVICES_BLAST, parameters_dictionary)
self.set_service_attribute(self.go, constants.ORG_PARAM_SERVICES_GO, parameters_dictionary)
if constants.ORG_PARAM_DESC_PICTURE_PATH in parameters_dictionary_description.keys():
self.picture_path = parameters_dictionary_description[constants.ORG_PARAM_DESC_PICTURE_PATH]
else:
self.picture_path = None
self.blast = self.set_service_attribute(constants.ORG_PARAM_SERVICES_BLAST, parameters_dictionary)
self.go = self.set_service_attribute(constants.ORG_PARAM_SERVICES_GO, parameters_dictionary)
self.genus_lowercase = self.genus.lower()
self.species_lower = self.species.lower()
Loading