Skip to content

susieR 0.16.6 compat: drop defunct R_mismatch_method/check_prior forwarding - #557

Merged
gaow merged 3 commits into
StatFunGen:mainfrom
Yining97:susie-0166-compat
Jul 30, 2026
Merged

susieR 0.16.6 compat: drop defunct R_mismatch_method/check_prior forwarding#557
gaow merged 3 commits into
StatFunGen:mainfrom
Yining97:susie-0166-compat

Conversation

@Yining97

Copy link
Copy Markdown
Contributor

These moved into susie_rss_control() in susieR 0.16.6; .fmFitSusieRss no longer
forwards them (control defaults apply). R_mismatch still passes through, incl. the
new eb_mix. Pin susieR (>= 0.16.6). Behavior-preserving for default/eb runs.

Yining97 added 2 commits July 28, 2026 16:38
…arding

These moved into susie_rss_control() in susieR 0.16.6; .fmFitSusieRss no longer
forwards them (control defaults apply). R_mismatch still passes through, incl. the
new eb_mix. Pin susieR (>= 0.16.6). Behavior-preserving for default/eb runs.
susie_rss() is no longer passed R_mismatch_method/check_prior (they
moved into susie_rss_control() in 0.16.6), so the code runs on susieR
0.16.4+. The >= 0.16.6 pin couldn't be satisfied by the CI conda
channel (max 0.16.4) and failed every CI job. Docs now note eb_mix
needs 0.16.6 while the package itself works on 0.16.4+.
Comment thread R/fineMappingPipeline.R Outdated
#' \code{check_prior} forwarded to \code{susieR::susie_rss()} when
#' non-\code{NULL}.
#' \code{"eb"} for empirical Bayes, \code{"eb_mix"} for residual-mixture EB;
#' \code{"eb_mix"} requires susieR >= 0.16.6). Default \code{"none"} (susieR's

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You can clean up these documentations related to backwards compatibility --- this is not relevant to users in the long run

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Comment thread R/fineMappingPipeline.R Outdated
#' default). \code{R_mismatch_method} and \code{check_prior} are no longer set
#' here: they became \code{susie_rss_control()} settings in susieR >= 0.16.6
#' and are left at their control defaults, so this package works with
#' susieR 0.16.4+.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

similarly here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Comment thread R/fineMappingWrappers.R Outdated
if (!is.null(rMismatchMethod)) baseArgs$R_mismatch_method <- rMismatchMethod
if (!is.null(checkPrior)) baseArgs$check_prior <- checkPrior
# R_mismatch_method / check_prior are susie_rss_control() settings in susieR
# >= 0.16.6 (not top-level susie_rss args); left at their control defaults.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

clean this up.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also you should provide input interface for RSS controller?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

RSS controller added for pecotmr. Will add to pipeline too

…review)

Address review: drop the susieR 0.16.4/0.16.6 backwards-compat narrative
from the rMismatch roxygen/.Rd and the fineMappingWrappers comment, and
expose susie_rss_control() via a new rssControl named-list arg on
fineMappingPipeline (forwarded as susie_rss(control=...)); NULL leaves
the control defaults, a non-named-list errors. Threaded through
.fmFitRssBlock and .fmFitSusieRss, with unit + real-data tests.
@gaow
gaow merged commit 9ab3276 into StatFunGen:main Jul 30, 2026
3 of 5 checks passed
@Yining97
Yining97 deleted the susie-0166-compat branch July 30, 2026 16:13
Yining97 added a commit to Yining97/pecotmr that referenced this pull request Jul 30, 2026
The .fmFitSusieRss rssControl-forwarding test mocks susie_rss_control(),
which only exists in susieR >= 0.16.6; on the CI r44 env (susieR 0.16.4)
local_mocked_bindings() can't find the binding and errors. Skip it when
susieR lacks susie_rss_control - rssControl is a 0.16.6-only feature
anyway. (Test came in with StatFunGen#557; it also fails CI here on this branch.)
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