omicverse.single.download_cl¶
- omicverse.single.download_cl(output_dir='new_ontology', filename='cl.json')[source]¶
📥 Download Cell Ontology file from multiple sources with automatic fallback
This is a standalone function that downloads cl.json from multiple sources: 1. Official OBO Library (direct JSON) 2. OSS Mirror for Chinese users (ZIP format) 3. Google Drive backup (ZIP format)
- Parameters:
- Returns:
success (bool) – True if download successful, False otherwise
file_path (str or None) – Path to downloaded file if successful
Examples
>>> success, file_path = download_cl() >>> if success: ... print(f"Downloaded to: {file_path}")
>>> success, file_path = download_cl("my_data", "cell_ontology.json")