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

fix set blast/go attribute

parent 99ed4993
No related branches found
No related tags found
1 merge request!18Release v2.1.0
This commit is part of merge request !18. Comments created here will be created in the context of that merge request.
...@@ -47,12 +47,12 @@ class SpeciesData: ...@@ -47,12 +47,12 @@ class SpeciesData:
else: else:
return string 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] parameters_dictionary_services = parameters_dictionary[constants.ORG_PARAM_SERVICES]
if(service in parameters_dictionary_services.keys()): if(service in parameters_dictionary_services.keys()):
attribute = parameters_dictionary_services[service] return parameters_dictionary_services[service]
else: else:
attribute = "0" return "0"
def __init__(self, parameters_dictionary): def __init__(self, parameters_dictionary):
self.parameters_dictionary = parameters_dictionary self.parameters_dictionary = parameters_dictionary
...@@ -91,8 +91,8 @@ class SpeciesData: ...@@ -91,8 +91,8 @@ class SpeciesData:
self.blastx_path = parameters_dictionary_data[constants.ORG_PARAM_DATA_BLASTX_PATH] 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.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.blast = set_service_attribute(constants.ORG_PARAM_SERVICES_BLAST, parameters_dictionary)
self.set_service_attribute(self.go, constants.ORG_PARAM_SERVICES_GO, parameters_dictionary) self.go = set_service_attribute(constants.ORG_PARAM_SERVICES_GO, parameters_dictionary)
self.genus_lowercase = self.genus.lower() self.genus_lowercase = self.genus.lower()
self.species_lower = self.species.lower() self.species_lower = self.species.lower()
......
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