Ejemplo n.º 1
0
class DrugSerializer(serializers.DynamicModelSerializer):
    targets = serializers.DynamicRelationField('TargetSerializer', many=True, deferred=True, embed=True)
    pathway_set = serializers.DynamicRelationField('PathwaySerializer', many=True, deferred=True, embed=True)

    class Meta:
        model = models.Drug
        exclude = ['bfp', 'mol_block', 'mol']
Ejemplo n.º 2
0
class PredictedBindingDomainsSerializer(serializers.DynamicModelSerializer):
    activity = serializers.DynamicRelationField('ActivitiesSerializer')
    site = serializers.DynamicRelationField('BindingSitesSerializer')

    class Meta:
        model = models.PredictedBindingDomains
        exclude = []
Ejemplo n.º 3
0
class CompoundStructuralAlertsSerializer(serializers.DynamicModelSerializer):
    alert = serializers.DynamicRelationField('StructuralAlertsSerializer')
    molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer')

    class Meta:
        model = models.CompoundStructuralAlerts
        exclude = []
Ejemplo n.º 4
0
class MoleculeAtcClassificationSerializer(serializers.DynamicModelSerializer):
    level5 = serializers.DynamicRelationField('AtcClassificationSerializer')
    molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer')

    class Meta:
        model = models.MoleculeAtcClassification
        exclude = []
Ejemplo n.º 5
0
class ActivitySuppMapSerializer(serializers.DynamicModelSerializer):
    activity = serializers.DynamicRelationField('ActivitiesSerializer')
    smid = serializers.DynamicRelationField('ActivitySmidSerializer')

    class Meta:
        model = models.ActivitySuppMap
        exclude = []
Ejemplo n.º 6
0
class MoleculeSynonymsSerializer(serializers.DynamicModelSerializer):
    molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer')
    res_stem = serializers.DynamicRelationField('ResearchStemSerializer')

    class Meta:
        model = models.MoleculeSynonyms
        exclude = []
Ejemplo n.º 7
0
class PathwaySerializer(serializers.DynamicModelSerializer):
    drugs = serializers.DynamicRelationField('DrugSerializer', many=True, deferred=True, embed=True)
    targets = serializers.DynamicRelationField('TargetSerializer', many=True, deferred=True, embed=True)

    class Meta:
        model = models.Pathway
        exclude = []
Ejemplo n.º 8
0
class FormulationsSerializer(serializers.DynamicModelSerializer):
    molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer')
    product = serializers.DynamicRelationField('ProductsSerializer')
    record = serializers.DynamicRelationField('CompoundRecordsSerializer')

    class Meta:
        model = models.Formulations
        exclude = []
Ejemplo n.º 9
0
class TargetRelationsSerializer(serializers.DynamicModelSerializer):
    related_tid = serializers.DynamicRelationField(
        'TargetDictionarySerializer')
    tid = serializers.DynamicRelationField('TargetDictionarySerializer')

    class Meta:
        model = models.TargetRelations
        exclude = []
Ejemplo n.º 10
0
class ProductPatentsSerializer(serializers.DynamicModelSerializer):
    patent_use_code = serializers.DynamicRelationField(
        'PatentUseCodesSerializer')
    product = serializers.DynamicRelationField('ProductsSerializer')

    class Meta:
        model = models.ProductPatents
        exclude = []
Ejemplo n.º 11
0
class ComponentDomainsSerializer(serializers.DynamicModelSerializer):
    component = serializers.DynamicRelationField(
        'ComponentSequencesSerializer')
    domain = serializers.DynamicRelationField('DomainsSerializer')

    class Meta:
        model = models.ComponentDomains
        exclude = []
Ejemplo n.º 12
0
class BiotherapeuticsSerializer(serializers.DynamicModelSerializer):
    biotherapeuticcomponents_set = serializers.DynamicRelationField(
        'BiotherapeuticComponentsSerializer', many=True, deferred=True)
    molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer')

    class Meta:
        model = models.Biotherapeutics
        exclude = []
