Skip to content

1️⃣ Analysis with SAS ​

You can use SAS to perform analysis with Aplos NCA using API calls via secure http requests using proc http. Aplos has prepared a sample program to illustrate how this analysis can be performed using SAS. The single SAS program will upload a dataset, initiate analysis, and then download the results when complete. 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.

DescriptionFileLink to file
SAS Programaplos_nca_sample.sasπŸ“„
Security filesas_security.envπŸ“„
Sample data filesingle_ev_10.csvπŸ“„
Configuration fileconfiguration_single_ev.jsonπŸ“„
Meta data filemeta_data.jsonπŸ“„
Complete repositoryall filesπŸ”—

Functions ​

There are 6 functions provided to perform analysis with Aplos NCA. Detailed descriptions of the functions and the code are available on a separate page. A short description can be found below:

FunctionDescription
get_jwtRequest authentication JSON Web Token (jwt) from Amazon Cognito. This token is required for all API calls.
get_upload_urlRequest Aplos NCA for secure URL to upload input data file.
upload_file_apiSecurely upload input data file to user account.
execute_analysisInitiate analysis.
execution_statusRequest status of ongoing or completed analysis.
download_resultsDownload results of completed analysis.

Security information ​

Security information should never be stored within a script that is shared with other users. One method to simplify use of security information within SAS is to create a text file with the security information that is then imported into the script and used. Let others know that they will need to use their own security information file when using the code. The security.txt file shows the format, but contains no information.

The information for everything except the username and password can be obtained from the Aplos NCA Web Interface under the Profile | API Configuration. API Configuration

Enter the information from your account inside the quotation marks and then save the file on your computer to be imported into the Example sas script.

sas
APLOS_API_URL=<value>
COGNITO_CLIENT_ID=<value>
COGNITO_USER_NAME=<value>
COGNITO_PASSWORD=<value>
COGNITO_REGION=<value>
TENANT_ID=<value>
USER_ID=<value>