我认为运行时没有任何错误
g <- igraph::graph.edgelist(as.matrix(unique(d.int[, c(1, 3)])), directed = FALSE)
plot(g)
数据
> dput(d.int)
structure(list(a.gn = c("KLRD1", "KLRD1", "KLRD1", "ITGA4", "ITGA4",
"ITGA4", "ITGA4", "TYROBP", "TYROBP", "ITGAL", "ITGAL", "CD300LB",
"B2M", "B2M", "B2M", "B2M", "B2M", "B2M", "B2M", "B2M", "B2M",
"B2M", "B2M", "B2M", "B2M", "B2M", "B2M", "B2M", "B2M", "B2M",
"B2M", "B2M", "B2M", "B2M", "COL1A1", "CD19", "CD19", "CD19",
"CD19", "ICAM2", "ICAM2", "ICAM3", "ICAM3", "CD3D", "CD3D", "CD3D",
"CD3D", "CD3D", "CD3D", "CD3D", "CD3D", "HLA-G", "HLA-G", "HLA-G",
"CD3G", "CD3G", "CD3G", "CD3G", "CD3G", "CD3G", "CD3G", "CD3G",
"CDH1", "CDH1", "HLA-A", "HLA-A", "HLA-A", "HLA-A", "CD200",
"ICAM1", "ICAM1", "KLRC1", "ITGB1", "CD96", "KLRK1", "KLRK1",
"KLRK1", "KLRK1", "KLRK1", "KLRK1", "CD1D", "CD1D", "ICAM4",
"ICAM4", "HLA-C", "HLA-C", "HLA-C", "HLA-C", "HLA-C", "HLA-C",
"HLA-B", "HLA-B", "HLA-B", "HLA-B", "HLA-B", "CLEC2D", "C3",
"C3", "C3", "CD226", "CD81", "ICAM5", "ICAM5", "HLA-F", "HLA-F",
"HLA-F", "CD99", "HLA-E", "HLA-E", "HLA-E", "HLA-E", "HLA-E",
"HLA-E", "HLA-E", "HLA-E", "TREM1", "CD8A", "CD8A", "CD8A", "CD8A",
"CD8A", "CD8A", "FCGR1A", "TYROBP", "VCAM1", "ITGB7", "ITGB1",
"ITGB2", "TYROBP", "TYROBP", "CD8A", "CD3D", "KIR3DL1", "LILRB2",
"CD3G", "HLA-G", "HLA-F", "LILRB1", "HLA-C", "LILRA4", "HLA-A",
"KIR3DL2", "KLRC1", "HLA-B", "KIR2DL3", "HLA-E", "CD1D", "KLRD1",
"KIR2DL1", "COL1A2", "CD81", "IFITM1", "ITGAL", "ITGB2", "ITGB2",
"ITGAL", "CD8A", "HLA-A", "CD3G", "HLA-G", "HLA-B", "HLA-F",
"HLA-C", "HLA-E", "LILRB2", "LILRA4", "LILRB1", "HLA-A", "HLA-B",
"FCGR1A", "HLA-G", "HLA-F", "HLA-C", "HLA-E", "CD8A", "KLRG1",
"ITGB7", "LILRB1", "LILRA4", "KIR3DL2", "LILRB2", "CD200R1",
"ITGAL", "ITGB2", "KLRD1", "VCAM1", "PVR", "TYROBP", "RAET1E",
"MICB", "MICA", "CD3G", "CD3D", "ITGB2", "ITGAL", "LILRB2", "KIR2DL1",
"LILRA4", "TYROBP", "LILRB1", "KIR2DL3", "LILRA4", "KIR3DL1",
"LILRB2", "LILRB1", "TYROBP", "KLRB1", "IFITM1", "CD19", "CD81",
"PVR", "IFITM1", "ITGAL", "ITGB2", "LILRB2", "LILRA4", "LILRB1",
"PILRA", "KLRD1", "KLRC1", "LILRB2", "TYROBP", "LILRA4", "LILRB1",
"TYROBP", "HLA-B", "HLA-A", "HLA-C", "HLA-F", "HLA-G", "HLA-E",
"NCR3"), b.gn = c("CD3G", "FCGR1A", "TYROBP", "VCAM1", "ITGB7",
"ITGAL", "ITGB1", "CD3G", "FCGR1A", "ITGB2", "ITGA4", "TYROBP",
"TYROBP", "CD8A", "CD3D", "FCGR1A", "KIR3DL1", "LILRB2", "CD3G",
"CD3G", "HLA-G", "HLA-F", "LILRB1", "HLA-C", "LILRA4", "HLA-A",
"KIR3DL2", "KLRC1", "HLA-B", "KIR2DL3", "HLA-E", "CD1D", "KLRD1",
"KIR2DL1", "COL1A2", "CD81", "IFITM1", "CD3G", "FCGR1A", "ITGAL",
"ITGB2", "ITGB2", "ITGAL", "CD8A", "HLA-A", "CD3G", "HLA-G",
"HLA-B", "HLA-F", "HLA-C", "HLA-E", "LILRB2", "LILRA4", "LILRB1",
"HLA-A", "HLA-B", "FCGR1A", "HLA-G", "HLA-F", "HLA-C", "HLA-E",
"CD8A", "KLRG1", "ITGB7", "LILRB1", "LILRA4", "KIR3DL2", "LILRB2",
"CD200R1", "ITGAL", "ITGB2", "KLRD1", "VCAM1", "PVR", "TYROBP",
"RAET1E", "CD3G", "FCGR1A", "MICB", "MICA", "CD3G", "CD3D", "ITGB2",
"ITGAL", "LILRB2", "KIR2DL1", "LILRA4", "TYROBP", "LILRB1", "KIR2DL3",
"LILRA4", "KIR3DL1", "LILRB2", "LILRB1", "TYROBP", "KLRB1", "IFITM1",
"CD19", "CD81", "PVR", "IFITM1", "ITGAL", "ITGB2", "LILRB2",
"LILRA4", "LILRB1", "PILRA", "KLRD1", "KLRC1", "CD3G", "FCGR1A",
"LILRB2", "TYROBP", "LILRA4", "LILRB1", "TYROBP", "HLA-B", "HLA-A",
"HLA-C", "HLA-F", "HLA-G", "HLA-E", "NCR3", "KLRD1", "ITGA4",
"ITGA4", "ITGA4", "ITGAL", "CD300LB", "B2M", "B2M", "B2M", "B2M",
"B2M", "B2M", "B2M", "B2M", "B2M", "B2M", "B2M", "B2M", "B2M",
"B2M", "B2M", "B2M", "B2M", "B2M", "B2M", "B2M", "COL1A1", "CD19",
"CD19", "ICAM2", "ICAM2", "ICAM3", "ICAM3", "CD3D", "CD3D", "CD3D",
"CD3D", "CD3D", "CD3D", "CD3D", "CD3D", "HLA-G", "HLA-G", "HLA-G",
"CD3G", "CD3G", "CD3G", "CD3G", "CD3G", "CD3G", "CD3G", "CD3G",
"CDH1", "CDH1", "HLA-A", "HLA-A", "HLA-A", "HLA-A", "CD200",
"ICAM1", "ICAM1", "KLRC1", "ITGB1", "CD96", "KLRK1", "KLRK1",
"KLRK1", "KLRK1", "CD1D", "CD1D", "ICAM4", "ICAM4", "HLA-C",
"HLA-C", "HLA-C", "HLA-C", "HLA-C", "HLA-C", "HLA-B", "HLA-B",
"HLA-B", "HLA-B", "HLA-B", "CLEC2D", "C3", "C3", "C3", "CD226",
"CD81", "ICAM5", "ICAM5", "HLA-F", "HLA-F", "HLA-F", "CD99",
"HLA-E", "HLA-E", "HLA-E", "HLA-E", "HLA-E", "HLA-E", "TREM1",
"CD8A", "CD8A", "CD8A", "CD8A", "CD8A", "CD8A", "FCGR1A"), type = c("controls-state-change-of",
"controls-state-change-of", "in-complex-with", "in-complex-with",
"in-complex-with", "controls-expression-of", "in-complex-with",
"controls-state-change-of", "controls-state-change-of", "in-complex-with",
"controls-expression-of", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "controls-state-change-of",
"in-complex-with", "in-complex-with", "in-complex-with", "controls-state-change-of",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "controls-state-change-of", "controls-state-change-of",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "controls-state-change-of", "controls-state-change-of",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "controls-state-change-of",
"controls-state-change-of", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with", "in-complex-with",
"in-complex-with", "in-complex-with", "in-complex-with")), class = "data.frame", row.names = c("24115",
"24132", "24150", "28674", "28676", "28677", "28678", "30999",
"31018", "44607", "44608", "69420", "75890", "75905", "75911",
"75915", "75916", "75919", "75941", "75942", "75944", "75952",
"75956", "75970", "76007", "76063", "76067", "76086", "76087",
"76100", "76114", "76128", "76129", "76130", "76616", "78596",
"78620", "78706", "78717", "88285", "88286", "94075", "94076",
"101887", "101895", "101915", "101916", "101919", "101926", "101938",
"101961", "109005", "109024", "109028", "121205", "121225", "121281",
"121297", "121306", "121317", "121419", "121456", "137496", "137498",
"150270", "150280", "150287", "150296", "155691", "156706", "156707",
"157374", "168591", "179866", "179910", "179915", "179921", "179937",
"179980", "180078", "183355", "183360", "201658", "201659", "227035",
"227037", "227039", "227055", "227056", "227064", "230227", "230243",
"230245", "230257", "230258", "235388", "237811", "237814", "237820",
"237945", "257417", "264111", "264112", "285674", "285682", "285695",
"307587", "309539", "309589", "309610", "309628", "309629", "309645",
"309653", "309698", "341342", "342749", "342752", "342755", "342756",
"342760", "342761", "360361", "241501", "286741", "286761", "286781",
"446071", "694201", "758901", "759051", "759111", "759161", "759191",
"759411", "759441", "759521", "759561", "759701", "760071", "760631",
"760671", "760861", "760871", "761001", "761141", "761281", "761291",
"761301", "766161", "785961", "786201", "882851", "882861", "940751",
"940761", "1018871", "1018951", "1019151", "1019161", "1019191",
"1019261", "1019381", "1019611", "1090051", "1090241", "1090281",
"1212051", "1212251", "1212811", "1212971", "1213061", "1213171",
"1214191", "1214561", "1374961", "1374981", "1502701", "1502801",
"1502871", "1502961", "1556911", "1567061", "1567071", "1573741",
"1685911", "1798661", "1799101", "1799151", "1799801", "1800781",
"1833551", "1833601", "2016581", "2016591", "2270351", "2270371",
"2270391", "2270551", "2270561", "2270641", "2302271", "2302431",
"2302451", "2302571", "2302581", "2353881", "2378111", "2378141",
"2378201", "2379451", "2574171", "2641111", "2641121", "2856741",
"2856821", "2856951", "3075871", "3095391", "3095891", "3096291",
"3096451", "3096531", "3096981", "3413421", "3427491", "3427521",
"3427551", "3427561", "3427601", "3427611", "3603611"))