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
1b13e75c
Commit
1b13e75c
authored
3 years ago
by
Loraine Gueguen
Browse files
Options
Downloads
Patches
Plain Diff
fix time_sleep and chado_species_name. Change common_name for org
parent
eae273b9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!24
Run wf
,
!18
Release v2.1.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gga_run_workflow_phaeo_jbrowse.py
+4
-6
4 additions, 6 deletions
gga_run_workflow_phaeo_jbrowse.py
runWorkflowPhaeo.py
+2
-4
2 additions, 4 deletions
runWorkflowPhaeo.py
with
6 additions
and
10 deletions
gga_run_workflow_phaeo_jbrowse.py
+
4
−
6
View file @
1b13e75c
...
...
@@ -7,7 +7,6 @@ import os
import
logging
import
sys
import
json
import
time
from
bioblend.galaxy.objects
import
GalaxyInstance
import
utilities
...
...
@@ -66,11 +65,11 @@ class RunWorkflowJbrowse(runWorkflowPhaeo.RunWorkflow):
self
.
abbreviation
=
self
.
genus_uppercase
[
0
]
+
"
.
"
+
self
.
chado_species_name
self
.
common
=
self
.
name
self
.
common
=
self
.
genus_uppercase
+
"
"
+
self
.
chado_species_
name
if
not
self
.
common_name
is
None
and
self
.
common_name
!=
""
:
# common_name only is not sufficient as may not be unique between the different strains of the species and
# galaxy will throw error "
Found a preexisting organism with the same attributes in the database
"
self
.
common
=
self
.
common
_name
+
"
(
"
+
self
.
name
+
"
)
"
# galaxy will throw error "
OrgWorkflowParam
"
self
.
common
=
self
.
common
+
"
(
"
+
self
.
common_
name
+
"
)
"
self
.
genome_analysis_name
=
"
genome v{0} of {1}
"
.
format
(
self
.
genome_version
,
self
.
full_name
)
self
.
genome_analysis_programversion
=
"
genome v{0}
"
.
format
(
self
.
genome_version
)
...
...
@@ -159,14 +158,13 @@ class RunWorkflowJbrowse(runWorkflowPhaeo.RunWorkflow):
"
genus
"
:
self
.
genus_uppercase
,
"
species
"
:
self
.
chado_species_name
,
"
common
"
:
self
.
common
},
time_sleep
=
3
0
time_sleep
=
1
0
)
organism_dict
=
json
.
loads
(
add_organism_tool_dataset
)
org_id
=
str
(
organism_dict
[
"
organism_id
"
])
# id needs to be a str to be recognized by chado tools
# Synchronize newly added organism in Tripal
logging
.
info
(
"
Synchronizing organism %s in Tripal
"
%
self
.
full_name
)
time
.
sleep
(
60
)
utilities_bioblend
.
run_tool
(
instance
=
self
.
instance
,
tool_id
=
constants_phaeo
.
ORGANISM_SYNC_TOOL_ID
,
...
...
This diff is collapsed.
Click to expand it.
runWorkflowPhaeo.py
+
2
−
4
View file @
1b13e75c
...
...
@@ -3,7 +3,6 @@
import
logging
import
json
import
time
import
utilities_bioblend
import
speciesData
...
...
@@ -15,7 +14,7 @@ class OrgWorkflowParam:
def
__init__
(
self
,
genus_uppercase
,
chado_species_name
,
full_name
,
species_folder_name
,
org_id
,
history_id
,
instance
):
self
.
genus_uppercase
=
genus_uppercase
self
.
chado_species_name
=
chado_species_name
,
self
.
chado_species_name
=
chado_species_name
self
.
full_name
=
full_name
self
.
species_folder_name
=
species_folder_name
self
.
org_id
=
org_id
...
...
@@ -79,7 +78,7 @@ class RunWorkflow(speciesData.SpeciesData):
"
programversion
"
:
programversion
,
"
sourcename
"
:
sourcename
,
"
date_executed
"
:
constants_phaeo
.
ADD_ANALYSIS_TOOL_PARAM_DATE
},
time_sleep
=
3
0
time_sleep
=
1
0
)
analysis_dict
=
json
.
loads
(
add_analysis_tool_dataset
)
analysis_id
=
str
(
analysis_dict
[
"
analysis_id
"
])
...
...
@@ -88,7 +87,6 @@ class RunWorkflow(speciesData.SpeciesData):
def
sync_analysis
(
self
,
analysis_id
):
time
.
sleep
(
60
)
utilities_bioblend
.
run_tool
(
instance
=
self
.
instance
,
tool_id
=
constants_phaeo
.
ANALYSIS_SYNC_TOOL_ID
,
...
...
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