tcga-downloader/examples/interactive_example.py
yunpeng.zhang a01a59b371
Some checks failed
CI / Lint (push) Failing after 9m32s
CI / Test (3.11) (push) Successful in 6m41s
CI / Test (3.12) (push) Successful in 4m21s
feat: add interactive cli
2026-02-09 13:13:39 +08:00

34 lines
768 B
Python

#!/usr/bin/env python3
"""
Example: Interactive mode for TCGA Downloader.
This script demonstrates how to use the interactive CLI to:
1. Select a TCGA project from a dynamic list
2. Select a data type for that project
3. Download the selected data
Usage:
tcga-downloader interactive --out manifest.tsv --out-dir ./data
"""
from pathlib import Path
from tcga_downloader.interactive import interactive_select
def main():
print("Starting TCGA Downloader in interactive mode...")
print("This will guide you through:")
print(" 1. Selecting a TCGA project")
print(" 2. Selecting a data type")
print(" 3. Generating manifest")
print(" 4. Downloading files")
print()
interactive_select()
if __name__ == "__main__":
main()