Skip to content

Add group-by-population visualization for walk plots#39

Open
baozg wants to merge 1 commit intolh3:masterfrom
baozg:feature/group-by-population
Open

Add group-by-population visualization for walk plots#39
baozg wants to merge 1 commit intolh3:masterfrom
baozg:feature/group-by-population

Conversation

@baozg
Copy link

@baozg baozg commented Jan 9, 2026

This adds the ability to group haplotype walks by population/sample group in the gfa-server visualization. This give control to large pangenome and see possible selection signal of any ROI cluster

Features:

  • New "group by population" checkbox in the /view interface
  • Reads groups.tsv from server root to define sample groupings
  • Groups displayed as collapsible panels with headers showing group name, sample count, and haplotype count
  • Supports both merged view (shows count) and individual view (shows sample#haplotype labels)
  • Filter fragmented contigs works per-haplotype (not per-sample)
  • Group order and sample order can be specified in groups.tsv

groups.tsv format:

sample group group_order
CHM13 Reference 1
HG002 GIAB 2
image

This adds the ability to group haplotype walks by population/sample group
in the gfa-server visualization. Features:

- New "group by population" checkbox in the /view interface
- Reads groups.tsv from server root to define sample groupings
- Groups displayed as collapsible panels with headers showing group name,
  sample count, and haplotype count
- Supports both merged view (shows count) and individual view (shows
  sample#haplotype labels)
- Filter fragmented contigs works per-haplotype (not per-sample)
- Group order and sample order can be specified in groups.tsv

groups.tsv format:
  sample	group	group_order
  CHM13	Reference	1
  HG002	GIAB	2

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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