Commit 36ae780
authored
Feature/unified variants (#7)
* **chore(variants): Remove unused legacy variant group and alias code**
- Deleted templates, models, repositories, and controllers related to old variant group and alias handling.
- Refactored dependent views and logic to remove references to deprecated components.
- Cleaned up accompanying documentation and comments.
* Template for maintenance page
* DU Naming Authority API
* **refactor(variants): Update forms and backend for simplified reference genome and variant metadata handling**
- Replaced `genbankContigId` with `refGenome` and `contig` in forms and backend logic.
- Enhanced `editForm` and `createForm` to support clearer metadata fields and additional variant types.
- Made genomic coordinates immutable, restricting edits to metadata fields only.
- Added improved validation and context for editable and optional fields.
- Streamlined templates and controller logic to align with `VariantV2` schema.
* **chore(curator): Remove legacy Cytoband and STR Marker templates and models**
- Deleted unused templates (`createForm`, `editForm`, `detailPanel`) for Cytobands and STR Markers.
- Removed associated Scala models (`Cytoband`, `StrMarker`), streamlining codebase maintenance.
- Cleaned up controllers and routes referencing deprecated Cytoband and STR Marker logic.
* **chore(curator): Remove legacy Cytoband and STR Marker templates and models**
- Deleted unused templates (`createForm`, `editForm`, `detailPanel`) for Cytobands and STR Markers.
- Removed associated Scala models (`Cytoband`, `StrMarker`), streamlining codebase maintenance.
- Cleaned up controllers and routes referencing deprecated Cytoband and STR Marker logic.
* **refactor(views/utils): Centralize badge and variant rendering utilities**
- Extracted reusable badge class and variant formatting logic into `CuratorViewUtils` and `VariantViewUtils`.
- Updated multiple views to utilize the new utilities, reducing redundancy and improving maintainability.
- Replaced inline helper methods with calls to centralized utility functions across various curator and variant templates.
* **refactor(views): Extract and reuse breadcrumb, flash message, and search input components**
- Added reusable templates for breadcrumbs, flash messages, and search inputs in `fragments`.
- Updated variant browser and curator views to utilize the new components, reducing redundancy.
- Simplified and centralized layout structures for improved maintainability.
* **refactor(views): Extract and reuse breadcrumb, flash message, and search input components**
- Added reusable templates for breadcrumbs, flash messages, and search inputs in `fragments`.
- Updated variant browser and curator views to utilize the new components, reducing redundancy.
- Simplified and centralized layout structures for improved maintainability.
* feat(tree): add user opt-in preference for block layout
This feature allows users to toggle between the standard tree layout and the block layout on the main tree pages. The preference is saved in a cookie and respected across sessions.
* **refactor(sql): Optimize variant migration script for performance and clarity**
- Added a temporary index to speed up grouping and joining during variant migration.
- Combined variant name and coordinates insertion into a single pass.
- Simplified alias aggregation using filtered JSONB operations.
- Improved maintainability by removing redundant steps and optimizing query structure.
- Dropped temporary index after migration steps to clean up.
* **refactor(views/controllers): Simplify variant and haplogroup pagination with dynamic fragment loading**
- Replaced server-side pagination logic for variants and haplogroups with HTMX-driven fragment updates for improved responsiveness.
- Simplified controller actions and templates, removing unused parameters and reducing complexity.
- Added loading spinner and placeholder text for better user experience during content updates.
* **chore(models): Remove deprecated STR Marker model and table**
- Deleted `StrMarker` model and its corresponding table definition.
- Cleaned up related dependencies and imports, reflecting the shift away from legacy STR marker handling.
* **feat(variants): Add smart ingestion and deduplication for YBrowse variants**
- Introduced `findMatches` method in `VariantV2Repository` for matching variants by coordinates or aliases.
- Enhanced `YBrowseVariantIngestionService` to support GFF3 ingestion with coordinate normalization, alias grouping, and liftover handling.
- Added `smartUpsertVariant` logic to merge or create variants based on matching results.
- Improved metadata merging for aliases, coordinates, evidence, and primers during upsert process.
- Included support for parsing and processing Y-DNA variants from both VCF and GFF files, with batch processing for efficiency.
* **refactor(sql): Optimize and consolidate variant migration script for better performance and maintainability**
- Enhanced migration with GIN index management for faster inserts.
- Redesigned aggregation queries using Common Table Expressions (CTEs) for aliases and coordinates.
- Simplified deduplication steps for `haplogroup_variant` FK updates.
- Added verification and manual cleanup steps for improved integrity and safety.
* Fixing some SQL issues
* Enhance the block tree layout to use SVG and similar design language to the original.
* Search the tree by SNP name as well as subclade name
* Using the more correct terminology for cladograms
* Fixing the download location. Was still trying to refer to the VCF.
* Reducing the number of connections from the pool we allow the variant ingestion to use. Prioritizing the user experience.
* Fixing some UI odditities
* Remove dead code
* Split the DB side OR to live in the application code. It was causing problems with PostgreSQL's planner and inducing full table scans.
* Try optimizing the queries.
* Comment out the logging to reduce noise. Need to rethink it so we still see progress, but not tons of 0 new variants. This is the DEFAULT case.
* Back to logging total records examined, since the Perf issues seems resolved.
* Split the universal variant details into smaller chunks retaining the original as a link source to the final status.1 parent fec7079 commit 36ae780
File tree
131 files changed
+5936
-7643
lines changed- app
- actors
- config
- controllers
- models
- api
- genomics
- dal
- domain
- genomics
- haplogroups
- domain/genomics
- modules
- repositories
- services
- genomics
- utils
- views
- admin/genomics
- auth
- components
- curator
- audit
- cytobands
- genomeregions
- haplogroups
- strmarkers
- variants
- fragments
- variant
- publicationCandidates
- publications
- support
- admin
- user
- variants
- conf
- evolutions/default
- documents
- deployment
- planning
- proposals
- schema
- scripts
- test/services
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
131 files changed
+5936
-7643
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | | - | |
| 70 | + | |
72 | 71 | | |
73 | 72 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
83 | 76 | | |
84 | 77 | | |
85 | 78 | | |
86 | 79 | | |
87 | 80 | | |
88 | 81 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
104 | 97 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 98 | + | |
| 99 | + | |
109 | 100 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 101 | + | |
115 | 102 | | |
116 | | - | |
117 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
118 | 107 | | |
119 | 108 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
127 | 112 | | |
128 | 113 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 114 | + | |
| 115 | + | |
142 | 116 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
148 | 121 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
198 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
199 | 131 | | |
200 | | - | |
201 | 132 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
209 | 140 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
216 | 145 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | 146 | | |
247 | 147 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments