5.3 Populate the tracking database with the designated result folder for each sample to be processed

Besides populating the input file S3 path, users will also need to set the results folder using the API command VCPA provides, so that this information will be effectively imported to the tracking database:

function rawurlencode(){
echo -n "$1" | perl -pe 's/([^a-zA-Z0-9_.!~*()'\''-])/sprintf("%%%02X", ord($1))/ge' | perl -pe 's/(\W)/sprintf("%%%02X", ord($1))/ge'
}

$  s3='s3://YOUR/RESULTS/FOLDER'    
### S3 path for the results folder for each sample 
$  results_s3_path=$(rawurlencode $s3)
$ curl -sS "http://IP/v1/sample/set-attr/results_s3_uri/${project_id}/${sample_name}/${results_s3_path}"

GET http://IP/v1/sample/set-attr/results_s3_uri/${project_id}/${sample_name}/${results_s3_path}

Add the path of result files.

Path Parameters

Name
Type
Description

project_id

string

This is the project ID outputted by Section 3.2.

sample_name

string

Sample name (note this needs to match the sample name of the input file in the S3 bucket).

results_s3_path

string

S3 path of where the results will be written to.

{
    "status":"success",
    "id":"8"
}

Last updated