Description Usage Arguments Value DETAILS See Also Examples
Extract distances to the upstream or downstream neighbors
1 | getDistSide(GNN, glist, Side = c("Upstream", "Downstream"))
|
GNN |
A |
glist |
A character vector of gene IDs (must match GNN$GeneName) |
Side |
One of 'Upstream' or 'Downstream' |
A tibble with the following columns:
GeneName. ID of the focus gene.
Neighbor. ID of the gene neighbor
Orientation. Orientation of the neighbor (same or opposite strand).
Side. Upstream or Downstream.
Distance in bp
Note that the function removes overlapping upstream/downstream genes but not adjacent genes (for which distance = 0).
getGeneNeighborhood
dist2Neighbors
1 2 3 4 5 6 7 8 9 | ## Obtain gene neighborhood information:
GeneNeighbors <- getGeneNeighborhood(Genegr)
## Get a (random) set of (10) genes:
set.seed(123)
randGenes <- sample(names(Genegr), 10)
## Extract distances to the upstream neighbors for this set:
getDistSide(GeneNeighbors, randGenes, "Upstream")
## And for the downstream genes:
getDistSide(GeneNeighbors, randGenes, "Downstream")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.