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
Commits
6b04282c
Commit
6b04282c
authored
3 years ago
by
Loraine Gueguen
Browse files
Options
Downloads
Patches
Plain Diff
Update to wf_v7: sync in wf
parent
15c2b3be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!28
WIP: Fix empty strain sex
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gga_init.py
+1
-0
1 addition, 0 deletions
gga_init.py
utilities.py
+13
-5
13 additions, 5 deletions
utilities.py
workflows_phaeoexplorer/Galaxy-Workflow-chado_load_tripal_synchronize_jbrowse_2org_v7.ga
+250
-240
250 additions, 240 deletions
...Workflow-chado_load_tripal_synchronize_jbrowse_2org_v7.ga
with
264 additions
and
245 deletions
gga_init.py
+
1
−
0
View file @
6b04282c
...
...
@@ -89,6 +89,7 @@ class DeploySpeciesStack(species_data.SpeciesData):
picture_dest_name
=
"
species%s
"
%
picture_path_extension
picture_dest_path
=
os
.
path
.
join
(
self
.
species_dir
,
picture_dest_name
)
shutil
.
copy
(
self
.
picture_path
,
picture_dest_path
)
logging
.
info
(
"
Add picture %s
"
%
self
.
picture_path
)
else
:
logging
.
error
(
"
Specified organism picture has wrong extension (must be
'
.png
'
or
'
.jpg
'
): {0}
"
.
format
(
self
.
picture_path
))
else
:
...
...
This diff is collapsed.
Click to expand it.
utilities.py
+
13
−
5
View file @
6b04282c
...
...
@@ -142,13 +142,21 @@ def get_sp_picture(sp_dict_list):
sp_picture_dict
=
{}
for
sp
in
sp_dict_list
:
gspecies
=
get_gspecies_string_from_sp_dict
(
sp
)
if
gspecies
not
in
sp_picture_dict
.
keys
()
or
(
constants
.
ORG_PARAM_DESC_MAIN_SPECIES
in
sp
[
constants
.
ORG_PARAM_DESC
].
keys
()
and
sp
[
constants
.
ORG_PARAM_DESC
][
constants
.
ORG_PARAM_DESC_MAIN_SPECIES
]
==
True
):
sp_picture_dict
[
gspecies
]
=
""
genus_species
=
get_gspecies_string_from_sp_dict
(
sp
)
if
genus_species
not
in
sp_picture_dict
.
keys
()
\
or
(
genus_species
not
in
sp_picture_dict
.
keys
()
and
sp_picture_dict
[
genus_species
]
!=
""
)
\
or
(
constants
.
ORG_PARAM_DESC_MAIN_SPECIES
in
sp
[
constants
.
ORG_PARAM_DESC
].
keys
()
and
sp
[
constants
.
ORG_PARAM_DESC
][
constants
.
ORG_PARAM_DESC_MAIN_SPECIES
]
==
True
)
:
if
constants
.
ORG_PARAM_DESC_PICTURE_PATH
in
sp
[
constants
.
ORG_PARAM_DESC
].
keys
()
and
\
sp
[
constants
.
ORG_PARAM_DESC
][
constants
.
ORG_PARAM_DESC_PICTURE_PATH
]
!=
""
:
sp_picture_dict
[
gspecies
]
=
sp
[
constants
.
ORG_PARAM_DESC
][
constants
.
ORG_PARAM_DESC_PICTURE_PATH
]
sp_picture_dict
[
genus_species
]
=
sp
[
constants
.
ORG_PARAM_DESC
][
constants
.
ORG_PARAM_DESC_PICTURE_PATH
]
else
:
sp_picture_dict
[
genus_species
]
=
""
return
sp_picture_dict
def
get_sp_jbrowse_links
(
org_list
):
...
...
This diff is collapsed.
Click to expand it.
workflows_phaeoexplorer/Galaxy-Workflow-chado_load_tripal_synchronize_jbrowse_2org_v7.ga
+
250
−
240
View file @
6b04282c
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment