Skip to content

Instantly share code, notes, and snippets.

@Orbifold
Created February 9, 2022 10:04
Show Gist options
  • Save Orbifold/f03daae19e813937f17cffe76e325097 to your computer and use it in GitHub Desktop.
Save Orbifold/f03daae19e813937f17cffe76e325097 to your computer and use it in GitHub Desktop.
DRKG schema creation in TigerGraph
use global
CREATE VERTEX Gene (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Compound (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Disease (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Atc (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Tax (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX BiologicalProcess (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Symptom (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Anatomy (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX MolecularFunction (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX PharmacologicClass (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX CellularComponent (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Pathway (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX SideEffect (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE DIRECTED EDGE bioarxHumGenHumGenGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE bioarxVirGenHumGenGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE GNBRVGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE GNBRQGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE GNBRRgGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE GNBRBGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE GNBRIGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE GNBREGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE GNBRHGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE GNBRWGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE HetionetGiGGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE HetionetGcGGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE HetionetGrGGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE INTACTASSOCIATIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE INTACTPHYSICALASSOCIATIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE INTACTCOLOCALIZATIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE INTACTDEPHOSPHORYLATIONREACTIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE INTACTCLEAVAGEREACTIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE INTACTDIRECTINTERACTIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE INTACTPHOSPHORYLATIONREACTIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE INTACTADPRIBOSYLATIONREACTIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE INTACTUBIQUITINATIONREACTIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE INTACTPROTEINCLEAVAGEGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE STRINGREACTIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE STRINGCATALYSISGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE STRINGACTIVATIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE STRINGINHIBITIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE STRINGOTHERGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE STRINGBINDINGGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE STRINGPTMODGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE STRINGEXPRESSIONGeneGene (FROM Gene, TO Gene)
CREATE DIRECTED EDGE bioarxDrugVirGenCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE bioarxDrugHumGenCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE DRUGBANKtargetCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE DRUGBANKenzymeCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE DRUGBANKcarrierCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE GNBRECompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE GNBRACompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE GNBRNCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE GNBRKCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE GNBRBCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE GNBROCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE GNBRZCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE HetionetCbGCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE HetionetCuGCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE HetionetCdGCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE INTACTPHYSICALASSOCIATIONCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE INTACTDIRECTINTERACTIONCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE INTACTASSOCIATIONCompoundGene (FROM Compound, TO Gene)
CREATE DIRECTED EDGE bioarxCovid2_acc_host_geneDiseaseGene (FROM Disease, TO Gene)
CREATE DIRECTED EDGE bioarxCoronavirus_ass_host_geneDiseaseGene (FROM Disease, TO Gene)
CREATE DIRECTED EDGE HetionetDdGDiseaseGene (FROM Disease, TO Gene)
CREATE DIRECTED EDGE HetionetDaGDiseaseGene (FROM Disease, TO Gene)
CREATE DIRECTED EDGE HetionetDuGDiseaseGene (FROM Disease, TO Gene)
CREATE DIRECTED EDGE DGIDBINHIBITORGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DGIDBANTAGONISTGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DGIDBOTHERGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DGIDBAGONISTGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DGIDBBINDERGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DGIDBMODULATORGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DGIDBBLOCKERGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DGIDBCHANNELBLOCKERGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DGIDBANTIBODYGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DGIDBPOSITIVEALLOSTERICMODULATORGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DGIDBALLOSTERICMODULATORGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DGIDBACTIVATORGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DGIDBPARTIALAGONISTGeneCompound (FROM Gene, TO Compound)
CREATE DIRECTED EDGE DRUGBANKxatcCompoundAtc (FROM Compound, TO Atc)
CREATE DIRECTED EDGE DRUGBANKddiinteractorinCompoundCompound (FROM Compound, TO Compound)
CREATE DIRECTED EDGE HetionetCrCCompoundCompound (FROM Compound, TO Compound)
CREATE DIRECTED EDGE DRUGBANKtreatsCompoundDisease (FROM Compound, TO Disease)
CREATE DIRECTED EDGE GNBRTCompoundDisease (FROM Compound, TO Disease)
CREATE DIRECTED EDGE GNBRCCompoundDisease (FROM Compound, TO Disease)
CREATE DIRECTED EDGE GNBRSaCompoundDisease (FROM Compound, TO Disease)
CREATE DIRECTED EDGE GNBRPaCompoundDisease (FROM Compound, TO Disease)
CREATE DIRECTED EDGE GNBRMpCompoundDisease (FROM Compound, TO Disease)
CREATE DIRECTED EDGE GNBRPrCompoundDisease (FROM Compound, TO Disease)
CREATE DIRECTED EDGE GNBRJCompoundDisease (FROM Compound, TO Disease)
CREATE DIRECTED EDGE HetionetCtDCompoundDisease (FROM Compound, TO Disease)
CREATE DIRECTED EDGE HetionetCpDCompoundDisease (FROM Compound, TO Disease)
CREATE DIRECTED EDGE GNBRLGeneDisease (FROM Gene, TO Disease)
CREATE DIRECTED EDGE GNBRUGeneDisease (FROM Gene, TO Disease)
CREATE DIRECTED EDGE GNBRYGeneDisease (FROM Gene, TO Disease)
CREATE DIRECTED EDGE GNBRJGeneDisease (FROM Gene, TO Disease)
CREATE DIRECTED EDGE GNBRTeGeneDisease (FROM Gene, TO Disease)
CREATE DIRECTED EDGE GNBRMdGeneDisease (FROM Gene, TO Disease)
CREATE DIRECTED EDGE GNBRGGeneDisease (FROM Gene, TO Disease)
CREATE DIRECTED EDGE GNBRDGeneDisease (FROM Gene, TO Disease)
CREATE DIRECTED EDGE GNBRXGeneDisease (FROM Gene, TO Disease)
CREATE DIRECTED EDGE GNBRUdGeneDisease (FROM Gene, TO Disease)
CREATE DIRECTED EDGE GNBRin_taxGeneTax (FROM Gene, TO Tax)
CREATE DIRECTED EDGE HetionetGpBPGeneBiologicalProcess (FROM Gene, TO BiologicalProcess)
CREATE DIRECTED EDGE HetionetDpSDiseaseSymptom (FROM Disease, TO Symptom)
CREATE DIRECTED EDGE HetionetDlADiseaseAnatomy (FROM Disease, TO Anatomy)
CREATE DIRECTED EDGE HetionetDrDDiseaseDisease (FROM Disease, TO Disease)
CREATE DIRECTED EDGE HetionetAdGAnatomyGene (FROM Anatomy, TO Gene)
CREATE DIRECTED EDGE HetionetAuGAnatomyGene (FROM Anatomy, TO Gene)
CREATE DIRECTED EDGE HetionetAeGAnatomyGene (FROM Anatomy, TO Gene)
CREATE DIRECTED EDGE HetionetGpMFGeneMolecularFunction (FROM Gene, TO MolecularFunction)
CREATE DIRECTED EDGE HetionetPCiCPharmacologicClassCompound (FROM PharmacologicClass, TO Compound)
CREATE DIRECTED EDGE HetionetGpCCGeneCellularComponent (FROM Gene, TO CellularComponent)
CREATE DIRECTED EDGE HetionetGpPWGenePathway (FROM Gene, TO Pathway)
CREATE DIRECTED EDGE HetionetCcSECompoundSideEffect (FROM Compound, TO SideEffect)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment