@@ -207,6 +207,20 @@ export const buildOrganismAssemblyTaxonomyIds = (
207
207
} ;
208
208
} ;
209
209
210
+ /**
211
+ * Build props for the strain cell.
212
+ * @param organism - Organism entity.
213
+ * @returns Props to be used for the cell.
214
+ */
215
+ export const buildOrganismTaxonomicLevelStrain = (
216
+ organism : BRCDataCatalogOrganism
217
+ ) : ComponentProps < typeof C . NTagCell > => {
218
+ return {
219
+ label : "strains" ,
220
+ values : organism . taxonomicLevelStrain ,
221
+ } ;
222
+ } ;
223
+
210
224
/**
211
225
* Build props for the taxonomic group cell.
212
226
* @param entity - Organism or genome entity.
@@ -221,20 +235,111 @@ export const buildTaxonomicGroup = (
221
235
} ;
222
236
} ;
223
237
238
+ /**
239
+ * Build props for the class cell.
240
+ * @param organism - Organism entity.
241
+ * @returns Props to be used for the cell.
242
+ */
243
+ export const buildTaxonomicLevelClass = (
244
+ organism : BRCDataCatalogOrganism
245
+ ) : ComponentProps < typeof C . BasicCell > => {
246
+ return {
247
+ value : organism . taxonomicLevelClass ,
248
+ } ;
249
+ } ;
250
+
251
+ /**
252
+ * Build props for the family cell.
253
+ * @param organism - Organism entity.
254
+ * @returns Props to be used for the cell.
255
+ */
256
+ export const buildTaxonomicLevelFamily = (
257
+ organism : BRCDataCatalogOrganism
258
+ ) : ComponentProps < typeof C . BasicCell > => {
259
+ return {
260
+ value : organism . taxonomicLevelFamily ,
261
+ } ;
262
+ } ;
263
+
264
+ /**
265
+ * Build props for the genus cell.
266
+ * @param organism - Organism entity.
267
+ * @returns Props to be used for the cell.
268
+ */
269
+ export const buildTaxonomicLevelGenus = (
270
+ organism : BRCDataCatalogOrganism
271
+ ) : ComponentProps < typeof C . BasicCell > => {
272
+ return {
273
+ value : organism . taxonomicLevelGenus ,
274
+ } ;
275
+ } ;
276
+
277
+ /**
278
+ * Build props for the kingdom cell.
279
+ * @param organism - Organism entity.
280
+ * @returns Props to be used for the cell.
281
+ */
282
+ export const buildTaxonomicLevelKingdom = (
283
+ organism : BRCDataCatalogOrganism
284
+ ) : ComponentProps < typeof C . BasicCell > => {
285
+ return {
286
+ value : organism . taxonomicLevelKingdom ,
287
+ } ;
288
+ } ;
289
+
290
+ /**
291
+ * Build props for the order cell.
292
+ * @param organism - Organism entity.
293
+ * @returns Props to be used for the cell.
294
+ */
295
+ export const buildTaxonomicLevelOrder = (
296
+ organism : BRCDataCatalogOrganism
297
+ ) : ComponentProps < typeof C . BasicCell > => {
298
+ return {
299
+ value : organism . taxonomicLevelOrder ,
300
+ } ;
301
+ } ;
302
+
303
+ /**
304
+ * Build props for the phylum cell.
305
+ * @param organism - Organism entity.
306
+ * @returns Props to be used for the cell.
307
+ */
308
+ export const buildTaxonomicLevelPhylum = (
309
+ organism : BRCDataCatalogOrganism
310
+ ) : ComponentProps < typeof C . BasicCell > => {
311
+ return {
312
+ value : organism . taxonomicLevelPhylum ,
313
+ } ;
314
+ } ;
315
+
224
316
/**
225
317
* Build props for the species cell.
226
318
* @param organism - Organism entity.
227
319
* @returns Props to be used for the cell.
228
320
*/
229
- export const buildOrganismSpecies = (
321
+ export const buildTaxonomicLevelSpecies = (
230
322
organism : BRCDataCatalogOrganism
231
323
) : ComponentProps < typeof C . Link > => {
232
324
return {
233
- label : organism . species ,
325
+ label : organism . taxonomicLevelSpecies ,
234
326
url : `${ ROUTES . ORGANISMS } /${ encodeURIComponent ( getOrganismId ( organism ) ) } ` ,
235
327
} ;
236
328
} ;
237
329
330
+ /**
331
+ * Build props for the superkingdom cell.
332
+ * @param organism - Organism entity.
333
+ * @returns Props to be used for the cell.
334
+ */
335
+ export const buildTaxonomicLevelSuperkingdom = (
336
+ organism : BRCDataCatalogOrganism
337
+ ) : ComponentProps < typeof C . BasicCell > => {
338
+ return {
339
+ value : organism . taxonomicLevelSuperkingdom ,
340
+ } ;
341
+ } ;
342
+
238
343
/**
239
344
* Build props for the scaffold count cell.
240
345
* @param genome - Genome entity.
@@ -462,7 +567,7 @@ export const buildOrganismAssembliesHero = (
462
567
) : ComponentProps < typeof C . BackPageHero > => {
463
568
return {
464
569
breadcrumbs : getOrganismEntityAssembliesBreadcrumbs ( organism ) ,
465
- title : organism . species ,
570
+ title : organism . taxonomicLevelSpecies ,
466
571
} ;
467
572
} ;
468
573
@@ -593,7 +698,7 @@ function getOrganismEntityAssembliesBreadcrumbs(
593
698
) : Breadcrumb [ ] {
594
699
return [
595
700
{ path : ROUTES . ORGANISMS , text : "Organisms" } ,
596
- { path : "" , text : `${ organism . species } ` } ,
701
+ { path : "" , text : `${ organism . taxonomicLevelSpecies } ` } ,
597
702
{ path : "" , text : "Assemblies" } ,
598
703
] ;
599
704
}
0 commit comments