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
+ 7
7
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 6
6
@@ -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
@@ -91,8 +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)
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()
@@ -105,7 +105,7 @@ class SpeciesData:
self.abbreviation = "_".join(utilities.filter_empty_not_empty_items([self.genus_lowercase[0], self.species, self.strain, self.sex])["not_empty"])
self.species_folder_name = "_".join(utilities.filter_empty_not_empty_items(
[self.genus_lowercase, self.species_lower(), self.strain.lower(),
[self.genus_lowercase, self.species_lower, self.strain.lower(),
self.sex.lower()])["not_empty"])
self.dataset_prefix = None
Loading