Fix ManhattanPlot: dplyr summarise() multi-row error and duplicate chunk labels - #258
Merged
Merged
Conversation
…uplicate chunk labels Co-authored-by: ShixiangWang <25057508+ShixiangWang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix deploy action error in ManhattanPlot
Fix ManhattanPlot: dplyr summarise() multi-row error and duplicate chunk labels
Mar 20, 2026
Contributor
✅ QMD Format Check✅ All 1 checked QMD file(s) pass format validation!
|
Contributor
📊 Quarto Render PreviewThe new or modified Quarto files have been rendered and are available as artifacts. 🔗 View and Download Rendered Files Click the link above, scroll to the "Artifacts" section at the bottom of the page, and download Modified files: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI build fails rendering
Omics/ManhattanPlot.qmdbecause newer dplyr (≥1.1.0) rejectssummarise()returning multiple rows on an ungrouped data frame, and all figure chunks have labels defined in both the chunk header and#| label:pipe comments.Changes
summarise()→mutate()— aftergroup_by(CHR) %>% summarise(len=max(BP)), the result is an ungrouped 22-row tibble. The subsequent call was computing a per-row offset, not aggregating —mutate()is the correct verb:```{r fig1.1Basicmanhattan}) and a#| label:pipe comment, triggeringDuplicated chunk option(s) 'label'warnings. Chunk header names removed;#| label:pipe comments retained per project convention.Both
ManhattanPlot.qmd(EN) andManhattanPlot.zh.qmd(ZH) are updated.💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.