mutated.neighbours: Get vertex neighbours.

Description Usage Arguments Value Examples

Description

Get all properties of neighbour vertices in a mutation network of specific vertices.

Usage

1
mutated.neighbours(.G, .V, .order = 1)

Arguments

.G

Mutation network.

.V

Indices of vertices for which return neighbours.

.order

Neighbours of which order return.

Value

List of length .V with data frames with vertex properties. First row in each data frame is the vertex for which neighbours was returned.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
data(twb)
twb.shared <- shared.repertoire(twb)
G <- mutation.network(twb.shared)
head(mutated.neighbours(G, 1)[[1]])
#           label             vseg repind prob people npeople
# 1 CASSDRDTGELFF          TRBV6-4      1   -1   1111       4
# 2 CASSDSDTGELFF          TRBV6-4     69   -1   1100       2
# 3 CASSYRDTGELFF TRBV6-3, TRBV6-2    315   -1   1001       2
# 4 CASKDRDTGELFF TRBV6-3, TRBV6-2   2584   -1   0100       1
# 5 CASSDGDTGELFF          TRBV6-4   5653   -1   0010       1
# 6 CASSDRETGELFF          TRBV6-4   5950   -1   0100       1

## End(Not run)

tcR documentation built on May 2, 2019, 2:07 a.m.