1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| f_cpdb_select_pathway <- function(lc_res, grep_i_p_list=NULL){ if(is.null(grep_i_p_list)){ grep_i_p_list = list( chemokines = "^CXCCCLCCRCX3XCLXCR", th1 = "IL2IL12IL18IL27IFNGIL10TNF$TNF LTALTBSTAT1CCR5CXCR3IL12RB1IFNGR1TBX21STAT4", th2 = "IL4IL5IL25IL10IL13AREGSTAT6GATA3IL4R", th17 = "IL21IL22IL24IL26IL17AIL17AIL17FIL17RAIL10RORCRORASTAT3CCR4CCR6IL23RATGFB", treg = "IL35IL10FOXP3IL2RATGFB", costimulatory = "CD86CD80CD48LILRB2LILRB4TNFCD2ICAMSLAMLT[AB]NECTIN2CD40CD70CD27CD28CD58TSLPPVRCD44CD55CD[1-9]", coinhibitory = "SIRPCD47ICOSTIGITCTLA4PDCD1CD274LAG3HAVCRVSIR", niche = "CSF" ) } lc_res$grep_i_p_list = list() for(name in names(grep_i_p_list)){ lc_res$grep_i_p_list[[name]] = unique(grep(grep_i_p_list[[name]], lc_res$s_m_p$interacting_pair,value = T)) } lc_res }
|