Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
a663f6d5
Commit
a663f6d5
authored
6 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
started working on compound LE vs LLE biplot, WIP
Former-commit-id: 76a8d4129343edf8f59505cd3317ad37a2cde881
parent
0a2d515d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ippisite/ippidb/management/commands/lle_le.py
+17
-0
17 additions, 0 deletions
ippisite/ippidb/management/commands/lle_le.py
ippisite/ippidb/models.py
+3
-0
3 additions, 0 deletions
ippisite/ippidb/models.py
ippisite/requirements.txt
+1
-0
1 addition, 0 deletions
ippisite/requirements.txt
with
21 additions
and
0 deletions
ippisite/ippidb/management/commands/lle_le.py
0 → 100644
+
17
−
0
View file @
a663f6d5
import
glob
from
django.utils
import
timezone
from
django.core.management
import
BaseCommand
,
CommandError
from
ippidb.models
import
Compound
class
Command
(
BaseCommand
):
help
=
"
Generate the data for the compound LE vs LLE biplot
"
def
handle
(
self
,
*
args
,
**
options
):
self
.
stdout
.
write
(
self
.
style
.
SUCCESS
(
'
Generating the LE vs. LLE biplot...
'
))
df
=
Compound
.
objects
.
all
().
to_dataframe
()
df
[
'
le
'
]
=
df
[
print
(
df
.
to_csv
())
print
(
df
.
columns
)
This diff is collapsed.
Click to expand it.
ippisite/ippidb/models.py
+
3
−
0
View file @
a663f6d5
from
__future__
import
unicode_literals
from
django.db
import
models
from
django_pandas.managers
import
DataFrameManager
from
.ws
import
get_pubmed_info
,
get_epo_info
,
get_uniprot_info
,
get_taxonomy_info
,
get_go_info
,
get_pfam_info
...
...
@@ -321,6 +322,8 @@ class Compound(models.Model):
mddr_compound
=
models
.
ForeignKey
(
'
MDDRCompoundImport
'
,
models
.
CASCADE
,
blank
=
True
,
null
=
True
)
objects
=
DataFrameManager
()
@property
def
biblio_refs
(
self
):
"""
...
...
This diff is collapsed.
Click to expand it.
ippisite/requirements.txt
+
1
−
0
View file @
a663f6d5
Django==1.11
django-bootstrap3
django-pandas
bioservices
#typing
django-extensions>=2.0.5
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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