Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
iPPIDB
ippidb-web
Commits
ec5e5231
Commit
ec5e5231
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
keep previous IDs for compounds (close #51)
Former-commit-id: dc7d75f5db848b8eab3228c01c4fe51c0a5e986c
parent
37cab5b5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ippisite/db.sqlite3.REMOVED.git-id
+1
-1
1 addition, 1 deletion
ippisite/db.sqlite3.REMOVED.git-id
ippisite/ippidb/management/commands/import_v1_data.py
+1
-0
1 addition, 0 deletions
ippisite/ippidb/management/commands/import_v1_data.py
with
2 additions
and
1 deletion
ippisite/db.sqlite3.REMOVED.git-id
+
1
−
1
View file @
ec5e5231
6def815c597d9d9c8c7e97e6b7e8fd71da7d64ac
b3413ac6f067ab89b2dad63c444b3021ffeef640
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ippisite/ippidb/management/commands/import_v1_data.py
+
1
−
0
View file @
ec5e5231
...
@@ -560,6 +560,7 @@ select distinct protein.NumUniprot, domain.PfamNumAccession , complexe.NbCopy,
...
@@ -560,6 +560,7 @@ select distinct protein.NumUniprot, domain.PfamNumAccession , complexe.NbCopy,
for
row
in
rows
:
for
row
in
rows
:
try
:
try
:
compound
=
Compound
()
compound
=
Compound
()
compound
.
id
=
row
[
0
]
compound
.
canonical_smile
=
row
[
1
]
compound
.
canonical_smile
=
row
[
1
]
compound
.
is_macrocycle
=
(
row
[
4
]
==
'
Y
'
)
compound
.
is_macrocycle
=
(
row
[
4
]
==
'
Y
'
)
compound
.
aromatic_ratio
=
row
[
5
]
compound
.
aromatic_ratio
=
row
[
5
]
...
...
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