Ejemplo n.º 13
0
class BiotherapeuticComponentsSerializer(serializers.DynamicModelSerializer):
    component = serializers.DynamicRelationField(
        'BioComponentSequencesSerializer')
    molregno = serializers.DynamicRelationField('BiotherapeuticsSerializer')

    class Meta:
        model = models.BiotherapeuticComponents
        exclude = []
Ejemplo n.º 14
0
class TargetComponentsSerializer(serializers.DynamicModelSerializer):
    component = serializers.DynamicRelationField(
        'ComponentSequencesSerializer', embed=True)
    tid = serializers.DynamicRelationField('TargetDictionarySerializer')

    class Meta:
        model = models.TargetComponents
        exclude = []
Ejemplo n.º 15
0
class ComponentGoSerializer(serializers.DynamicModelSerializer):
    component = serializers.DynamicRelationField(
        'ComponentSequencesSerializer')
    go = serializers.DynamicRelationField('GoClassificationSerializer')

    class Meta:
        model = models.ComponentGo
        exclude = []
Ejemplo n.º 16
0
class DrugIndicationSerializer(serializers.DynamicModelSerializer):
    indicationrefs_set = serializers.DynamicRelationField(
        'IndicationRefsSerializer', many=True, deferred=True)
    molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer')
    record = serializers.DynamicRelationField('CompoundRecordsSerializer')

    class Meta:
        model = models.DrugIndication
        exclude = []
Ejemplo n.º 17
0
class DomainsSerializer(serializers.DynamicModelSerializer):
    componentdomains_set = serializers.DynamicRelationField(
        'ComponentDomainsSerializer', many=True, deferred=True)
    sitecomponents_set = serializers.DynamicRelationField(
        'SiteComponentsSerializer', many=True, deferred=True)

    class Meta:
        model = models.Domains
        exclude = []
Ejemplo n.º 18
0
class ComponentClassSerializer(serializers.DynamicModelSerializer):
    component = serializers.DynamicRelationField(
        'ComponentSequencesSerializer')
    protein_class = serializers.DynamicRelationField(
        'ProteinClassificationSerializer')

    class Meta:
        model = models.ComponentClass
        exclude = []
Ejemplo n.º 19
0
class ProteinClassificationSerializer(serializers.DynamicModelSerializer):
    componentclass_set = serializers.DynamicRelationField(
        'ComponentClassSerializer', many=True, deferred=True)
    proteinclasssynonyms_set = serializers.DynamicRelationField(
        'ProteinClassSynonymsSerializer', many=True, deferred=True)

    class Meta:
        model = models.ProteinClassification
        exclude = []
Ejemplo n.º 20
0
class AtcClassificationSerializer(serializers.DynamicModelSerializer):
    defineddailydose_set = serializers.DynamicRelationField(
        'DefinedDailyDoseSerializer', many=True, deferred=True)
    moleculeatcclassification_set = serializers.DynamicRelationField(
        'MoleculeAtcClassificationSerializer', many=True, deferred=True)

    class Meta:
        model = models.AtcClassification
        exclude = []
Ejemplo n.º 21
0
class ProductsSerializer(serializers.DynamicModelSerializer):
    formulations_set = serializers.DynamicRelationField(
        'FormulationsSerializer', many=True, deferred=True)
    productpatents_set = serializers.DynamicRelationField(
        'ProductPatentsSerializer', many=True, deferred=True)

    class Meta:
        model = models.Products
        exclude = []
Ejemplo n.º 22
0
class ActivitySmidSerializer(serializers.DynamicModelSerializer):
    activitysupp_set = serializers.DynamicRelationField(
        'ActivitySuppSerializer', many=True, deferred=True)
    activitysuppmap_set = serializers.DynamicRelationField(
        'ActivitySuppMapSerializer', many=True, deferred=True)

    class Meta:
        model = models.ActivitySmid
        exclude = []
