Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
capsuledb
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
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
gem
capsuledb
Commits
f949a1e6
Commit
f949a1e6
authored
9 years ago
by
Bertrand NÉRON
Browse files
Options
Downloads
Patches
Plain Diff
file containig system info could refer replicon which are not in replicon file
so skip these systems and log them
parent
2e8a3cdf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/parser/parser.py
+7
-1
7 additions, 1 deletion
src/parser/parser.py
with
7 additions
and
1 deletion
src/parser/parser.py
+
7
−
1
View file @
f949a1e6
...
...
@@ -179,13 +179,19 @@ def fill_db(server_uri, db_name, user, passwd, replicon_db, system_db, force_upd
secreton_db
=
server
.
get_or_create_db
(
db_name
)
system_codes
=
system_db
.
keys
()
system_codes
.
sort
()
print
(
"
number of documents:
"
,
len
(
system_codes
),
file
=
sys
.
stderr
)
for
syst_code
in
system_codes
:
system
=
system_db
[
syst_code
]
replicon
=
replicon_db
[
system
.
replicon
]
try
:
replicon
=
replicon_db
[
system
.
replicon
]
except
KeyError
:
print
(
"
ERROR Replicon {0} referenced in system annotation file is not present in replicon information file: replicon skipped
"
)
continue
secretion_system
=
SecretionSystem
()
secretion_system
.
_id
=
system
.
code
secretion_system
.
code
=
system
.
code
secretion_system
.
predicted_system
=
system
.
predicted_system
secretion_system
.
system_status
=
system
.
system_status
secretion_system
.
replicon
=
{
'
name
'
:
replicon
.
name
,
'
ncbi_id
'
:
replicon
.
ncbi_id
,
'
taxid
'
:
replicon
.
taxid
,
...
...
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