Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ChIA-PET_network
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
LBMC
ReGArDS
ChIA-PET_network
Commits
6621c028
Commit
6621c028
authored
5 years ago
by
nfontrod
Browse files
Options
Downloads
Patches
Plain Diff
src/db_utils/__main__.py
parent
a00438bd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/db_utils/__main__.py
+13
-10
13 additions, 10 deletions
src/db_utils/__main__.py
with
13 additions
and
10 deletions
src/db_utils/__main__.py
+
13
−
10
View file @
6621c028
...
...
@@ -6,19 +6,22 @@
Description: Populate the gin database
"""
from
.config
import
Config
,
logging_def
from
.creation_of_exon_table
import
get_ctrl
,
get_exon_table
from
.create_freq_table
import
create_freq_table
from
.populate_database
import
populate
from
.config
import
Config
from
..logging_conf
import
logging_def
from
.db_creation
import
main_create_db
# from .creation_of_exon_table import get_ctrl, get_exon_table
# from .create_freq_table import create_freq_table
# from .populate_database import populate
import
logging
def
launcher
(
logging_level
:
str
=
"
INFO
"
):
"""
F
ill the database
Create and f
ill the database
"""
logging_def
(
Config
.
output
,
"
INFO
"
)
Config
.
output
.
mkdir
(
exist_ok
=
True
)
logging_def
(
Config
.
output
,
__file__
,
logging_level
)
logging
.
info
(
'
Database creation
'
)
main_create_db
()
# logging.info(f"Creation of {Config.ctrl_exon_file} file")
# get_ctrl(Config.exon_intern)
# logging.info(f"Creation of {Config.exon_file} file")
...
...
@@ -27,13 +30,13 @@ def launcher(logging_level: str = "INFO"):
# create_freq_table(Config.bed_orf, Config.bed_exon, Config.ctrl_exon_file,
# logging_level)
#
mpopulate
=
populate
.
__wrapped__
#
mpopulate = populate.__wrapped__
# logging.info(f"Filling {Config.tables[0]} table")
# mpopulate(Config.tables[0], Config.gene_file, "y", logging_level)
# logging.info(f"Filling {Config.tables[1]} table")
# mpopulate(Config.tables[1], Config.exon_file, "y", logging_level)
logging
.
info
(
f
"
Filling
{
Config
.
tables
[
2
]
}
table
"
)
mpopulate
(
Config
.
tables
[
2
],
Config
.
frequency_file
,
"
y
"
,
logging_level
)
#
logging.info(f"Filling {Config.tables[2]} table")
#
mpopulate(Config.tables[2], Config.frequency_file, "y", logging_level)
launcher
(
logging_level
=
"
DEBUG
"
)
\ No newline at end of file
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