Skip to contents

Create Network Object.

Usage

FilterGRNs(LinkageObject, genelist_idtype, filter_col, filter_value)

Arguments

LinkageObject

An Linkage Object after BuildGRNs.

genelist_idtype

There are ensembl_gene_id, external_gene_name, entrezgene_id types of genetic IDs to choose from.

filter_col

p_value,FDR,rho can be selected.

filter_value

Cutoff value of filter_col.

Value

Network Object.

Examples

library(Linkage)
data("Small_ATAC.rda")
#> Warning: data set 'Small_ATAC.rda' not found
data("Small_RNA.rda")
#> Warning: data set 'Small_RNA.rda' not found
LinkageObject <-
  CreateLinkageObject(
    ATAC_count = Small_ATAC,
    RNA_count = Small_RNA,
    Species = "Homo",
    id_type = "ensembl_gene_id"
  )
gene_list <- c("TSPAN6", "CD99", "KLHL13")
LinkageObject <-
  RegulatoryPeak(
    LinkageObject = LinkageObject,
    gene_list = gene_list,
    genelist_idtype = "external_gene_name"
  )
LinkageObject <-
  BuildGRNs(LinkageObject = LinkageObject,
                        Species = "Homo",
                        TF_cor_method = "pearson")
LinkageObject <-
  FilterGRNs(
    LinkageObject = LinkageObject,
    genelist_idtype = "entrezgene_id",
    filter_col = "FDR",
    filter_value = 0.01
  )