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
f2a6dd10
Commit
f2a6dd10
authored
3 years ago
by
Loraine Gueguen
Browse files
Options
Downloads
Patches
Plain Diff
fix replace workflow values. Add time sleep before sync analysis. Change full_name
parent
1b13e75c
No related branches found
No related tags found
2 merge requests
!24
Run wf
,
!18
Release v2.1.0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gga_run_workflow_phaeo_jbrowse.py
+6
-4
6 additions, 4 deletions
gga_run_workflow_phaeo_jbrowse.py
runWorkflowPhaeo.py
+2
-0
2 additions, 0 deletions
runWorkflowPhaeo.py
speciesData.py
+2
-2
2 additions, 2 deletions
speciesData.py
with
10 additions
and
6 deletions
gga_run_workflow_phaeo_jbrowse.py
+
6
−
4
View file @
f2a6dd10
...
@@ -583,10 +583,12 @@ if __name__ == "__main__":
...
@@ -583,10 +583,12 @@ if __name__ == "__main__":
species_strain_sex
=
species_strain_sex_org2
,
species_strain_sex
=
species_strain_sex_org2
,
id
=
"
{id}
"
)
id
=
"
{id}
"
)
# Replace values in the workflow dictionary
# Replace values in the workflow dictionary
jbrowse_tool_state_org1
=
workflow_dict
[
"
steps
"
][
constants_phaeo
.
WF_LOAD_GFF_JB_2_ORG_STEP_JBROWSE_ORG1
][
"
tool_state
"
]
workflow_dict
[
"
steps
"
][
constants_phaeo
.
WF_LOAD_GFF_JB_2_ORG_STEP_JBROWSE_ORG1
][
"
tool_state
"
]
=
\
jbrowse_tool_state_org1
=
jbrowse_tool_state_org1
.
replace
(
"
__MENU_URL_ORG1__
"
,
jbrowse_menu_url_org1
)
workflow_dict
[
"
steps
"
][
constants_phaeo
.
WF_LOAD_GFF_JB_2_ORG_STEP_JBROWSE_ORG1
][
"
tool_state
"
]
\
jbrowse_tool_state_org2
=
workflow_dict
[
"
steps
"
][
constants_phaeo
.
WF_LOAD_GFF_JB_2_ORG_STEP_JRBOWSE_ORG2
][
"
tool_state
"
]
.
replace
(
"
__MENU_URL_ORG1__
"
,
jbrowse_menu_url_org1
)
jbrowse_tool_state_org2
=
jbrowse_tool_state_org2
.
replace
(
"
__MENU_URL_ORG2__
"
,
jbrowse_menu_url_org2
)
workflow_dict
[
"
steps
"
][
constants_phaeo
.
WF_LOAD_GFF_JB_2_ORG_STEP_JRBOWSE_ORG2
][
"
tool_state
"
]
=
\
workflow_dict
[
"
steps
"
][
constants_phaeo
.
WF_LOAD_GFF_JB_2_ORG_STEP_JRBOWSE_ORG2
][
"
tool_state
"
]
\
.
replace
(
"
__MENU_URL_ORG2__
"
,
jbrowse_menu_url_org2
)
# The UNIQUE_ID is specific to a combination genus_species_strain_sex so every combination should have its unique workflow
# The UNIQUE_ID is specific to a combination genus_species_strain_sex so every combination should have its unique workflow
# in galaxy --> define a naming method for these workflows
# in galaxy --> define a naming method for these workflows
workflow_dict
[
"
steps
"
][
constants_phaeo
.
WF_LOAD_GFF_JB_2_ORG_STEP_JB_TO_CONTAINER
][
"
tool_state
"
]
=
\
workflow_dict
[
"
steps
"
][
constants_phaeo
.
WF_LOAD_GFF_JB_2_ORG_STEP_JB_TO_CONTAINER
][
"
tool_state
"
]
=
\
...
...
This diff is collapsed.
Click to expand it.
runWorkflowPhaeo.py
+
2
−
0
View file @
f2a6dd10
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
import
logging
import
logging
import
json
import
json
import
time
import
utilities_bioblend
import
utilities_bioblend
import
speciesData
import
speciesData
...
@@ -116,6 +117,7 @@ class RunWorkflow(speciesData.SpeciesData):
...
@@ -116,6 +117,7 @@ class RunWorkflow(speciesData.SpeciesData):
# Synchronize analysis in Tripal
# Synchronize analysis in Tripal
logging
.
info
(
"
Synchronizing analysis %s in Tripal
"
%
analysis_name
)
logging
.
info
(
"
Synchronizing analysis %s in Tripal
"
%
analysis_name
)
time
.
sleep
(
10
)
self
.
sync_analysis
(
analysis_id
=
analysis_id
)
self
.
sync_analysis
(
analysis_id
=
analysis_id
)
return
analysis_id
return
analysis_id
...
...
This diff is collapsed.
Click to expand it.
speciesData.py
+
2
−
2
View file @
f2a6dd10
...
@@ -108,7 +108,7 @@ class SpeciesData:
...
@@ -108,7 +108,7 @@ class SpeciesData:
self
.
genus_species
=
"
{0}_{1}
"
.
format
(
self
.
genus_lowercase
,
self
.
species_lowercase
)
self
.
genus_species
=
"
{0}_{1}
"
.
format
(
self
.
genus_lowercase
,
self
.
species_lowercase
)
self
.
strain_sex
=
'
_
'
.
join
(
utilities
.
filter_empty_not_empty_items
([
self
.
strain_lowercase
,
self
.
sex_lowercase
])[
"
not_empty
"
])
self
.
strain_sex
=
'
_
'
.
join
(
utilities
.
filter_empty_not_empty_items
([
self
.
strain_lowercase
,
self
.
sex_lowercase
])[
"
not_empty
"
])
self
.
full_name
=
'
'
.
join
(
utilities
.
filter_empty_not_empty_items
([
self
.
genus_uppercase
,
self
.
species
,
self
.
strain
,
self
.
sex
])[
"
not_empty
"
])
self
.
full_name
=
'
'
.
join
(
utilities
.
filter_empty_not_empty_items
([
self
.
genus_uppercase
,
self
.
species
_lowercase
,
self
.
strain
,
self
.
sex
])[
"
not_empty
"
])
self
.
full_name_lowercase
=
self
.
full_name
.
lower
()
self
.
full_name_lowercase
=
self
.
full_name
.
lower
()
self
.
species_folder_name
=
"
_
"
.
join
(
utilities
.
filter_empty_not_empty_items
(
self
.
species_folder_name
=
"
_
"
.
join
(
utilities
.
filter_empty_not_empty_items
(
...
@@ -118,7 +118,7 @@ class SpeciesData:
...
@@ -118,7 +118,7 @@ class SpeciesData:
self
.
dataset_prefix
=
self
.
strain_sex
self
.
dataset_prefix
=
self
.
strain_sex
self
.
genome_filename
=
"
{0}_v{1}.fasta
"
.
format
(
self
.
dataset_prefix
,
self
.
genome_version
)
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
)
self
.
gff_filename
=
"
{0}_OGS{1}_{2}.gff
"
.
format
(
self
.
dataset_prefix
,
self
.
ogs_version
,
constants
.
DATA_DATE
.
replace
(
"
-
"
,
""
)
)
self
.
transcripts_filename
=
"
{0}_OGS{1}_{2}
"
.
format
(
self
.
dataset_prefix
,
self
.
ogs_version
,
constants
.
FILENAME_SUFFIX_TRANSCRIPTS
)
self
.
transcripts_filename
=
"
{0}_OGS{1}_{2}
"
.
format
(
self
.
dataset_prefix
,
self
.
ogs_version
,
constants
.
FILENAME_SUFFIX_TRANSCRIPTS
)
self
.
proteins_filename
=
"
{0}_OGS{1}_{2}
"
.
format
(
self
.
dataset_prefix
,
self
.
ogs_version
,
constants
.
FILENAME_SUFFIX_PROTEINS
)
self
.
proteins_filename
=
"
{0}_OGS{1}_{2}
"
.
format
(
self
.
dataset_prefix
,
self
.
ogs_version
,
constants
.
FILENAME_SUFFIX_PROTEINS
)
self
.
interpro_filename
=
"
{0}_OGS{1}_{2}
"
.
format
(
self
.
dataset_prefix
,
self
.
ogs_version
,
constants
.
FILENAME_SUFFIX_INTERPRO
)
self
.
interpro_filename
=
"
{0}_OGS{1}_{2}
"
.
format
(
self
.
dataset_prefix
,
self
.
ogs_version
,
constants
.
FILENAME_SUFFIX_INTERPRO
)
...
...
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