Skip to content

Version4 - #29

Open
Exceret wants to merge 96 commits into
mainfrom
version4
Open

Exceret wants to merge 96 commits into
mainfrom
version4

Conversation

@Exceret

@Exceret Exceret commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Exceret and others added 30 commits July 18, 2026 23:03
- 将 CI 工作流分支切换至 version4
- 添加最低版本约束:S7 (>= 0.2.2) 与 DEGAS (>= 1.0.1)
- 新增 methods 依赖及 SigBridgeRBase 与 SCAnnotate S3 方法导出
- 统一错误处理:将 cli::cli_abort 替换为自定义 Abort 函数并简化 S7 属性校验返回格式
- 补充类、属性与核心函数的 roxygen2 文档
- 移除 CellTypist 自动环境配置逻辑与冗余的 cli 标题输出
* 将ggplot2和Rcpp从Suggests移至Imports,移除tidycheckUsage依赖
* 新增C++函数promise_root_expr_cpp以改进函数名解析
* 重构ValidateScreenFunc,用codetools替代tidycheckUsage进行语法检查
* 修复ScreenMethod校验逻辑,确保映射函数仅有一个参数
* 使用lifecycle::deprecate_warn处理Scissor/scPAS中的family参数弃用
* 在已弃用文件中添加# nocov start标记
* 扩展NAMESPACE导入所需的rlang函数
* 新增扩展ScreenMethod和Annotation的vignette
* 更新NEWS提示模板,允许在变更日志中使用Markdown语法和emoji
- 从 .Rbuildignore 移除 tests 目录忽略规则
- 更新 CONTRIBUTING.md 中的扩展指南链接和开发环境配置说明
- 在 DESCRIPTION 中添加 IDConverter、tidydr 依赖,移除 remotes 依赖
- 新增 names<- S3 方法及多个 rlang 函数导入
- 添加 nocov start/end 标记用于包初始化代码
- 引入启动动画 (startup_spinner) 替代原有启动消息
- 修复 r_pkg_version 错误处理中的返回值问题
- 新增 property_verison 属性并应用于 Method/ScreenMethodConfig
- 修复 ScreenMethod mapper 验证空函数检查
- 修复 SCIntegrate 调度逻辑 (Matrix vs matrix) 及参数传递
- 修复 DoscPAS、DoscAB、DoscPP 中变量引用错误
- 修复 DEGAS 训练中的参数解包和全局变量泄漏问题
- 修复多处的 rlang Abort 调用格式
- 更新文档示例和参数说明
Remove unused C++ function `promise_root_expr_cpp`, simplify `InterceptStrategy` by removing `detailed` parameter, fix DEGAS parameter passing and validation, update vignettes for annotation and Seurat method extension, correct typos, and improve documentation and code style.
Rewrite `AddMetaFeature` to use Seurat's `AddMetaData` internally, removing manual matrix transposition and name deduplication. Update README, vignettes, and namespace to align with the deprecated `SCPreProcess` and version bump.
- Migrate S3 method registrations to fully qualified class names
- Add as.character.list S3 method and update property display logic
- Introduce extra property in ScreenMethodResult and update constructors
- Replace rlang::exec with do.call and filter arguments in screening calls
- Deprecate family and cache path parameters across screening methods
- Fix validation checks for unique names and empty slots
- Update example data paths from vignettes to inst/extdata
- Adjust default plot colors and minor styling
Move `ExtractMetrics` and `normalize_metric` from R to C++ (`ExtractMetricsCpp`), fix `ChooseNormalization` evaluation bug with `!!!` operator, delay plot generation for verbosity, and apply minor documentation and vignette fixes.
- Bump devel version to 4.0.0 in README badges
- Remove stale r-universe badge
- Consolidate S3 method docs under a single SigBridgeR-S3 man page
- Add check_dots_empty() and stricter get() in InterceptStrategy
- Disable evaluation of vignette code chunks that require data files
- Update pkgdown reference index with new topics and removed BulkPreProcess
Specify minimum data.table version (>= 1.9.8) in DESCRIPTION and explicitly import as.data.table and fcase. Remove unnecessary export of "SigBridgeR-S3" from NAMESPACE. Refactor PhenoMap to use data.table::fcase and set() for better performance. Update vignettes with eval: false chunks and add Full_Tutorial.md.
Break setThreads() into independent per-backend configuration functions
and add WGCNA thread control. Change default threads from auto-detected
to a fixed 2L, removing the dependency on future::availableCores().
…ons available

- Show utils::menu() to let user choose group.by when multiple
  candidates exist in ScreenStrategy
- Use rlang::check_installed() instead of bare check_installed()
- Simplify cluster_color matching logic (direct %chin% instead
  of tolower comparison)

fix: remove duplicate cli::cli_end() call in S3_base
chore: update cli version constraint to >= 3.0.0 in DESCRIPTION
chore: ignore .mcp.json and AGENTS.md in .gitignore and .Rbuildignore
chore: remove hardcoded R binary paths from .vscode/settings.json
- Prefix all rlang functions with `rlang::` to avoid reliance on
  package-level imports (check_installed, exec, arg_match, list2,
  enquos, names2, is_named, is_named2, fn_fmls_names, is_interactive,
  is_function, caller_env, try_fetch, check_dots_empty)
