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']
class PredictedBindingDomainsSerializer(serializers.DynamicModelSerializer): activity = serializers.DynamicRelationField('ActivitiesSerializer') site = serializers.DynamicRelationField('BindingSitesSerializer') class Meta: model = models.PredictedBindingDomains exclude = []
class CompoundStructuralAlertsSerializer(serializers.DynamicModelSerializer): alert = serializers.DynamicRelationField('StructuralAlertsSerializer') molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer') class Meta: model = models.CompoundStructuralAlerts exclude = []
class MoleculeAtcClassificationSerializer(serializers.DynamicModelSerializer): level5 = serializers.DynamicRelationField('AtcClassificationSerializer') molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer') class Meta: model = models.MoleculeAtcClassification exclude = []
class ActivitySuppMapSerializer(serializers.DynamicModelSerializer): activity = serializers.DynamicRelationField('ActivitiesSerializer') smid = serializers.DynamicRelationField('ActivitySmidSerializer') class Meta: model = models.ActivitySuppMap exclude = []
class MoleculeSynonymsSerializer(serializers.DynamicModelSerializer): molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer') res_stem = serializers.DynamicRelationField('ResearchStemSerializer') class Meta: model = models.MoleculeSynonyms exclude = []
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 = []
class FormulationsSerializer(serializers.DynamicModelSerializer): molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer') product = serializers.DynamicRelationField('ProductsSerializer') record = serializers.DynamicRelationField('CompoundRecordsSerializer') class Meta: model = models.Formulations exclude = []
class TargetRelationsSerializer(serializers.DynamicModelSerializer): related_tid = serializers.DynamicRelationField( 'TargetDictionarySerializer') tid = serializers.DynamicRelationField('TargetDictionarySerializer') class Meta: model = models.TargetRelations exclude = []
class ProductPatentsSerializer(serializers.DynamicModelSerializer): patent_use_code = serializers.DynamicRelationField( 'PatentUseCodesSerializer') product = serializers.DynamicRelationField('ProductsSerializer') class Meta: model = models.ProductPatents exclude = []
class ComponentDomainsSerializer(serializers.DynamicModelSerializer): component = serializers.DynamicRelationField( 'ComponentSequencesSerializer') domain = serializers.DynamicRelationField('DomainsSerializer') class Meta: model = models.ComponentDomains exclude = []
class BiotherapeuticsSerializer(serializers.DynamicModelSerializer): biotherapeuticcomponents_set = serializers.DynamicRelationField( 'BiotherapeuticComponentsSerializer', many=True, deferred=True) molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer') class Meta: model = models.Biotherapeutics exclude = []
class BiotherapeuticComponentsSerializer(serializers.DynamicModelSerializer): component = serializers.DynamicRelationField( 'BioComponentSequencesSerializer') molregno = serializers.DynamicRelationField('BiotherapeuticsSerializer') class Meta: model = models.BiotherapeuticComponents exclude = []
class TargetComponentsSerializer(serializers.DynamicModelSerializer): component = serializers.DynamicRelationField( 'ComponentSequencesSerializer', embed=True) tid = serializers.DynamicRelationField('TargetDictionarySerializer') class Meta: model = models.TargetComponents exclude = []
class ComponentGoSerializer(serializers.DynamicModelSerializer): component = serializers.DynamicRelationField( 'ComponentSequencesSerializer') go = serializers.DynamicRelationField('GoClassificationSerializer') class Meta: model = models.ComponentGo exclude = []
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 = []
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 = []
class ComponentClassSerializer(serializers.DynamicModelSerializer): component = serializers.DynamicRelationField( 'ComponentSequencesSerializer') protein_class = serializers.DynamicRelationField( 'ProteinClassificationSerializer') class Meta: model = models.ComponentClass exclude = []
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 = []
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 = []
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 = []
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 = []
class TissueDictionarySerializer(serializers.DynamicModelSerializer): assays_set = serializers.DynamicRelationField('AssaysSerializer', many=True, deferred=True) chembl = serializers.DynamicRelationField('ChemblIdLookupSerializer') class Meta: model = models.TissueDictionary exclude = []
class StructuralAlertsSerializer(serializers.DynamicModelSerializer): alert_set = serializers.DynamicRelationField( 'StructuralAlertSetsSerializer') compoundstructuralalerts_set = serializers.DynamicRelationField( 'CompoundStructuralAlertsSerializer', many=True, deferred=True) class Meta: model = models.StructuralAlerts exclude = []
class SiteComponentsSerializer(serializers.DynamicModelSerializer): component = serializers.DynamicRelationField( 'ComponentSequencesSerializer') domain = serializers.DynamicRelationField('DomainsSerializer') site = serializers.DynamicRelationField('BindingSitesSerializer') class Meta: model = models.SiteComponents exclude = []
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 = []
class MoleculeHierarchySerializer(serializers.DynamicModelSerializer): active_molregno = serializers.DynamicRelationField( 'MoleculeDictionarySerializer') molregno = serializers.DynamicRelationField('MoleculeDictionarySerializer') parent_molregno = serializers.DynamicRelationField( 'MoleculeDictionarySerializer') class Meta: model = models.MoleculeHierarchy exclude = []
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 = []
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 = []
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 = []