Description Usage Arguments Details Value References Examples
View source: R/selectProtein.R
select a protein and all the peptide that it maps to or a peptide and all the
proteins that it maps to, to display. This function expect the output of
generateBipartiteGraph
and displayComponent
to be its input.
1 | selectProtein(graphToSearchIn, vertexIdentifier)
|
graphToSearchIn |
is the component that the user has chosen to displayed
in |
vertexIdentifier |
is an identifier for the vertex in the graph, so what this refers to here would be either a protein accession or peptide sequence |
Using igraph function, It first finds the vertex object that identifier refers to, then find the neighbors of that vertex, and finally induce a sub-graph that include them. When this subgraph is plotted, if the vertexIdentifier is a protein accession, the gene ontology IDs will be display at the top of the plot, if it is involve in disease then it will be displayed at the bottom. (if it is not, then nothing would be displayed). Also to display all the neighbour of a protein/peptide is to plot what peptide/protein can be mapped to the vertex in question from vertexIdentifier
The sub-graph that include a vertex and all its neighbors, the list of gene ontology IDs, and a list of involved diseases (if there is one)
Csardi G, Nepusz T (2006). The igraph software package for complex network research. InterJournal, Complex Systems, 1695. https://igraph.org.
1 2 3 4 5 6 | wholeGraph <- generateBipartiteGraph(allEdges)
oneComponent <- displayComponent(wholeGraph, 1)
selectProtein(oneComponent, "P02769")
selectProtein(wholeGraph, "P02769")
selectProtein(oneComponent, "DDSPDLPK")
selectProtein(wholeGraph, "DDSPDLPK")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.