Scripts to load data from Argos output folders and process into tables to facilitate the creation of RMarkdown reports.
In your R
or RMarkdown
source the load_data.R
file and call the load_data
function. Example:
# params gets passed by `rmarkdown::render`
#
source("load_data.R")
inputs=params
data=load_data(params$sample_id,params$inputs)
-
sample_id
is one of the samples from that run. No checking is done so a fatal error will occur if thesample_id
is not in the followinginputs
folders. (FIX THIS) -
inputs
is a list with two (3) elements:analysis_dir
= the path to the ARGOS/HELIX analysis directory. It is the folder that contains the.muts.maf$
file.portal_dir
= the path to the ARGOS/HELIX portal directory. It folder that contains thedata_clinical_sample.txt
file.oncokb_file
= path to the oncokb annotation file
The return value is a list with the following elements:
tbl01
- Sample metadata (id's, type, matched normal, ...)summaryTbl
- Summary of alterationsmafTbl
- Mutation Table. Will be filtered withExAC
-filter if unmatchedmafTblFull
- Unfiltered Mutation Table for case of unmatched normal (same as mafTbl for matched case)cnvTbl
- Filtered Copy Number Table, DMP convention of only HOMODEL & AMPcnvTblFull
- Full Copy Number TablefusionTbl
- Fusion EventsreportTbl
- Report info (version, input directory)methods
- Methods paragraphglossaryTbl
- Glossary table with various definitions