What feature is being added or bug is being addressed?
Closes #182. This PR adds conditionals to ensure that all necessary ClinVar files are downloaded prior to running AutoGVP. A base directory was also defined and file paths were adjusted such that run_autogvp.sh can now be run from any directory.
What was your approach?
Added two conditional statements to run_autogvp.sh. The first downloads variant_summary.txt.gz and submission_summary.txt.gz from ClinVar database if they are not already downloaded, and the second runs select-clinVar-submissions.R if ClinVar-selected-submissions.tsv is not present.
Added a BASEDIR variable that is set to the root directory of the repo
What GitHub issue does your pull request address?
182
Directions for reviewers. Tell potential reviewers what kind of feedback you are soliciting.
Which areas should receive a particularly close look?
To check that input files are downloaded when they are not present, please remove files variant_summary.txt.gz, submission_summary.txt.gz, and ClinVar-selected-submissions.tsv from working directory, and then run autogvp from root directory:
Purpose/implementation Section
What feature is being added or bug is being addressed?
Closes #182. This PR adds conditionals to ensure that all necessary ClinVar files are downloaded prior to running AutoGVP. A base directory was also defined and file paths were adjusted such that
run_autogvp.sh
can now be run from any directory.What was your approach?
Added two conditional statements to
run_autogvp.sh
. The first downloadsvariant_summary.txt.gz
andsubmission_summary.txt.gz
from ClinVar database if they are not already downloaded, and the second runsselect-clinVar-submissions.R
ifClinVar-selected-submissions.tsv
is not present.Added a
BASEDIR
variable that is set to the root directory of the repoWhat GitHub issue does your pull request address?
182
Directions for reviewers. Tell potential reviewers what kind of feedback you are soliciting.
Which areas should receive a particularly close look?
To check that input files are downloaded when they are not present, please remove files
variant_summary.txt.gz
,submission_summary.txt.gz
, andClinVar-selected-submissions.tsv
from working directory, and then run autogvp from root directory:Is there anything that you want to discuss further?
This can also be tested to run from different directories, but the input file paths in the above command would need to be changed accordingly.
Documentation Checklist