- Replace `cli::cli_fmt(cli::cli_text(...))` with `cli::format_inline(...)`
- Bump minimum R version to 4.2.0 in DESCRIPTION
- Add benchmark-related properties to SigBridgeRBase class:
  property_bench_obj, property_bench_bulk,
  property_bench_label_type, property_bench_iterations
… AVAILABLE_SCREEN_METHODS

Move common benchmark properties (matched_bulk, sc_data, phenotype,
label_type, phenotype_class, screen_method, method_param) into the base
BenchConfig class. Create dedicated files for BenchAccConfig (04h) and
BenchGSEAConfig (04i) as proper subclasses. BenchMemoryConfig now only
holds bench_config specific to memory/time benchmarks.

Replace all `names(ScreenStrategy)` references with the new
`AVAILABLE_SCREEN_METHODS` constant for consistency and clarity.

Fully qualify S7 class references (S7::class_character, S7::class_any,
etc.) to avoid ambiguity with bare class objects.

Add general-purpose properties property_phenotype and property_matrix
while removing benchmark-specific properties from ClassBase.R.

Add fgsea to Suggests and extra CI packages to R_CMD_check workflow.
- Add roxygen blocks for every Rcpp export and regenerate RcppExports.R,
  so the internal C++ helpers are documented instead of bare stubs.
- Expand the roxygen docs for BenchAcc, BenchGSEA, BenchMemory,
  BenchGeneScore and the config setters, with parameter types, return
  values, dispatch details and examples; add the ConfigSet family.
- Give MethodParamSet() explicit per-method arguments, case-insensitive
  matching and an error for unknown fields, and generate its @PARAM tags
  from ScreenStrategy.
- Turn BenchMemory() into an S3 generic with a default method that lists
  the available classes.
- Fix the BenchGeneScoreConfig class name, return the AUCell AUC matrix
  instead of the raw object, and correct the "Neutral" label spelling.
- Report physical memory in GB, record a uniform "timeout" error, and
  drop the unused per-method lookup.
- Add dev/rexpand.R (build-time source expander) and exclude dev/ from
  the package build.
- use names(ScreenStrategy) across config validators, Screen(), plots, and cache helpers
- add GenerateRoxy.Screen.screen_method() to generate screen_method docs dynamically
- register S3 method BenchGeneScore.Seurat and clean up NAMESPACE exports
- add copyright holders and third-party code attribution to DESCRIPTION
- fix ChooseNormalizationCheck layer detection and tighten weight validation
- rework BenchMemory docs to reflect child-process measurement design
- add AUCell, GSVA, UCell to Suggests and fix ssGSEA dependency check
- minor fixes: utils::capture.output, stats::setNames, cli abort messages
`Update S7 dependency to v1.0.0, add S3 methods for Seurat, improve error handling, and expand metrics in BenchAcc`

**Body:**
- Updated S7 dependency to v1.0.0
- Added S3 methods for Seurat object merging
- Improved error handling in `ValidateDEGASv2Params` and `ValidateDEGASParams`
- Added `Precision` and `Recall` metrics to `BenchAcc`
- Enhanced `MergeResult` to handle duplicate columns and slot merging
- Added `S7_on_build()` and `S7_on_unload()` hooks
- Fixed minor documentation and validation issues
- Update `mapper` parameter default to `NULL` in `ClassMethod` and `ScreenMethod` classes.
- Replace `SigBridgeRUtils::MatchArg` with `rlang::arg_match0` for stricter argument validation.
- Replace `S7::S7_object()` with `BenchConfig()` in benchmark config classes.
- Fix typo in error message ("{.cls function}" → "function").
- Remove deprecated `rexpand.R` build script.
- Update `PIPET_Screen` to default `distance` to `"cosine"` instead of `NULL`.
- Update `DoDEGAS` to default `normality_test_method` to `"jarque-bera"`.
- Minor test adjustments for consistency.
…d_save`, add path normalization helper**

**Commit:** `Fix typos and add path normalization helper`
…ons, and breaking changes`

*(Body: Key updates include new gene-length/TPM tools, benchmarking framework, `SymbolConvert()` improvements, and C++ optimizations for `FindRobustElbow()` and GTF parsing.)*
Adds `DoPhenoMapR()` as a new screening method for phenotype mapping from bulk to single-cell data. Updates documentation and dependencies.
- Add `PhenoMapR` to dependency list and config
- Enforce WGCNA thread minimum of 2 (was 1)
- Update GitHub workflow to track `version3`/`version4` branches
`feat: add probe_resources config, improve CPU core handling, and fix integer defaults`

*(Key changes: added `probe_resources` flag, updated CPU core logic, and fixed integer defaults in `z_score_cutoff` and `n_cores`.)*
`SetThreads` renamed to `setThreads` (avoid Seurat API ), added `list_to_chr_formated` for multi-line list rendering, and updated docs/exports.
`Cleanup: remove redundant progress bar calls and add error handling for BenchGeneScore`

**Body:**
- Removed redundant `cli_progress_done()` calls in `63-BenchMemory.R`
- Added `try()` wrapper for `BenchGeneScore` in docs and code
- Updated `WORDLIST` with new terms (`XERJ`, `licences`, `serialises`) and removed `hardcoded`
`Update dependencies, docs, and workflow: remove `parallel` from Suggests, add `huayc09/SeuratExtend`, and enable GitHub workflow triggers`

This branch has not been deployed

No deployments
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.

1 participant