Ejemplo n.º 23
0
class TissueDictionarySerializer(serializers.DynamicModelSerializer):
    assays_set = serializers.DynamicRelationField('AssaysSerializer',
                                                  many=True,
                                                  deferred=True)
    chembl = serializers.DynamicRelationField('ChemblIdLookupSerializer')

    class Meta:
        model = models.TissueDictionary
        exclude = []
Ejemplo n.º 24
0
class StructuralAlertsSerializer(serializers.DynamicModelSerializer):
    alert_set = serializers.DynamicRelationField(
        'StructuralAlertSetsSerializer')
    compoundstructuralalerts_set = serializers.DynamicRelationField(
        'CompoundStructuralAlertsSerializer', many=True, deferred=True)

    class Meta:
        model = models.StructuralAlerts
        exclude = []
Ejemplo n.º 25
0
class SiteComponentsSerializer(serializers.DynamicModelSerializer):
    component = serializers.DynamicRelationField(
        'ComponentSequencesSerializer')
    domain = serializers.DynamicRelationField('DomainsSerializer')
    site = serializers.DynamicRelationField('BindingSitesSerializer')

    class Meta:
        model = models.SiteComponents
        exclude = []
Ejemplo n.º 26
0
class ResearchStemSerializer(serializers.DynamicModelSerializer):
    moleculesynonyms_set = serializers.DynamicRelationField(
        'MoleculeSynonymsSerializer', many=True, deferred=True)
    researchcompanies_set = serializers.DynamicRelationField(
        'ResearchCompaniesSerializer', many=True, deferred=True)

    class Meta:
        model = models.ResearchStem
        exclude = []
Ejemplo n.º 27
0
class MoleculeHierarchySerializer(serializers.DynamicModelSerializer):
    active_molregno = serializers.DynamicRelationField(
        'MoleculeDictionarySerializer')
    molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer')
    parent_molregno = serializers.DynamicRelationField(
        'MoleculeDictionarySerializer')

    class Meta:
        model = models.MoleculeHierarchy
        exclude = []
Ejemplo n.º 28
0
class TargetSerializer(serializers.DynamicModelSerializer):
    drug_set = serializers.DynamicRelationField('DrugSerializer', many=True, deferred=True, embed=True)
    drugbankids = serializers.DynamicRelationField('DrugBankIDSerializer', many=True, deferred=True, embed=True)
    chembl_small_molecules_all_infos = serializers.DynamicRelationField('ChEMBL_small_molecule_all_info_Serializer', many=True, deferred=True, embed=True)
    chembl_small_molecules_structure_info = serializers.DynamicRelationField('ChEMBL_small_molecule_Serializer', many=True, deferred=True, embed=True)
    pathway_set = serializers.DynamicRelationField('PathwaySerializer', many=True, deferred=True, embed=True)


    class Meta:
        model = models.Target
        exclude = []
Ejemplo n.º 29
0
class BioassayOntologySerializer(serializers.DynamicModelSerializer):
    activities_set = serializers.DynamicRelationField('ActivitiesSerializer',
                                                      many=True,
                                                      deferred=True)
    assays_set = serializers.DynamicRelationField('AssaysSerializer',
                                                  many=True,
                                                  deferred=True)

    class Meta:
        model = models.BioassayOntology
        exclude = []
Ejemplo n.º 30
0
class BindingSitesSerializer(serializers.DynamicModelSerializer):
    drugmechanism_set = serializers.DynamicRelationField(
        'DrugMechanismSerializer', many=True, deferred=True)
    predictedbindingdomains_set = serializers.DynamicRelationField(
        'PredictedBindingDomainsSerializer', many=True, deferred=True)
    sitecomponents_set = serializers.DynamicRelationField(
        'SiteComponentsSerializer', many=True, deferred=True)
    tid = serializers.DynamicRelationField('TargetDictionarySerializer')

    class Meta:
        model = models.BindingSites
        exclude = []