Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gga_load_data
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
abims
e-infra
gga_load_data
Merge requests
!29
fix empty strain/sex
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix empty strain/sex
fix_empty_strain_sex_2
into
dev
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Loraine Gueguen
requested to merge
fix_empty_strain_sex_2
into
dev
3 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Viewing commit
4c56371d
Prev
Next
Show latest version
1 file
+
3
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
4c56371d
fixes for cases where strain and sex attributes are empty
· 4c56371d
Troubardours
authored
3 years ago
species_data.py
+
3
−
0
Options
@@ -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
(
"
-
"
,
""
))
Loading