This function uses biomaRt and AnnotationDbi to add gene annotations as node attributes in a network from stringgaussnet package.
Can be Ensembl IDs or HGNC symbols. Ensembl IDs are recommended.
A mart dataset object
Firstly, this function adds cellular localizations of gene products. A prioritization is performed to rank gene products localizations from nuclear, the most relevant, and then extracellular, plasma membrane and cytoplasm. Secondly, those annotations are added from biomaRt: chromosome name, band, strand, start and end positions, and gene descriptions.
A matrix of node attributes with annotations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.