Download analysis information
This example uses curl commands to download information about a specific analysis. The output of the first curl command gives us URLs to use in later curl requests.
This curl command requests analysis information for an analysis named IR50_Rc10_Ane_BC18_DeganCases_1014_np:
curl --request GET -k -H "Authorization:ZTRhNWYyNjkzZjhlYjMxMTdmM2FkZGM1ZmQxYmRkNzU2ZTIxODk5OGRjZWM5ZDY2MjMzMTBiOGIwZWE5NmNlNg" "https://<server name>/api/v1/analysis?format=json&name=IR50_Rc10_Ane_BC18_DeganCases_1014_np"
The output is in JSON format:
[ { "reports": { "qc": { "link": "https://<server name>/api/v1/download?filepath=/data/IR/data/IR_Org/download/pdf/98ccb759-010f-4c92-acba-2da2d8aa9f4d/ff8081815067ca42015068f99193000d_QC.pdf" }, "final": {} }, "report_published": "", "workflow": "Low-pass whole-genome aneuploidy", "data_links": { "filtered_variants": "https://<server name>/api/v1/download?filepath=/data/IR/data/IR_Org/ion.reporter@lifetech.com/Ane_BC18_DeganCases/Ane_BC18_DeganCases_20151014174956618/IR50_Rc10_Ane_BC18_DeganCases_1014_np___4f776c35-4a9f-4a0f-a787-6ee28ebb8c7c.zip", "unfiltered_variants": "https://baseline.itw/api/v1/download?filepath=/data/IR/data/IR_Org/ion.reporter@lifetech.com/Ane_BC18_DeganCases/Ane_BC18_DeganCases_20151014174956618/IR50_Rc10_Ane_BC18_DeganCases_1014_np.zip" }, "variants_saved": "", "samples": { "PROBAND": "Ane_BC18_DeganCases" }, "shared_with": [], "stage": "Send for Report Generation", "flagged": false, "name": "IR50_Rc10_Ane_BC18_DeganCases_1014_np", "id": "ff8081815067ca42015068f99193000d", "ion_reporter_version": "5.0", "started_by": "Ion User", "start_date": "October 14, 2015", "status": "SUCCESSFUL" } ]
This output contains links to three downloads about this analysis (backslashes have been removed):
qc: "https://<server name>/api/v1/download?filepath=/data/IR/data/IR_Org/download/pdf/98ccb759-010f-4c92-acba-2da2d8aa9f4d/ff8081815067ca42015068f99193000d_QC.pdf"
unfiltered_variants:" https://<server name>/api/v1/download?filepath=/data/IR/data/IR_Org/ion.reporter@lifetech.com/Ane_BC18_DeganCases/Ane_BC18_DeganCases_20151014174956618/IR50_Rc10_Ane_BC18_DeganCases_1014_np.zip"
filtered_variants: "https://<server name>/api/v1/download?filepath=/data/IR/data/IR_Org/ion.reporter@lifetech.com/Ane_BC18_DeganCases/Ane_BC18_DeganCases_20151014174956618/IR50_Rc10_Ane_BC18_DeganCases_1014_np___4f776c35-4a9f-4a0f-a787-6ee28ebb8c7c.zip"
curl --request GET -k -H "Authorization:ZTRhNWYyNjkzZjhlYjMxMTdmM2FkZGM1ZmQxYmRkNzU2ZTIxODk5OGRjZWM5ZDY2MjMzMTBiOGIwZWE5NmNlNg" -O "https://<server name>/api/v1/download?filepath=/data/IR/data/IR_Org/ion.reporter@lifetech.com/Ane_BC18_DeganCases/Ane_BC18_DeganCases_20151014174956618/IR50_Rc10_Ane_BC18_DeganCases_1014_np___4f776c35-4a9f-4a0f-a787-6ee28ebb8c7c.zip"