Run create_report.R
This script enables to run the create_report.R script on multiple patients
Requirements
access_data_analysis=>0.1.2 # works with this repo tag
typer==0.3.2
typing_extensions==3.10.0.0
pandas==1.2.5
rich==12.1.0run_create_report
Main Script (run_create_report.py)
Usage: run_create_report.py [OPTIONS]
Options:
-r, --repo PATH Base path to where the git repository is
located for access_data_analysis
-s, --script PATH Path to the create_report.R script, fall
back if `--repo` is not given
-t, --template PATH Path to the template.Rmd or
template_days.Rmd to be used with
create_report.R when `--repo` is not given
-m, --manifest FILE File containing meta information per sample.
Require following columns in the header:
cmo_patient_id, sample_id, dmp_patient_id,
collection_date or collection_day,
timepoint. If dmp_sample_id column is given
and has information that will be used to run
facets. If dmp_sample_id is not given and
dmp_patient_id is given than it will be used
to get the Tumor sample with lowest number.
If dmp_sample_id or dmp_patient_id is not
given then it will run without the facet maf
file [required]
-v, --variant-results DIRECTORY
Base path for all results of small variants
as generated by filter_calls.R script in
access_data_analysis (Make sure only High
Confidence calls are included) [required]
-c, --cnv-results DIRECTORY Base path for all results of CNV as
generated by CNV_processing.R script in
access_data_analysis [required]
-f, --facet-repo DIRECTORY Base path for all results of facets on
Clinical MSK-IMPACT samples [default: /juno
/work/ccs/shared/resources/impact/facets/all
/]
-bf, --best-fit If this is set to True then we will attempt
to parse `facets_review.manifest` file to
pick the best fit for a given dmp_sample_id
[default: False]
-l, --tumor-type TEXT Tumor type label for the report [required]
-cfm, --copy-facet-maf If this is set to True then we will copy the
facet maf file in the directory specified in
`copy_facet_dir` [default: False]
-cfd, --copy-facet-dir PATH Directory path where the facet maf file
should be copied.
-d, --template-days If the `--repo` option is specified and if
this is set to True then we will use the
template_days RMarkdown file as the template
[default: False]
-gm, --generate-markdown If given, the create_report.R will be run
with `-md` flag to generate markdown
[default: False]
-ff, --force If this is set to True then we will not stop
if an error is encountered in a given sample
while running create_report.R but keep on
running for the next sample [default:
False]
--install-completion Install completion for the current shell.
--show-completion Show completion for the current shell, to
copy it or customize the installation.
--help Show this message and exit.Usage
Submodules
check_required_columns
check_required_columns
generate_repo_paths
generate_repo_path
read_manifest
read_manifest
get_row
get_small_variant_csv
get_small_variant_csv
run_cmd
run_cmd
run_multiple_cmd
generate_facet_maf_path
generate_facet_maf_path
get_maf_path
get_best_fit_folder
generate_create_report_cmd
generate_create_report_cmd
Last updated
Was this helpful?