Trims the edges off of DMR expansions.

trimDMR(df, region, min.dmr.cpgs, max.dmr.size, null_summary, null_values)

Arguments

df

DMR expansion output dataframe.

region

get_all_DMRs() region output

min.dmr.cpgs

Get_Novel_DMRs arg minCpGs

max.dmr.size

Get_Novel_DMRs arg QueryLimit

null_summary

null distribution conrtainer

null_values

null distribution conrtainer

Value

Returns a data.frame of all trimmed DMRs for use within the Get_Novel_DMRs() function.