modify_nodes modifies nodes of features of interest by assigning user specified colors to these nodes and "grey" to the others and removing labels from all nodes but those of interest. The idea and logic of this came from the change_STRING_colors.py from STRING website.

modify_nodes(xml, colors_vec)

Arguments

xml

A xml_document as defined in xml2.

colors_vec

A named character vector of colors for feature of interest.

Examples

feature_of_int <- c("VSTM2L","TBC1D2","LENG9","TMEM27","TSPAN1", "TNNC1","MGAM","TRIM22","KLK11","TYROBP") colors_vec <- rep("rgb(101,226,11)", length(feature_of_int)) names(colors_vec) <- feature_of_int