Description Usage Arguments Details Value Author(s) Examples
Generating Interaction Descriptors
1 2 3 4 5 6 7 8 9 10 11 | getCPI(drugmat, protmat, type = c("combine", "tensorprod"))
getPPI(protmat1, protmat2, type = c("combine", "tensorprod", "entrywise"))
getDDI(DNAmat1, DNAmat2, type = c("combine", "tensorprod", "entrywise"))
getDPI(DNAmat, protmat, type = c("combine", "tensorprod"))
getCCI(drugmat1, drugmat2, type = c("combine", "tensorprod", "entrywise"))
getCDI(drugmat, DNAmat, type = c("combine", "tensorprod"))
|
drugmat |
The compound descriptor matrix. |
protmat |
The protein descriptor matrix. |
type |
The interaction type, one or more of
|
protmat1 |
The first protein descriptor matrix,
must have the same ncol with |
protmat2 |
The second protein descriptor matrix,
must have the same ncol with |
DNAmat1 |
The first DNA descriptor matrix,
must have the same ncol with |
DNAmat2 |
The second DNA descriptor matrix,
must have the same ncol with |
DNAmat |
The DNA descriptor matrix. |
drugmat1 |
The first compound descriptor matrix,
must have the same ncol with |
drugmat2 |
The second compound descriptor matrix,
must have the same ncol with |
This function calculates the interaction descriptors by three types of interaction:
combine
- combine the two descriptor matrix,
result has (p1 + p2)
columns
tensorprod
- calculate column-by-column
(pseudo)-tensor product type interactions, result has
(p1 * p2)
columns
entrywise
- calculate entrywise product and
entrywise sum of the two matrices, then combine them,
result has (p + p)
columns
A matrix containing the interaction descriptors
Min-feng Zhu <wind2zhu@163.com>, Nan Xiao <http://r2s.name>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | x = matrix(1:10, ncol = 2)
y = matrix(1:15, ncol = 3)
# getCPI
getCPI(x, y, 'combine')
# getCDI
getCDI(x, y, 'tensorprod')
# getDPI
getDPI(x, y, type = c('combine', 'tensorprod'))
getDPI(x, y, type = c('tensorprod', 'combine'))
x = matrix(1:10, ncol = 2)
y = matrix(5:14, ncol = 2)
# getPPI
getPPI(x, y, type = 'combine')
getPPI(x, y, type = 'tensorprod')
# getDDI
getDDI(x, y, type = 'entrywise')
getDDI(x, y, type = c('combine', 'tensorprod'))
# getCCI
getCCI(x, y, type = c('combine', 'entrywise'))
getCCI(x, y, type = c('entrywise', 'tensorprod'))
getCCI(x, y, type = c('combine', 'entrywise', 'tensorprod'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.