sub_PFP-methods {PFP} | R Documentation

## subset of PFP object

### Description

This function extract the subsets of PFP-class.

### Usage

    sub_PFP(
      object,
      group_name = NULL,
      index = NULL,
      index_type = c("slice", "pathway_id", "pathway_name")
    )

    ## S4 method for signature 'PFP'
    sub_PFP(
      object,
      group_name = NULL,
      index = NULL,
      index_type = c("slice", "pathway_id", "pathway_name")
    )

### Arguments

`object,` | `PFP` class
`group_name,` | the group name in kegg
`index,` | the index of pathway, NULL or a list contains slice/numeric, character, specifying elements to extract. This parameter' length must be the same as `group_name`. Default is NULL, indicating extract all the networks of a group. See details for more information.
`index_type,` | the index type,such as "slice","pathway_id","pathway_name"

### Details

This function help users to extract the specific networks PFPscores for customized analysis, which could be of entire group PFP or some part of a specific group PFP.

Note, the `index` argument is only worked while the group_name argument is consideration, which means group_name is not NULL. And the length must be the same as `group_name`. Default is NULL, indicating extract the entire PFP.

### Value

a PFP object contains just the selected elements.

### See Also

`PFP-class`

### Examples

    data(PFP_test1)
    PFP_test1

[Package PFP version 1.2.0 Index]