View source: R/load_TINC_input.R
load_TINC_input | R Documentation |
The function loads input mutations and optional copy number data for TINC. Input formats are reported at the package website.
After loading data, mutation with VAF outside a range (default [0; 0.7]) are removed from analysis. Similarly, mutations are down-sampled if in excess of some threshold (default 'N=20000').
load_TINC_input(x, cna, VAF_range_tumour = c(0, 0.7), N = 20000)
x |
A dataframe or tibble with input mutation data, reporting 'chr', 'from', 'to', 'ref' and 'alt', plus 'n_ref_count' and 'n_alt_count', and 't_ref_count' and 't_tot_count'. |
cna |
Copy Number data in the format of package |
VAF_range_tumour |
VAF range used to filter mutations from the tumour sample. |
N |
If there are more than 'N' mutations in VAF range 'VAF_range_tumour', a random subset of size 'N' is retained. |
A tibble with the loaded data.
# Generating a random TIN input
rt = random_TIN()
load_TINC_input(x = rt$data, cna = rt$cna)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.