Download a file from the FTP site
get_ftp_fileDownload raw file content from the PGS Catalog FTP using a path relative to the scores root; returns text files as-is and binary files as base64-encoded text.
Instructions
Download the raw text content of a file from the PGS Catalog FTP site. Provide a path relative to the FTP root, e.g. PGS000001/ScoringFiles/PGS000001.txt.gz or PGS000001/Metadata/PGS000001_metadata_scores.csv. Binary files (e.g. .gz) are returned as base64-encoded text; text files (e.g. .csv) are returned as-is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file on the FTP site, relative to the scores root. Example: PGS000001/Metadata/PGS000001_metadata_scores.csv |