Skip to content

Commit

Permalink
Merge pull request #27 from Ecogenomics/dev
Browse files Browse the repository at this point in the history
R220
  • Loading branch information
aaronmussig authored Apr 23, 2024
2 parents 9218cc5 + 676fa6b commit 274609c
Show file tree
Hide file tree
Showing 30 changed files with 2,629 additions and 434 deletions.
3 changes: 3 additions & 0 deletions assets/api/genome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ export interface GenomeMetadataGene {
checkm_completeness: number
checkm_contamination: number
checkm_strain_heterogeneity: number
checkm2_completeness: number
checkm2_contamination: number
checkm2_model: string
lsu_5s_count: number
ssu_count: number
lsu_23s_count: number
Expand Down
1 change: 1 addition & 0 deletions assets/images/stats/r220/genome-category-per-rank.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/stats/r220/genomic-stats-genomes.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/stats/r220/genomic-stats-species.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/stats/r220/ncbi-compare-genomes.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/stats/r220/ncbi-compare-species.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/stats/r220/nomenclatural-per-rank.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/stats/r220/red-archaea-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/stats/r220/red-archaea.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/stats/r220/red-bacteria-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/stats/r220/red-bacteria.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/stats/r220/sp-rep-type.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions assets/models/taxon-history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export enum TaxonHistoryRelease {
R202 = "202",
R207 = "207",
R214 = "214",
R220 = "220",
NCBI = "NCBI"
}

Expand All @@ -22,6 +23,7 @@ export const TaxonHistoryReleases = [
TaxonHistoryRelease.R202,
TaxonHistoryRelease.R207,
TaxonHistoryRelease.R214,
TaxonHistoryRelease.R220,
TaxonHistoryRelease.NCBI
]

Expand Down
33 changes: 21 additions & 12 deletions components/advanced/SearchRule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,20 +176,29 @@ function sortText(a: string, b: string): number {
}
function sortColumns(a: Column, b: Column): number {
// Sort based on group (override)
if (a.group == b.group) {
return sortText(a.display, b.display)
// Priority order for groups
const order = ['General', 'Taxonomic Information', 'Genome Characteristics', 'NCBI Metadata'];
// If both columns are in the same group, sort by display text
if (a.group === b.group) {
return sortText(a.display, b.display);
} else {
if (a.group == 'General') {
return 1
} else if (a.group == 'Taxonomic Information') {
return 1
} else if (a.group == 'Genome Characteristics') {
return 1
} else if (a.group == 'NCBI Metadata') {
return 1
// Compare the groups by predefined order
const indexA = order.indexOf(a.group);
const indexB = order.indexOf(b.group);
// If both groups are found in the order array
if (indexA !== -1 && indexB !== -1) {
return indexA - indexB;
} else if (indexA !== -1) {
// Group A is in order array, but Group B is not
return -1;
} else if (indexB !== -1) {
// Group B is in order array, but Group A is not
return 1;
} else {
return sortText(a.group, b.group)
// Neither group is in the order array, sort alphabetically
return sortText(a.group, b.group);
}
}
}
Expand Down
Loading

0 comments on commit 274609c

Please sign in to comment.