Phase 3: Data Analysis
This section covers how to use a SageMaker workspace to access saved data subsets for analysis and run analyses on the OCHIN data.
Creating a SageMaker workspace
When you are finished working on your workspace for the day, please STOP the workspace to avoid incurring excess cloud costs.
Connecting your project database
In order to save your code across different Sagemaker workspaces, be sure to save code files to the ~Sagemaker/studies/[YOUR-PROJECT-NAME]/ folder, where your porject name is the same as the study you selected at Step 3 of this page.
Using R and python to access tables in your project database
The R and python example notebooks contain all the steps needed to connect to the OCHIN Database.
They walk through the following steps:
Install necessary drivers and packages
Read and parse your DB credentials
Connect to the database
Query the database
Last updated