filter_methy | R Documentation |
Create a filtered methylation file from an existing one.
filter_methy(x, output_file, ...)
x |
the path to the methylation file or a NanoMethResult object. |
output_file |
the output file to write results to (must end in .bgz). |
... |
filtering criteria given in dplyr syntax. Use methy_col_names() to get available column names. |
invisibly returns 'output_file' if x is a file path, otherwise returns NanoMethResult object with methy(x) replaced with filtered value.
nmr <- load_example_nanomethresult()
output_file <- paste0(tempfile(), ".tsv.bgz")
filter_methy(nmr, output_file = output_file, chr == "chrX")
filter_methy(methy(nmr), output_file = output_file, chr == "chrX")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.