• Search drugs using names or synonyms

    Method
    GET
    URL
    /L1000FWD/synonyms/<string:query_string>
    Returns
    JSON array of drug objects
    Example code
    import json, requests
    from pprint import pprint
    
    L1000FWD_URL = 'https://maayanlab.cloud/L1000FWD/'
    
    query_string = 'dex'
    response = requests.get(L1000FWD_URL + 'synonyms/' + query_string)
    if response.status_code == 200:
    	pprint(response.json())
    	json.dump(response.json(), open('api1_result.json', 'wb'), indent=4)
    library(httr)
    library(jsonlite)
    
    L1000FWD_URL <- 'https://maayanlab.cloud/L1000FWD/'
    
    query_string <- 'dex'
    response <- GET(paste0(L1000FWD_URL, 'synonyms/', query_string))
    if (response$status_code == 200){
    	response <- fromJSON(httr::content(response, 'text'))
    	print(response)
    }
    Example result
    [
        {
            "pert_id": "BRD-K07265709", 
            "Name": "DEXRAZOXANE"
        }, 
        {
            "pert_id": "BRD-A93424738", 
            "Name": "DEXAMETHASONE-ACETATE"
        }, 
        {
            "pert_id": "BRD-A10188456", 
            "Name": "DEXAMETHASONE"
        }, 
        {
            "pert_id": "BRD-A35108200", 
            "Name": "DEXAMETHASONE"
        }, 
        {
            "pert_id": "BRD-A69951442", 
            "Name": "DEXAMETHASONE"
        }, 
        {
            "pert_id": "BRD-A93424738", 
            "Name": "DEXAMETHASONE"
        }, 
        {
            "pert_id": "BRD-K38775274", 
            "Name": "DEXAMETHASONE"
        }, 
        {
            "pert_id": "BRD-K43764301", 
            "Name": "DEXKETOPROFEN"
        }, 
        {
            "pert_id": "BRD-K47635719", 
            "Name": "DEXAMETHASONE"
        }, 
        {
            "pert_id": "BRD-K04210847", 
            "Name": "NOLVADEX"
        }
    ]
  • Get a single signature by ID

    Method
    GET
    URL
    /L1000FWD/sig/<string:sig_id>
    Returns
    Data and metadata of a signature.
    Example code
    import json, requests
    from pprint import pprint
    
    L1000FWD_URL = 'https://maayanlab.cloud/L1000FWD/'
    
    sig_id = 'CPC006_HA1E_24H:BRD-A70155556-001-04-4:40'
    response = requests.get(L1000FWD_URL + 'sig/' + sig_id)
    if response.status_code == 200:
    	pprint(response.json())
    	json.dump(response.json(), open('api2_result.json', 'wb'), indent=4)
    library(httr)
    library(jsonlite)
    
    L1000FWD_URL <- 'https://maayanlab.cloud/L1000FWD/'
    
    sig_id <- 'CPC006_HA1E_24H:BRD-A70155556-001-04-4:40'
    response <- GET(paste0(L1000FWD_URL, 'sig/', sig_id))
    if (response$status_code == 200){
    	response <- fromJSON(httr::content(response, 'text'))
    	print(response)
    }
    Example result
    {
        "pert_time": 24, 
        "cell_id": "HA1E", 
        "mean_cosine_dist_centered_by_batch": 0.7235488042208277, 
        "up_genes": [
            "CD74", 
            "TIMP4", 
            "ADD3", 
            "MFGE8", 
            "FAM3C", 
            "MMP2", 
            "SIDT2", 
            "CASP10", 
            "PKP4", 
            "MFAP2", 
            "S100A11", 
            "SLC25A16", 
            "PPL", 
            "PBXIP1", 
            "ADIPOQ", 
            "GSN", 
            "DCN", 
            "MRC2", 
            "SLC39A14", 
            "DYNLT1", 
            "DHRS3", 
            "ARHGEF3", 
            "MAP3K5", 
            "PSD3", 
            "CAPN2", 
            "CRABP2", 
            "SOBP", 
            "TAGLN2", 
            "PIP4K2A", 
            "PDE4B", 
            "ARHGEF40", 
            "EHBP1L1", 
            "AQP1", 
            "TSC22D3", 
            "B4GALT1", 
            "FAM69A", 
            "KCNN4", 
            "KLHL2", 
            "PROM1", 
            "CYP3A5", 
            "SETD5", 
            "FGFR3", 
            "ADCY1", 
            "SYPL1", 
            "DNAJA3", 
            "LRP4", 
            "RBM47", 
            "GRB10", 
            "RNF187", 
            "TNIK", 
            "CD9", 
            "AHR", 
            "FKBP1B", 
            "ANGPTL2", 
            "KDELR2", 
            "KDELR3", 
            "XPNPEP1", 
            "DDAH2", 
            "AKAP13", 
            "TNFSF10", 
            "EVL", 
            "MTSS1", 
            "C1ORF38", 
            "CDKN1C", 
            "RPL27A", 
            "DUOX2", 
            "SERINC3", 
            "PPFIBP1", 
            "GFRA1", 
            "DNM1", 
            "ABCA8", 
            "TRIB2", 
            "LAMB1", 
            "LTBP3", 
            "NDRG2", 
            "RIN2", 
            "PHLDA1", 
            "ARL4C", 
            "EXOSC4", 
            "KCNJ16", 
            "PPP1R1A", 
            "SFN", 
            "APOD", 
            "THBS4", 
            "AKR1C1", 
            "NID2", 
            "FAM129A", 
            "TTN", 
            "PIK3R1", 
            "MLPH", 
            "PJA1", 
            "ANXA10", 
            "RRBP1", 
            "PLIN1", 
            "EREG", 
            "TTC3", 
            "CDC25B", 
            "EFS", 
            "GTF2IRD1", 
            "DSP", 
            "MLLT11", 
            "SHB", 
            "PRKCA", 
            "ZCCHC24", 
            "IGFBP5", 
            "RHOC", 
            "ITPR3", 
            "RHOA", 
            "CAPG", 
            "PAX8", 
            "EIF4B", 
            "OLFML2A", 
            "HOPX", 
            "DEPTOR", 
            "C6ORF62", 
            "TNS1", 
            "AZGP1", 
            "SDC1", 
            "G6PD", 
            "SDC4", 
            "TUBB", 
            "CALML5", 
            "CCNI", 
            "MEF2C", 
            "MGP", 
            "ELOVL2", 
            "SPOCK1", 
            "GPD1L", 
            "WNT5A", 
            "CRIP1", 
            "FAM134B", 
            "ATXN1", 
            "STX1A", 
            "EPHX1", 
            "TNFAIP6", 
            "MKNK2", 
            "SEC14L1", 
            "NEB", 
            "ABCA1", 
            "SMAD3", 
            "SLC2A10", 
            "FABP4", 
            "RPL37A", 
            "DLK1", 
            "MAGT1", 
            "RHOB", 
            "TXNIP", 
            "SVIL", 
            "ZNF277", 
            "CDC42SE1", 
            "LUM", 
            "CES2", 
            "AKR1C3", 
            "LAMC1", 
            "CYP1B1", 
            "ASPN", 
            "TBC1D5", 
            "IGJ", 
            "FHL1", 
            "LINC00341", 
            "PDCD4", 
            "REEP5", 
            "ARMCX3", 
            "FAM127A", 
            "TRIL", 
            "CLIC3", 
            "POSTN", 
            "ARL6IP5", 
            "AIM1", 
            "ZFP36L1", 
            "TFF1", 
            "PLA2G2A", 
            "A2M", 
            "SALL1", 
            "MXRA7", 
            "TPD52L1", 
            "NT5DC2", 
            "FSCN1", 
            "SLPI", 
            "KIAA1598", 
            "NCK2", 
            "GALNT10", 
            "ACOX2", 
            "CFI", 
            "LRRN3", 
            "ID1", 
            "TAPBP", 
            "MET", 
            "MAN1C1", 
            "EMP3", 
            "COL1A1", 
            "MMD", 
            "ZMIZ1", 
            "PDE4A", 
            "LDLRAP1", 
            "ASAP2", 
            "PRG2", 
            "TGFB1", 
            "RPS11", 
            "DDR1", 
            "LAPTM4A", 
            "LAPTM4B", 
            "PLAUR", 
            "CD58", 
            "VCAN", 
            "JUND", 
            "IGSF3", 
            "GPR56", 
            "ECE1", 
            "MAGEA3", 
            "SORBS3", 
            "SORBS2", 
            "BIN1", 
            "HIST1H2AC", 
            "LOXL1", 
            "KLF11", 
            "CDK19", 
            "RAB31", 
            "PRDX2", 
            "NEFL", 
            "RAB7L1", 
            "SULF1", 
            "TATDN2", 
            "TGOLN2", 
            "CLIP2", 
            "KLF2", 
            "SYNJ2", 
            "JAG1", 
            "CTSB", 
            "ITGAM", 
            "PLXNB2", 
            "PDGFC", 
            "TPST2", 
            "ANXA4", 
            "BEX1", 
            "PTN", 
            "HOOK2", 
            "CD44", 
            "EFHD1", 
            "PLAU", 
            "FBN1", 
            "ABR", 
            "CYBA", 
            "TNC", 
            "CYTH1", 
            "MEX3D", 
            "NRP1", 
            "PBX1", 
            "COL6A2", 
            "RNF167", 
            "NTRK2", 
            "RPL38", 
            "ACTN4", 
            "VAMP8", 
            "CALR", 
            "CFB", 
            "EZR", 
            "CASP9", 
            "CREB3L2", 
            "NOTCH2", 
            "ADH1B", 
            "MMP7", 
            "CRIP2", 
            "PTPRK", 
            "AHNAK", 
            "PITPNC1", 
            "ABCC3"
        ], 
        "batch": "CPC006_HA1E_24H", 
        "pvalue": 0.0, 
        "pert_dose": 40.0, 
        "combined_genes": [
            "HSPA2", 
            "ADD3", 
            "MFGE8", 
            "IFI27", 
            "FAM3C", 
            "SIVA1", 
            "IL6ST", 
            "MFAP2", 
            "TIMP3", 
            "THBS1", 
            "FRY", 
            "ADIPOQ", 
            "IL1RL1", 
            "DCN", 
            "ACTG2", 
            "GADD45B", 
            "PTPLA", 
            "FAM46A", 
            "MAP3K5", 
            "PSD3", 
            "INHBA", 
            "ISG15", 
            "TAGLN2", 
            "C12ORF24", 
            "KLHDC10", 
            "IGF1R", 
            "SUMO2", 
            "AQP1", 
            "CTSB", 
            "TRIM22", 
            "SLC25A4", 
            "B4GALT1", 
            "FLRT2", 
            "IFRD2", 
            "CXCL10", 
            "CXCL13", 
            "CYP3A5", 
            "SETD5", 
            "FGFR3", 
            "DNAJA3", 
            "SNRPD3", 
            "ADCY1", 
            "RBM47", 
            "CCND1", 
            "GRB10", 
            "RNF187", 
            "PPFIBP1", 
            "AHR", 
            "FKBP1B", 
            "ANGPTL2", 
            "PRSS23", 
            "IL7R", 
            "TNFSF10", 
            "EVL", 
            "GSPT2", 
            "CDKN1C", 
            "RARRES2", 
            "DUOX2", 
            "ITGA4", 
            "CELF2", 
            "ITGA6", 
            "MX1", 
            "PRG2", 
            "NOP16", 
            "PTGDS", 
            "NDRG2", 
            "RIN2", 
            "PHLDA1", 
            "SERPINE1", 
            "MTSS1", 
            "PPP1R1A", 
            "APOD", 
            "HSPH1", 
            "AHNAK", 
            "MEIS2", 
            "TFRC", 
            "SOBP", 
            "TTN", 
            "PJA1", 
            "ANXA10", 
            "PLIN1", 
            "B4GALT6", 
            "PDLIM5", 
            "RSAD2", 
            "FST", 
            "TUBB6", 
            "GBP1", 
            "EFS", 
            "DSP", 
            "TMEM97", 
            "HERC5", 
            "PDE4A", 
            "ZNF589", 
            "LAMC1", 
            "ZEB1", 
            "PAX8", 
            "CRIM1", 
            "CR2", 
            "NAA15", 
            "DDR1", 
            "C12ORF5", 
            "ITGAM", 
            "GPD1L", 
            "CRIP1", 
            "FAM134B", 
            "EIF4A3", 
            "ATXN1", 
            "STX1A", 
            "RASIP1", 
            "MKNK2", 
            "ATF3", 
            "SEC14L1", 
            "HERC6", 
            "SSB", 
            "ARHGEF3", 
            "TBX2", 
            "TNIK", 
            "EFHD1", 
            "DLK1", 
            "AKAP13", 
            "RHOB", 
            "CDC42SE1", 
            "CD9", 
            "NEDD9", 
            "JMJD6", 
            "STAT1", 
            "PELI2", 
            "ASPN", 
            "MMP2", 
            "IGJ", 
            "IFI44L", 
            "FHL1", 
            "TFPI", 
            "GALNT3", 
            "OXTR", 
            "NDN", 
            "D4S234E", 
            "ABCG2", 
            "MCAM", 
            "TFF1", 
            "PLA2G2A", 
            "SMTN", 
            "SALL1", 
            "MXRA7", 
            "TPD52L1", 
            "NT5DC2", 
            "ASRGL1", 
            "FSCN1", 
            "SLPI", 
            "KIAA1598", 
            "LRP4", 
            "LRRN3", 
            "TAPBP", 
            "HAT1", 
            "MAN1C1", 
            "EREG", 
            "HSPE1", 
            "COL1A1", 
            "MME", 
            "MMD", 
            "PDE4B", 
            "LDLRAP1", 
            "ABCA8", 
            "CDH11", 
            "TOX", 
            "TNFAIP6", 
            "LAPTM4A", 
            "LEPREL1", 
            "LAPTM4B", 
            "HMGB3", 
            "PLAUR", 
            "IGSF3", 
            "MAP2K3", 
            "NIP7", 
            "MOSPD1", 
            "ERG", 
            "MAGEA3", 
            "MAP9", 
            "BIN1", 
            "ALDH1A1", 
            "MID1", 
            "KLF11", 
            "CDK19", 
            "CHORDC1", 
            "SIK1", 
            "PRDX2", 
            "NEFL", 
            "VPS28", 
            "RAB7L1", 
            "SULF1", 
            "PPL", 
            "TGOLN2", 
            "CLIP2", 
            "RBM25", 
            "HIST1H2AC", 
            "SYNJ2", 
            "TOX3", 
            "JAG1", 
            "ATP5G1", 
            "C1ORF38", 
            "TPST2", 
            "ANXA4", 
            "TXN", 
            "CD44", 
            "NOLC1", 
            "FBN1", 
            "ABR", 
            "KLF10", 
            "DKK1", 
            "DUSP14", 
            "MEX3D", 
            "NRP1", 
            "TBL1X", 
            "CRABP2", 
            "NCK2", 
            "CFI", 
            "CALR", 
            "CFB", 
            "CYB5A", 
            "CASP9", 
            "NOTCH2", 
            "FAR2", 
            "EMX2", 
            "CRIP2", 
            "ABCC3", 
            "SFTPD", 
            "EFNB2", 
            "TIMP4", 
            "LUM", 
            "COL11A1", 
            "KCNE4", 
            "SFTPC", 
            "PPP2R3C", 
            "KLK10", 
            "SIDT2", 
            "CASP10", 
            "PKP4", 
            "CDC42EP3", 
            "PKP2", 
            "DDX24", 
            "S100A11", 
            "SLC25A16", 
            "BDNF", 
            "PBXIP1", 
            "MAFF", 
            "GSN", 
            "MRC2", 
            "NXN", 
            "SLC39A14", 
            "TM4SF1", 
            "DYNLT1", 
            "DHRS3", 
            "NTRK2", 
            "RCAN1", 
            "GAL", 
            "SFTPA2", 
            "CAPN2", 
            "EDN1", 
            "LBH", 
            "MYC", 
            "PIP4K2A", 
            "KLF2", 
            "SH2D1A", 
            "EHBP1L1", 
            "PLBD1", 
            "NME5", 
            "MRPS7", 
            "TSC22D3", 
            "RAMP1", 
            "TEX10", 
            "BAZ1A", 
            "FAM69A", 
            "KCNN4", 
            "KLHL2", 
            "KLK5", 
            "PROM1", 
            "KLK7", 
            "TSPAN8", 
            "SLC2A10", 
            "TUFT1", 
            "SYPL1", 
            "KCTD12", 
            "RFX5", 
            "ACSL5", 
            "SFN", 
            "CXCL9", 
            "GFRA1", 
            "KDELR2", 
            "KDELR3", 
            "TMEM47", 
            "ABCE1", 
            "XPNPEP1", 
            "DDAH2", 
            "MRTO4", 
            "CTPS", 
            "RPL37A", 
            "C16ORF80", 
            "RPL27A", 
            "ATP5L", 
            "IDO1", 
            "NUP85", 
            "SERINC3", 
            "MYLK", 
            "PDGFC", 
            "DNM1", 
            "TRIB2", 
            "CLTB", 
            "LAMB1", 
            "LTBP3", 
            "CSDA", 
            "ARL4C", 
            "EXOSC4", 
            "PLXNB2", 
            "PTN", 
            "THBS4", 
            "A2M", 
            "NID2", 
            "FAM129A", 
            "CDC42BPA", 
            "PIK3R1", 
            "ZNF277", 
            "RRBP1", 
            "GCA", 
            "TTC3", 
            "CDC25B", 
            "CDC25A", 
            "GTF2IRD1", 
            "ZCCHC24", 
            "MLLT11", 
            "IGFBP3", 
            "SHB", 
            "PRKCA", 
            "IGFBP5", 
            "RHOC", 
            "ITPR3", 
            "RHOA", 
            "CAPG", 
            "POLR2I", 
            "GALNT1", 
            "EIF4B", 
            "C10ORF10", 
            "OLFML2A", 
            "HOPX", 
            "DEPTOR", 
            "POSTN", 
            "TNS1", 
            "AZGP1", 
            "SDC1", 
            "G6PD", 
            "SDC4", 
            "TUBB", 
            "CALML5", 
            "CCNI", 
            "MEF2C", 
            "ITM2A", 
            "MGP", 
            "ELOVL2", 
            "SPOCK1", 
            "WNT5A", 
            "GAS6", 
            "CD74", 
            "EPHX1", 
            "FJX1", 
            "FILIP1L", 
            "NEB", 
            "CYP4B1", 
            "TPM2", 
            "STOM", 
            "FABP4", 
            "MAGT1", 
            "PGAM1", 
            "TXNIP", 
            "UTP11L", 
            "AKR1C1", 
            "AKR1C3", 
            "CYP1B1", 
            "NPM1", 
            "TBC1D5", 
            "UGT2B17", 
            "LINC00341", 
            "PVALB", 
            "PDCD4", 
            "CST1", 
            "REEP5", 
            "TCF21", 
            "FAM127A", 
            "CADM1", 
            "TGFBR3", 
            "TRIL", 
            "CLIC3", 
            "RRS1", 
            "ARL6IP5", 
            "AIM1", 
            "C6ORF62", 
            "FERMT2", 
            "LAMP3", 
            "NDNF", 
            "MNAT1", 
            "ADM", 
            "TMEM5", 
            "E2F2", 
            "HMOX1", 
            "SERPINB2", 
            "ACOX2", 
            "ACOX1", 
            "IRS2", 
            "ID1", 
            "MET", 
            "CTGF", 
            "EMP3", 
            "ODC1", 
            "DUSP2", 
            "ALDOC", 
            "TGFB1", 
            "RPS11", 
            "SVIL", 
            "ARMCX3", 
            "CD58", 
            "PRKCQ", 
            "VCAN", 
            "JUND", 
            "MYH10", 
            "GPR56", 
            "ECE1", 
            "SORBS3", 
            "SORBS2", 
            "EDNRB", 
            "CYBA", 
            "IDH3A", 
            "LOXL1", 
            "KIAA0922", 
            "RAB31", 
            "IFIT3", 
            "TATDN2", 
            "HSPD1", 
            "IFI44", 
            "IFIT1", 
            "ZNF586", 
            "ZMIZ1", 
            "HSD11B1", 
            "RRAGD", 
            "ABCA1", 
            "TFAM", 
            "KCNJ16", 
            "BEX1", 
            "ICT1", 
            "HOOK2", 
            "TMPRSS3", 
            "CYR61", 
            "SRSF7", 
            "PLAU", 
            "ZFP36L1", 
            "SMAD3", 
            "CES2", 
            "CALB1", 
            "TNC", 
            "CYTH1", 
            "HEPH", 
            "CALD1", 
            "PBX1", 
            "DDX21", 
            "COL6A2", 
            "RNF167", 
            "GALNT10", 
            "RPL38", 
            "ACTN4", 
            "VAMP8", 
            "ASAP2", 
            "SLC16A5", 
            "EZR", 
            "FOLR1", 
            "CREB3L2", 
            "NEDD4L", 
            "ADH1B", 
            "MMP9", 
            "MMP7", 
            "MLPH", 
            "PTPRK", 
            "LIMCH1", 
            "PITPNC1", 
            "ARHGEF40"
        ], 
        "pert_id": "BRD-A70155556", 
        "sig_id": "CPC006_HA1E_24H:BRD-A70155556-001-04-4:40", 
        "distil_id": [
            "CPC006_HA1E_24H_X1.A2_B4_DUO52HI53LO:D24", 
            "CPC006_HA1E_24H_X1.A2_F1B3_DUO52HI53LO:D24", 
            "CPC006_HA1E_24H_X1_B3_DUO52HI53LO:D24", 
            "CPC006_HA1E_24H_X2_B3_DUO52HI53LO:D24", 
            "CPC006_HA1E_24H_X3_B3_DUO52HI53LO:D24"
        ], 
        "down_genes": [
            "SFTPD", 
            "HSPA2", 
            "TIMP3", 
            "COL11A1", 
            "KCNE4", 
            "SFTPC", 
            "PPP2R3C", 
            "IFI27", 
            "SUMO2", 
            "SIVA1", 
            "IL6ST", 
            "PKP2", 
            "BDNF", 
            "CXCL13", 
            "MAFF", 
            "IL1RL1", 
            "NXN", 
            "ACTG2", 
            "GADD45B", 
            "PTPLA", 
            "FAM46A", 
            "INHBA", 
            "SFTPA2", 
            "EDN1", 
            "LBH", 
            "MYC", 
            "C12ORF24", 
            "KLHDC10", 
            "KLK10", 
            "IGF1R", 
            "SH2D1A", 
            "PLBD1", 
            "KCTD12", 
            "MRPS7", 
            "RAMP1", 
            "TRIM22", 
            "SLC25A4", 
            "BAZ1A", 
            "FLRT2", 
            "CYP4B1", 
            "IFRD2", 
            "KLK7", 
            "CXCL10", 
            "TSPAN8", 
            "SERPINB2", 
            "TUFT1", 
            "NME5", 
            "SNRPD3", 
            "CCND1", 
            "RFX5", 
            "MYLK", 
            "ACSL5", 
            "CXCL9", 
            "HEPH", 
            "PRSS23", 
            "TMEM47", 
            "ABCE1", 
            "IL7R", 
            "MRTO4", 
            "CTPS", 
            "GSPT2", 
            "C16ORF80", 
            "ATP5L", 
            "ITGA4", 
            "NUP85", 
            "ITGA6", 
            "MX1", 
            "CLTB", 
            "CYR61", 
            "EDNRB", 
            "CSDA", 
            "IFIT3", 
            "SERPINE1", 
            "IFIT1", 
            "RSAD2", 
            "ICT1", 
            "SRSF7", 
            "HSPH1", 
            "LIMCH1", 
            "MEIS2", 
            "THBS1", 
            "TFRC", 
            "ISG15", 
            "CDC42BPA", 
            "CDC25A", 
            "B4GALT6", 
            "GCA", 
            "PDLIM5", 
            "TMPRSS3", 
            "TUBB6", 
            "GBP1", 
            "TMEM97", 
            "IGFBP3", 
            "HERC5", 
            "HERC6", 
            "ZNF589", 
            "SIK1", 
            "POLR2I", 
            "GALNT1", 
            "GALNT3", 
            "CR2", 
            "ABCG2", 
            "NAA15", 
            "GAS6", 
            "HAT1", 
            "HMOX1", 
            "C12ORF5", 
            "ITM2A", 
            "RBM25", 
            "TOX3", 
            "EIF4A3", 
            "SSB", 
            "EFNB2", 
            "RASIP1", 
            "FJX1", 
            "FILIP1L", 
            "RCAN1", 
            "ZNF586", 
            "TEX10", 
            "FRY", 
            "TBX2", 
            "STOM", 
            "FST", 
            "PGAM1", 
            "NEDD9", 
            "JMJD6", 
            "STAT1", 
            "PELI2", 
            "NPM1", 
            "TPM2", 
            "UTP11L", 
            "IFI44L", 
            "UGT2B17", 
            "TFPI", 
            "PVALB", 
            "CST1", 
            "TCF21", 
            "DUSP2", 
            "TGFBR3", 
            "C10ORF10", 
            "NDN", 
            "RRS1", 
            "MCAM", 
            "CELF2", 
            "FERMT2", 
            "SMTN", 
            "LAMP3", 
            "NDNF", 
            "RARRES2", 
            "MNAT1", 
            "ADM", 
            "TMEM5", 
            "ACOX1", 
            "EMX2", 
            "IRS2", 
            "CTGF", 
            "HSPE1", 
            "OXTR", 
            "MME", 
            "CADM1", 
            "ZEB1", 
            "CDH11", 
            "TOX", 
            "IDO1", 
            "HMGB3", 
            "NOP16", 
            "D4S234E", 
            "MYH10", 
            "MAP2K3", 
            "MOSPD1", 
            "ERG", 
            "LEPREL1", 
            "PTGDS", 
            "NIP7", 
            "MAP9", 
            "ODC1", 
            "MID1", 
            "IDH3A", 
            "TXN", 
            "KIAA0922", 
            "CHORDC1", 
            "VPS28", 
            "TM4SF1", 
            "ALDH1A1", 
            "HSPD1", 
            "GAL", 
            "ATP5G1", 
            "HSD11B1", 
            "RRAGD", 
            "TFAM", 
            "CDC42EP3", 
            "NOLC1", 
            "MMP9", 
            "KLF10", 
            "CALB1", 
            "PRKCQ", 
            "DUSP14", 
            "ALDOC", 
            "CALD1", 
            "DDX21", 
            "IFI44", 
            "TBL1X", 
            "E2F2", 
            "DDX24", 
            "SLC16A5", 
            "CYB5A", 
            "DKK1", 
            "NEDD4L", 
            "ASRGL1", 
            "FAR2", 
            "CRIM1", 
            "FOLR1", 
            "ATF3", 
            "KLK5"
        ], 
        "pert_desc": "NP-001236"
    }
  • Query the L1000 signatures using up/down gene sets

    Method
    POST
    URL
    /L1000FWD/sig_search
    Returns
    ID of the result
    Parameters
    up_genes Array An array of strings of gene symbols
    down_genes Array An array of strings of gene symbols
    Example code
    import json, requests
    from pprint import pprint
    
    L1000FWD_URL = 'https://maayanlab.cloud/L1000FWD/'
    
    up_genes = ['KIAA0907','KDM5A','CDC25A','EGR1','GADD45B','RELB','TERF2IP','SMNDC1','TICAM1','NFKB2','RGS2','NCOA3','ICAM1','TEX10','CNOT4','ARID4B','CLPX','CHIC2','CXCL2','FBXO11','MTF2','CDK2','DNTTIP2','GADD45A','GOLT1B','POLR2K','NFKBIE','GABPB1','ECD','PHKG2','RAD9A','NET1','KIAA0753','EZH2','NRAS','ATP6V0B','CDK7','CCNH','SENP6','TIPARP','FOS','ARPP19','TFAP2A','KDM5B','NPC1','TP53BP2','NUSAP1']
    down_genes = ['SCCPDH','KIF20A','FZD7','USP22','PIP4K2B','CRYZ','GNB5','EIF4EBP1','PHGDH','RRAGA','SLC25A46','RPA1','HADH','DAG1','RPIA','P4HA2','MACF1','TMEM97','MPZL1','PSMG1','PLK1','SLC37A4','GLRX','CBR3','PRSS23','NUDCD3','CDC20','KIAA0528','NIPSNAP1','TRAM2','STUB1','DERA','MTHFD2','BLVRA','IARS2','LIPA','PGM1','CNDP2','BNIP3','CTSL1','CDC25B','HSPA8','EPRS','PAX8','SACM1L','HOXA5','TLE1','PYGL','TUBB6','LOXL1']
    payload = {
    	'up_genes': up_genes,
    	'down_genes': down_genes
    }
    
    response = requests.post(L1000FWD_URL + 'sig_search', json=payload)
    if response.status_code == 200:
    	pprint(response.json())
    	json.dump(response.json(), open('api3_result.json', 'wb'), indent=4)
    library(httr)
    library(jsonlite)
    
    L1000FWD_URL <- 'https://maayanlab.cloud/L1000FWD/'
    
    up_genes <- c('KIAA0907','KDM5A','CDC25A','EGR1','GADD45B','RELB','TERF2IP','SMNDC1','TICAM1','NFKB2','RGS2','NCOA3','ICAM1','TEX10','CNOT4','ARID4B','CLPX','CHIC2','CXCL2','FBXO11','MTF2','CDK2','DNTTIP2','GADD45A','GOLT1B','POLR2K','NFKBIE','GABPB1','ECD','PHKG2','RAD9A','NET1','KIAA0753','EZH2','NRAS','ATP6V0B','CDK7','CCNH','SENP6','TIPARP','FOS','ARPP19','TFAP2A','KDM5B','NPC1','TP53BP2','NUSAP1')
    down_genes <- c('SCCPDH','KIF20A','FZD7','USP22','PIP4K2B','CRYZ','GNB5','EIF4EBP1','PHGDH','RRAGA','SLC25A46','RPA1','HADH','DAG1','RPIA','P4HA2','MACF1','TMEM97','MPZL1','PSMG1','PLK1','SLC37A4','GLRX','CBR3','PRSS23','NUDCD3','CDC20','KIAA0528','NIPSNAP1','TRAM2','STUB1','DERA','MTHFD2','BLVRA','IARS2','LIPA','PGM1','CNDP2','BNIP3','CTSL1','CDC25B','HSPA8','EPRS','PAX8','SACM1L','HOXA5','TLE1','PYGL','TUBB6','LOXL1')
    payload <- list(
    	up_genes = up_genes,
    	down_genes = down_genes
    	)
    response <- POST(paste0(L1000FWD_URL, 'sig_search'), body=payload, encode='json')
    if (response$status_code == 200){
    	response <- fromJSON(httr::content(response, 'text'))
    	print(response)
    }
    Example result
    {
        "result_id": "5a01f822a5d0d538b1b7cb48"
    }
  • Retrieve the top 50 results

    Method
    GET
    URL
    /L1000FWD/result/topn/<string:result_id>
    Returns
    JSON object
    Example code
    import json, requests
    from pprint import pprint
    
    L1000FWD_URL = 'https://maayanlab.cloud/L1000FWD/'
    
    result_id = '5a01f822a5d0d538b1b7cb48'
    response = requests.get(L1000FWD_URL + 'result/topn/' + result_id)
    if response.status_code == 200:
    	pprint(response.json())
    	json.dump(response.json(), open('api4_result.json', 'wb'), indent=4)
    library(httr)
    library(jsonlite)
    
    L1000FWD_URL <- 'https://maayanlab.cloud/L1000FWD/'
    
    result_id <- '5a01f822a5d0d538b1b7cb48'
    response <- GET(paste0(L1000FWD_URL, 'result/topn/', result_id))
    if (response$status_code == 200){
    	response <- fromJSON(httr::content(response, 'text'))
    	print(response)
    }
    Example result
    {
        "similar": [
            {
                "scores": 0.5876, 
                "sig_id": "CPC003_HA1E_24H:BRD-K63606607-001-01-8:10"
            }, 
            {
                "scores": 0.5258, 
                "sig_id": "CPC003_HA1E_24H:BRD-K35708212-331-03-1:10"
            }, 
            {
                "scores": 0.4948, 
                "sig_id": "CPC004_HA1E_24H:BRD-A34806832-001-02-7:10"
            }, 
            {
                "scores": 0.4845, 
                "sig_id": "CPC004_HA1E_24H:BRD-A68930007-001-03-1:10"
            }, 
            {
                "scores": 0.4742, 
                "sig_id": "CPC004_HA1E_24H:BRD-A94756469-001-03-9:10"
            }, 
            {
                "scores": 0.4742, 
                "sig_id": "CPC004_HA1E_24H:BRD-A93236127-001-03-7:10"
            }, 
            {
                "scores": 0.4433, 
                "sig_id": "CPC001_HA1E_24H:BRD-K23478508-001-03-7:10"
            }, 
            {
                "scores": 0.4124, 
                "sig_id": "CPC002_HA1E_24H:BRD-A71459254-001-02-8:10"
            }, 
            {
                "scores": 0.4021, 
                "sig_id": "CPC005_HA1E_24H:BRD-K18518344-001-03-5:10"
            }, 
            {
                "scores": 0.3918, 
                "sig_id": "CPC001_HA1E_24H:BRD-A89434049-001-02-1:10"
            }, 
            {
                "scores": 0.3093, 
                "sig_id": "CPC004_HCC515_24H:BRD-A93236127-001-03-7:10"
            }, 
            {
                "scores": 0.3093, 
                "sig_id": "CPC017_MCF7_24H:BRD-A80502530-001-01-2:10"
            }, 
            {
                "scores": 0.299, 
                "sig_id": "CPC005_HA1E_24H:BRD-A45333398-001-01-7:10"
            }, 
            {
                "scores": 0.299, 
                "sig_id": "CPC004_HA1E_6H:BRD-A68930007-001-03-1:10"
            }, 
            {
                "scores": 0.299, 
                "sig_id": "CPC017_MCF7_24H:BRD-A94756469-001-03-9:10"
            }, 
            {
                "scores": 0.299, 
                "sig_id": "HOG003_A549_24H:BRD-K01976263-003-04-5:10"
            }, 
            {
                "scores": 0.2887, 
                "sig_id": "CPC017_MCF7_24H:BRD-A93236127-001-03-7:10"
            }, 
            {
                "scores": 0.2887, 
                "sig_id": "CPC001_HCC515_24H:BRD-A89434049-001-02-1:10"
            }, 
            {
                "scores": 0.2887, 
                "sig_id": "CPC001_HCC515_24H:BRD-K84595254-001-03-0:10"
            }, 
            {
                "scores": 0.2887, 
                "sig_id": "CPC017_A549_24H:BRD-A80502530-001-01-2:10"
            }, 
            {
                "scores": 0.2784, 
                "sig_id": "CPC002_HCC515_24H:BRD-K80348542-001-01-4:10"
            }, 
            {
                "scores": 0.2784, 
                "sig_id": "CPC004_HA1E_6H:BRD-A46747628-001-01-9:10"
            }, 
            {
                "scores": 0.2784, 
                "sig_id": "HOG003_A549_24H:BRD-K06792661-001-01-9:10"
            }, 
            {
                "scores": 0.2784, 
                "sig_id": "CPC001_PC3_24H:BRD-K84595254-001-03-0:10"
            }, 
            {
                "scores": 0.2784, 
                "sig_id": "CPC002_HA1E_24H:BRD-K91370081-001-10-3:10"
            }, 
            {
                "scores": 0.2784, 
                "sig_id": "CPC003_HA1E_6H:BRD-K63606607-001-01-8:10"
            }, 
            {
                "scores": 0.268, 
                "sig_id": "CPC001_PC3_24H:BRD-K23478508-001-03-7:10"
            }, 
            {
                "scores": 0.268, 
                "sig_id": "HOG002_A549_24H:BRD-K76674262-001-02-5:3.33"
            }, 
            {
                "scores": 0.268, 
                "sig_id": "CPC001_HA1E_24H:BRD-K84595254-001-03-0:10"
            }, 
            {
                "scores": 0.268, 
                "sig_id": "CPC016_A549_24H:BRD-K91370081-001-10-3:10"
            }, 
            {
                "scores": 0.268, 
                "sig_id": "CPC017_MCF7_24H:BRD-K23478508-001-03-7:10"
            }, 
            {
                "scores": 0.268, 
                "sig_id": "CPC016_A549_24H:BRD-K80348542-001-01-4:10"
            }, 
            {
                "scores": 0.2577, 
                "sig_id": "CPC014_ASC_24H:BRD-A26002865-001-01-5:10"
            }, 
            {
                "scores": 0.2577, 
                "sig_id": "CPC016_A549_6H:BRD-K80348542-001-01-4:10"
            }, 
            {
                "scores": 0.2577, 
                "sig_id": "CPC004_PC3_24H:BRD-A46747628-001-01-9:10"
            }, 
            {
                "scores": 0.2577, 
                "sig_id": "CPC004_HA1E_6H:BRD-A93236127-001-03-7:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC002_HCC515_24H:BRD-K91370081-001-10-3:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC002_PC3_24H:BRD-K91370081-001-10-3:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC001_HA1E_6H:BRD-A89434049-001-02-1:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC006_NCIH2073_6H:BRD-K06792661-001-01-9:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC017_A549_6H:BRD-A62184259-001-02-8:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC002_PC3_24H:BRD-K80348542-001-01-4:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC017_A549_24H:BRD-K23478508-001-03-7:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC004_HCC515_24H:BRD-A25687296-300-03-5:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC014_A549_24H:BRD-U08759356-000-01-6:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC003_HCC515_24H:BRD-K63606607-001-01-8:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC006_HCC515_24H:BRD-K15108141-001-01-7:0.08"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC017_ASC_24H:BRD-A93236127-001-03-7:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC017_A549_24H:BRD-A93236127-001-03-7:10"
            }, 
            {
                "scores": 0.2474, 
                "sig_id": "CPC015_A549_24H:BRD-A68930007-001-03-1:10"
            }
        ], 
        "opposite": [
            {
                "scores": -0.1546, 
                "sig_id": "CPC003_HCC515_6H:BRD-A73909368-001-01-5:10"
            }, 
            {
                "scores": -0.1546, 
                "sig_id": "CPC004_HCC515_6H:BRD-K43389675-001-01-3:10"
            }, 
            {
                "scores": -0.1443, 
                "sig_id": "NMH002_NPC_6H:BRD-K81473043-001-07-0:10"
            }, 
            {
                "scores": -0.1443, 
                "sig_id": "CPC011_A549_6H:BRD-K69650333-003-11-6:10"
            }, 
            {
                "scores": -0.1443, 
                "sig_id": "CPC018_A375_6H:BRD-K31843556-001-01-7:10"
            }, 
            {
                "scores": -0.1443, 
                "sig_id": "CPC004_HCC515_6H:BRD-A52530684-001-01-1:10"
            }, 
            {
                "scores": -0.1443, 
                "sig_id": "CPC006_MCF7_24H:BRD-K52075040-001-03-0:44.4"
            }, 
            {
                "scores": -0.134, 
                "sig_id": "CPC011_MCF7_6H:BRD-K39484304-001-08-2:10"
            }, 
            {
                "scores": -0.134, 
                "sig_id": "CPC009_MCF7_6H:BRD-A68009927-001-02-3:10"
            }, 
            {
                "scores": -0.1237, 
                "sig_id": "CPC008_MCF7_6H:BRD-K01896723-001-01-9:10"
            }, 
            {
                "scores": -0.1237, 
                "sig_id": "CPC014_HCC515_6H:BRD-M16762496-001-01-9:10"
            }, 
            {
                "scores": -0.1237, 
                "sig_id": "CPC004_HCC515_6H:BRD-K04548931-003-05-8:10"
            }, 
            {
                "scores": -0.1237, 
                "sig_id": "CPC003_HCC515_6H:BRD-A68009927-003-02-9:10"
            }, 
            {
                "scores": -0.1237, 
                "sig_id": "CPC003_VCAP_24H:BRD-K61401890-001-04-6:10"
            }, 
            {
                "scores": -0.1134, 
                "sig_id": "CPC010_HCC515_6H:BRD-K85853281-001-03-9:10"
            }, 
            {
                "scores": -0.1134, 
                "sig_id": "LJP001_BT20_6H:BRD-K79090631-001-18-1:2"
            }, 
            {
                "scores": -0.1134, 
                "sig_id": "CPC006_HA1E_6H:BRD-K05653692-003-04-7:64"
            }, 
            {
                "scores": -0.1134, 
                "sig_id": "CPC009_MCF7_6H:BRD-K79222491-001-01-5:10"
            }, 
            {
                "scores": -0.1134, 
                "sig_id": "HOG003_A549_6H:BRD-A71390734-001-01-7:1.11"
            }, 
            {
                "scores": -0.1134, 
                "sig_id": "CPC019_VCAP_24H:BRD-K83816656-001-01-9:10"
            }, 
            {
                "scores": -0.1134, 
                "sig_id": "CPC006_HCC515_24H:BRD-K10882151-001-06-8:40"
            }, 
            {
                "scores": -0.1134, 
                "sig_id": "CPC006_A375_24H:BRD-A62809825-001-01-7:10"
            }, 
            {
                "scores": -0.1134, 
                "sig_id": "CPC011_PC3_6H:BRD-K04548931-003-11-6:10"
            }, 
            {
                "scores": -0.1134, 
                "sig_id": "CPC006_A549_6H:BRD-K49371609-310-01-1:0.09"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC003_HA1E_6H:BRD-A68009927-003-02-9:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "LJP002_SKBR3_6H:BRD-K43389698-001-03-2:0.4"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC006_MCF7_24H:BRD-K56411643-001-02-6:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC013_VCAP_24H:BRD-K76236182-001-01-2:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC014_HCC515_6H:BRD-K83794624-001-01-7:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC010_HT29_6H:BRD-K85853281-001-03-9:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC006_A549_6H:BRD-K20285085-001-01-4:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "LJP001_BT20_6H:BRD-K79090631-001-18-1:0.4"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC013_MCF7_24H:BRD-K93578426-001-01-2:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC008_HCC515_6H:BRD-K92158425-001-01-5:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC017_NPC_24H:BRD-K30189597-001-01-7:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "LJP001_BT20_6H:BRD-K92571446-001-01-4:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "LJP001_MCF10A_6H:BRD-K87909389-001-04-6:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC005_HCC515_6H:BRD-A76941896-003-02-0:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC006_HT29_24H:BRD-K08316444-001-04-3:0.63"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC014_MCF7_6H:BRD-A11702965-001-01-6:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC009_HCC515_6H:BRD-K79222491-001-01-5:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC004_HCC515_6H:BRD-K06543683-066-01-3:10"
            }, 
            {
                "scores": -0.1031, 
                "sig_id": "CPC006_HCC515_24H:BRD-K85606544-001-01-8:10"
            }, 
            {
                "scores": -0.0928, 
                "sig_id": "CPC013_MCF7_6H:BRD-K11795542-001-01-0:10"
            }, 
            {
                "scores": -0.0928, 
                "sig_id": "CPC014_PC3_24H:BRD-K13514097-001-01-2:10"
            }, 
            {
                "scores": -0.0928, 
                "sig_id": "CPC008_PC3_6H:BRD-K10846167-001-01-6:10"
            }, 
            {
                "scores": -0.0928, 
                "sig_id": "CPC012_MCF7_6H:BRD-A59985574-003-01-9:10"
            }, 
            {
                "scores": -0.0928, 
                "sig_id": "CPC007_HA1E_6H:BRD-K61248029-001-05-2:10"
            }, 
            {
                "scores": -0.0928, 
                "sig_id": "CPC018_HT29_6H:BRD-K62810658-001-08-0:10"
            }, 
            {
                "scores": -0.0928, 
                "sig_id": "CPC008_VCAP_6H:BRD-K99530743-001-01-3:10"
            }
        ]
    }