示例#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']
示例#2
0
class PredictedBindingDomainsSerializer(serializers.DynamicModelSerializer):
    activity = serializers.DynamicRelationField('ActivitiesSerializer')
    site = serializers.DynamicRelationField('BindingSitesSerializer')

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

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

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

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

    class Meta:
        model = models.MoleculeSynonyms
        exclude = []
示例#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 = []
示例#8
0
class FormulationsSerializer(serializers.DynamicModelSerializer):
    molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer')
    product = serializers.DynamicRelationField('ProductsSerializer')
    record = serializers.DynamicRelationField('CompoundRecordsSerializer')

    class Meta:
        model = models.Formulations
        exclude = []
示例#9
0
class TargetRelationsSerializer(serializers.DynamicModelSerializer):
    related_tid = serializers.DynamicRelationField(
        'TargetDictionarySerializer')
    tid = serializers.DynamicRelationField('TargetDictionarySerializer')

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

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

    class Meta:
        model = models.ComponentDomains
        exclude = []
示例#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 = []
示例#13
0
class BiotherapeuticComponentsSerializer(serializers.DynamicModelSerializer):
    component = serializers.DynamicRelationField(
        'BioComponentSequencesSerializer')
    molregno = serializers.DynamicRelationField('BiotherapeuticsSerializer')

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

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

    class Meta:
        model = models.ComponentGo
        exclude = []
示例#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 = []
示例#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 = []
示例#18
0
class ComponentClassSerializer(serializers.DynamicModelSerializer):
    component = serializers.DynamicRelationField(
        'ComponentSequencesSerializer')
    protein_class = serializers.DynamicRelationField(
        'ProteinClassificationSerializer')

    class Meta:
        model = models.ComponentClass
        exclude = []
示例#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 = []
示例#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 = []
示例#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 = []
示例#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 = []
示例#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 = []
示例#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 = []
示例#25
0
class SiteComponentsSerializer(serializers.DynamicModelSerializer):
    component = serializers.DynamicRelationField(
        'ComponentSequencesSerializer')
    domain = serializers.DynamicRelationField('DomainsSerializer')
    site = serializers.DynamicRelationField('BindingSitesSerializer')

    class Meta:
        model = models.SiteComponents
        exclude = []
示例#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 = []
示例#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 = []
示例#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 = []
示例#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 = []
示例#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 = []