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
91c3500d
Commit
91c3500d
authored
3 years ago
by
Loraine Gueguen
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused imports. Update Readme. Factorize goto_species_dir()
parent
28a1d904
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!10
Release 2.0
,
!9
Release 2.0 (merge dev to master)
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+5
-4
5 additions, 4 deletions
README.md
gga_get_data.py
+0
-27
0 additions, 27 deletions
gga_get_data.py
gga_init.py
+1
-1
1 addition, 1 deletion
gga_init.py
speciesData.py
+17
-0
17 additions, 0 deletions
speciesData.py
with
23 additions
and
32 deletions
README.md
+
5
−
4
View file @
91c3500d
...
...
@@ -149,8 +149,9 @@ Directory tree structure:
[
BSD 3-Clause
](
./LICENSE
)
##
Acknowledgment
s
##
Contributor
s
[
Anthony Bretaudeau
](
https://github.com/abretaud
)
[
Matéo Boudet
](
https://github.com/mboudet
)
\ No newline at end of file
-
[
Matéo Boudet
](
https://github.com/mboudet
)
-
[
Anthony Bretaudeau
](
https://github.com/abretaud
)
-
[
Loraine Brillet-Guéguen
](
https://github.com/loraine-gueguen
)
-
[
Arthur Le Bars
](
https://gitlab.com/Troubardours
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
gga_get_data.py
+
0
−
27
View file @
91c3500d
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import
bioblend
import
argparse
import
os
import
subprocess
import
logging
import
sys
import
fnmatch
import
time
import
json
import
re
import
stat
import
shutil
from
bioblend.galaxy.objects
import
GalaxyInstance
from
bioblend
import
galaxy
import
utilities
import
speciesData
...
...
@@ -36,24 +27,6 @@ class GetData(speciesData.SpeciesData):
"""
def
goto_species_dir
(
self
):
"""
Go to the species directory (starting from the main dir)
:return:
"""
os
.
chdir
(
self
.
main_dir
)
species_dir
=
os
.
path
.
join
(
self
.
main_dir
,
self
.
genus_species
)
+
"
/
"
try
:
os
.
chdir
(
species_dir
)
except
OSError
:
logging
.
critical
(
"
Cannot access %s
"
%
species_dir
)
sys
.
exit
(
0
)
return
1
def
make_directory_tree
(
self
):
"""
Generate the directory tree for an organism
...
...
This diff is collapsed.
Click to expand it.
gga_init.py
+
1
−
1
View file @
91c3500d
...
...
@@ -11,7 +11,7 @@ import yaml
import
shutil
from
pathlib
import
Path
from
jinja2
import
Template
,
Environment
,
FileSystemLoader
from
jinja2
import
Environment
,
FileSystemLoader
import
utilities
import
speciesData
...
...
This diff is collapsed.
Click to expand it.
speciesData.py
+
17
−
0
View file @
91c3500d
...
...
@@ -4,6 +4,7 @@
import
os
import
sys
import
utilities
import
logging
from
_datetime
import
datetime
...
...
@@ -15,6 +16,22 @@ class SpeciesData:
"""
def
goto_species_dir
(
self
):
"""
Go to the species directory (starting from the main dir)
:return:
"""
os
.
chdir
(
self
.
main_dir
)
species_dir
=
os
.
path
.
join
(
self
.
main_dir
,
self
.
genus_species
)
+
"
/
"
try
:
os
.
chdir
(
species_dir
)
except
OSError
:
logging
.
critical
(
"
Cannot access %s
"
%
species_dir
)
sys
.
exit
(
0
)
return
1
def
clean_string
(
self
,
string
):
if
not
string
is
None
and
string
!=
""
:
clean_string
=
string
.
replace
(
"
"
,
"
_
"
).
replace
(
"
-
"
,
"
_
"
).
replace
(
"
(
"
,
""
).
replace
(
"
)
"
,
""
).
replace
(
"'"
,
""
).
strip
()
...
...
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