1οΈβ£ Analysis with R β
You can use R to perform analysis with Aplos NCA using API calls via secure http requests. Aplos has prepared example R-scripts to illustrate how this analysis can be performed using R. One script includes functions for specific API requests and the second script includes code to execute a sample analysis and download the results. You can use the links below to see each file and the download it to your computer from the GitHub repository using the download link.
Description | File | Link to file |
---|---|---|
API Functions | functions-api.R | π |
Sample analysis | sample-analysis.R | π |
Security file | security.txt | π |
Sample data file | single_ev.csv | π |
Configuration file | configuration_single_ev.json | π |
Meta data file | meta_data.json | π |
Complete repository | all files | π |
Functions β
There is a single function that performs all actions needed to execute an analysis with Aplos NCA. A detailed description of the actions and the code are available on a separate page. A short description can be found below:
Function | Description |
---|---|
get_jwt | Request authentication JSON Web Token (jwt) from Amazon Cognito. This token is required for all API calls. |
aplos_nca | Request Aplos NCA for secure URL to upload input data file. Securely upload input data file to user account. Initiate analysis. Request status of ongoing or completed analysis. Download and unzip the results to the local computer. |
Sample analysis script β
An example R script is provided that performs a complete analysis using Aplos NCA. The details of the example R script are available on a separate page. The R script performs the following actions:
- Import security login information from a file
- Request security token from Amazon Cognito
- Execute analysis using Aplos NCA