subnet-methods {PFP} | R Documentation

## Subset the basic networks

### Description

Extract or Replace parts of the PFPRefnet.

### Usage

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

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

### Arguments

`object,` | `PFPRefnet` class.
`group_name,` | character, indicating the groups to subset.
`index,` | 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,` | character, the type pf index, which could be "slice","id","name".

### Details

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

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 group basic networks.

### Value

sub the network

### See Also

`PFPRefnet-class`

### Examples

    data(PFPRefnet_hsa)
    subnet <- subnet(PFPRefnet_hsa)

[Package PFP version 1.0.0 Index]