Skip to content

Feature updates#36

Merged
suu-yi merged 32 commits intomasterfrom
feature-updates
Feb 22, 2026
Merged

Feature updates#36
suu-yi merged 32 commits intomasterfrom
feature-updates

Conversation

@suu-yi
Copy link
Collaborator

@suu-yi suu-yi commented Feb 18, 2026

Preprocessing

  • PrepareCyteTypeR: Uses .sample_visualization_data() for visualization data

Artifacts & uploads

  • New R/artifacts.R: Build normalized expression (cells × genes) from the Seurat object to vars.h5 (Optional feature metadata df)
    • cell metadata to obs.duckdb with optional config
  • Upload helpers in R/client.R: .MAX_UPLOAD_BYTES (obs_duckdb 100MB, vars_h5 10GB), .upload_file_binary, .upload_obs_duckdb, .upload_vars_h5.
    • Chunked file upload and improved error logging.
  • CyteTypeR():
    • upload_artifacts (default FALSE)
    • vars_h5_path, obs_duckdb_path, upload_timeout_seconds, cleanup_artifacts

API & schema

  • Payload / options: Default API URL (prod), n_parallel_clusters (1–50), clientInfo (clientType, clientVersion) in input data; poll interval and timeout from options in zzz.R.
  • R/schema.R: InputData and validation extended with nParallelClusters and clientInfo;
  • R/zzz.R: Options cytetype.default.api.url, cytetype.default.poll.interval, cytetype.default.timeout; helpers .get_default_api_url, .get_default_poll_interval, .get_default_timeout.

Results & Seurat integration

  • Results handling: override_existing_results, results_prefix; job details and annotations stored in obj@misc by prefix; GetResults(obj, job_id, results_prefix, auth_token) to read from object or fetch from API.
  • R/seurat_helpers.R: .normalize_result_annotations, .store_job_details_seurat, .store_annotations_seurat, .sample_visualization_data for visualization data in prepared payload; .transform_results_seurat; annotation columns use character indexing for numeric group_key

@suu-yi suu-yi marked this pull request as ready for review February 18, 2026 08:25
@parashardhapola parashardhapola self-requested a review February 18, 2026 15:29
Copy link
Member

@parashardhapola parashardhapola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zzz.R can have a better name

@suu-yi
Copy link
Collaborator Author

suu-yi commented Feb 18, 2026

zzz.R can have a better name

R loads files alphabetically, this ensures it loads last!

@suu-yi suu-yi closed this Feb 18, 2026
@suu-yi suu-yi reopened this Feb 18, 2026
@suu-yi suu-yi merged commit fbe3843 into master Feb 22, 2026
4 checks passed
@suu-yi suu-yi deleted the feature-updates branch February 22, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants