Skip to content
Snippets Groups Projects
Commit 4c56371d authored by Troubardours's avatar Troubardours
Browse files

fixes for cases where strain and sex attributes are empty

parent ef94ba2c
No related branches found
No related tags found
2 merge requests!29fix empty strain/sex,!18Release v2.1.0
......@@ -129,6 +129,9 @@ class SpeciesData:
self.sex_lowercase])["not_empty"])
self.dataset_prefix = self.strain_sex
# If both strain and sex are empty attributes, change the dataset prefix to nothing instead of "_"
if self.dataset_prefix == "_":
self.dataset_prefix = ""
self.genome_filename = "{0}_v{1}.fasta".format(self.dataset_prefix, self.genome_version)
self.gff_filename = "{0}_OGS{1}_{2}.gff".format(self.dataset_prefix, self.ogs_version, constants.DATA_DATE.replace("-",""))
......
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