34 lines
768 B
Python
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()
|