ngstk (version 0.1.1.1)

fusions_filter: Fusions hander_data filter that can be used to prepare the input data for downstream analysis

Description

Fusions hander_data filter that can be used to prepare the input data for downstream analysis

Usage

fusions_filter(input_data, input_type = "common",
  config_file = system.file("extdata", "config/filter.toml", package =
  "ngstk"), config_list = NULL, hander_confg_file = system.file("extdata",
  "config/hander.toml", package = "ngstk"),
  mhander_confg_file = system.file("extdata", "config/mhander.toml", package =
  "ngstk"), hander_funs = NULL, mhander_funs = NULL,
  hander_extra_params = NULL, mhander_extra_params = NULL, outfn = NULL)

Arguments

input_data

A data frame containing the fusions cols (gene5, gene3, fusion_type)

input_type

Fusion filter type

config_file

ngstk filter configuration file path, default is system.file('extdata', 'config/filter.toml', package = 'ngstk')

config_list

ngstk filter configuration, default is NULL and read from config_file

hander_confg_file

ngstk hander configuration file path, default is system.file('extdata', 'config/hander.toml', package = 'ngstk')

mhander_confg_file

ngstk hander configuration file path, default is system.file('extdata', 'config/mhander.toml', package = 'ngstk')

hander_funs

hander function for single colnum, default is NULL and get value from config_file

mhander_funs

hander function for mulitple colnums, #' default is NULL and get value from config_file

hander_extra_params

Extra parameters pass to handler

mhander_extra_params

Extra parameters pass to mhandler system.file('extdata', 'config/filter.toml', package = 'ngstk')

outfn

Default is NULL and not output the result to file

Value

A data frame

Examples

Run this code
# NOT RUN {
demo_file <- system.file('extdata', 
'demo/proteinpaint/fusions2pp_fusioncatcher.txt', package = 'ngstk')
input_data <- read.table(demo_file, sep = '\t', header = TRUE, stringsAsFactors = FALSE)
result <- fusions_filter(input_data)
# }

Run the code above in your browser using DataCamp Workspace