getHPI {HPiP} | R Documentation

## Generating Host-Pathogen Protein-Protein Interaction (HP-PPI) Descriptors

### Description

This function calculates Host-Pathogen Protein-Protein Interaction (HP-PPI) descriptors via two approaches

- `combine` - combine the two descriptor matrix, result has `(p1 + p2)` columns

- `kron.prod` - if A has m x n matrix and B is q x p matrix, then the Kronecker product is the code(pm × qn) block matrix

### Usage

    getHPI(pathogenData, hostData, type = c("combine", "kron.prod"))

### Arguments

`pathogenData` | The pathogen descriptor matrix.
`hostData` | The host descriptor matrix.
`type` | The interaction type, one or two of `"combine"` and `"kron.prod"`.

### Details

getHPI

### Value

A matrix containing the Host-Pathogen Protein-Protein Interaction (HP-PPI) descriptors.

### Author(s)

Matineh Rahmatbakhsh matinerb.94@gmail.com

### Examples

    x <- matrix(c(1, 2, 3, 1), nrow = 2, ncol = 2, byrow = TRUE)
    y <- matrix(c(0, 3, 2, 1), nrow = 2, ncol = 2, byrow = TRUE)
    getHPI(x, y, "combine")
    getHPI(x, y, "kron.prod")

[Package HPiP version 1.0.0 Index]