Skip to content
Snippets Groups Projects
Commit a663f6d5 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

started working on compound LE vs LLE biplot, WIP

Former-commit-id: 76a8d4129343edf8f59505cd3317ad37a2cde881
parent 0a2d515d
No related branches found
No related tags found
No related merge requests found
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)
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):
"""
......
Django==1.11
django-bootstrap3
django-pandas
bioservices
#typing
django-extensions>=2.0.5
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment