Switch node fill aesthetic and replace Rgraphviz with improved Sugiyama layout#33
Conversation
Co-authored-by: jhollway <5595229+jhollway@users.noreply.github.com>
Co-authored-by: jhollway <5595229+jhollway@users.noreply.github.com>
|
@copilot , this doesn't pass the checks/tests. Is it the tests that need updating or does this break some other functionality? |
Co-authored-by: jhollway <5595229+jhollway@users.noreply.github.com>
Fixed the test failures in commit c69cb89. The issues were:
All 8 failing tests have been updated to work with the color-to-fill aesthetic changes. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #33 +/- ##
==========================================
+ Coverage 41.65% 41.71% +0.05%
==========================================
Files 25 25
Lines 2019 2021 +2
==========================================
+ Hits 841 843 +2
Misses 1178 1178 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot, can you improve code coverage by adding some more tests and/or using #nocov to exclude untestable aspects from the code coverage calculations? |
Co-authored-by: jhollway <5595229+jhollway@users.noreply.github.com>
Added in commit 6cbd678: New tests (4 tests in
|
|
The error is with the package RGraphViz, which cannot be found. It is used quite frequently in two-mode layout functions. Can you develop a fast and accurate replacement for a Sugiyama-type layout, @copilot? Does the code need to be in C++ or Rust to be performant? |
Co-authored-by: jhollway <5595229+jhollway@users.noreply.github.com>
Co-authored-by: jhollway <5595229+jhollway@users.noreply.github.com>
Replaced Rgraphviz with Changes:
|
…mization Co-authored-by: jhollway <5595229+jhollway@users.noreply.github.com>
Co-authored-by: jhollway <5595229+jhollway@users.noreply.github.com>
Description
Shifts node colouring from
colortofillaesthetic (closes #12), enabling independent control of node interior and border. Replaces theRgraphvizBioconductor dependency with a custom Sugiyama layout implementation that produces better edge crossing minimization thanigraph::layout_with_sugiyama().Node aesthetics: color → fill
geom_node_point()calls usefillinstead ofcolor/colour; scale functions updated accordingly"circle"to21(fillable circle); shape scale values use numeric codes (21–25) that support bothfill(interior) andcolor(border)+ geom_node_point(color = "black")Sugiyama layout replacement
Rgraphviz(Bioconductor) dependency entirely — replaced with.sugiyama_layout()in pure Rdotlayout superior to plainigraph::layout_with_sugiyama()layout_hierarchy(),layout_alluvial(), andlayout_lineage()all use the new engineBiocManagerfrom Suggests,Rgraphvizfrom EnhancesBug fix
graph_labels.R: Fixedcase_whenerror from matrix subsetting ([,]→[[]])Tests and coverage
"circle"→21) and scale checks (scale_color_*→scale_fill_*)ison_southern_womenskip_on_ci()since Rgraphviz no longer needed)#nocovmarkers for untestable code (grapht.R,zzz.R, interactive helpers)Checklist:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.