get_junc_count_filter: Obtain the junctions to filter based on count

Description Usage Arguments Value

View source: R/filter_junc.R

Description

get_junc_count_filter takes as input raw and normalised counts then applies a inputted filter to obtain a lgl vector the same length as the junctions determining which to keep.

Usage

1
2
get_junc_count_filter(raw_counts, norm_counts, raw_thresh = 3,
  norm_thresh = 0.05, n_samp = 1)

Arguments

raw_counts

df. Detailing the raw counts for each junction. Rows as junctions, cols as samples, values as raw counts.

norm_counts

df. Detailing the normalised counts for each junction. Rows as junctions, cols as samples, values as raw counts.

raw_thresh

dbl scalar. How many raw counts needed to keep a filter in?

norm_thresh

dbl scalar. How many normalised counts needed to keep a filter in?

n_samp

int scalar. Number of samples per junc that must have counts ab raw_thresh AND norm_thresh

Value

lgl vector. Each element corresponds to a junc. TRUE meaning the junction has passed the count filter.


dzhang32/RNAdiagnosR documentation built on Dec. 5, 2019, 2 a.m.