Neurocysticercosis Project
https://github.com/LiNk-NY/NCC
-
Run the
R/loadPackages.R
script interactively. Make sure that you have all packages installed on your system. -
The
R/helperData.R
script creates data objects for cleaning and parsing the column names in the datasets. This is not to be modified unless you are familiar with the datasets. -
To download the resources from
Dropbox
, run theR/download.R
script interactively. This requires a GitHub package downloadkarthik/rdrop2
to connect to theDropbox
API. Note that folder access is required in order to be able to download the data. Alternatively, you may download and place the data files in thedata
folder. The code written will work with data placed inside theNCC/data
folder. -
If you do not have the serialized version of the dataset, run the
R/readCleanMerge.R
script with theSAV
files downloaded fromDropbox
. The SPSS (SAV
) files can be obtained fromDropbox
with folder permissions. This script will then save the datasets in a serializedrds
,sav
, orcsv
format. -
Run the
R/validation.R
script for obtaining some helper functions to validate and recode the data. -
Open
R/reshapeToLong.R
and run the script to change the data from wide to long format. Note: this script will source the previous scripts. This is useful if you have already saved the wide formatrds
file previously. -
Open the
R/ncc_msm_analysis.R
script and run the analysis interactively. Note thatBiocParallel
is a Bioconductor package and should be be installed as indicated in the script.
Submit any issues at our GitHub repository issue tracker: https://github.com/LiNk-NY/NCC/issues