-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from ag-computational-bio/feature/add-statisti…
…cs-to-landing-page Feature/add statistics to landing page
- Loading branch information
Showing
12 changed files
with
263 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,5 @@ coverage | |
|
||
# Custom | ||
|
||
.notes.md | ||
.notes.md | ||
shell.nix |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { z } from "zod"; | ||
|
||
const KeywordCountSchema = z.object({ | ||
count: z.number(), | ||
key: z.string(), | ||
}); | ||
|
||
const KeywordCountsSchema = z.array(KeywordCountSchema); | ||
|
||
export type KeywordCountEntry = z.infer<typeof KeywordCountSchema>; | ||
export type KeywordCounts = z.infer<typeof KeywordCountsSchema>; | ||
|
||
export { KeywordCountSchema, KeywordCountsSchema }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { z } from "zod"; | ||
|
||
const RepositoryStatisticsSchema = z.object({ | ||
genera: z.number(), | ||
datasets: z.number(), | ||
species: z.number(), | ||
}); | ||
|
||
export type RepositoryStatistics = z.infer<typeof RepositoryStatisticsSchema>; | ||
|
||
export { RepositoryStatisticsSchema }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
<script setup lang="ts"></script> | ||
|
||
<template> | ||
<main class="container pt-5"> | ||
|
||
<div class="row"> | ||
<div class="col-md-12 col-lg-6"> | ||
<h2>BakRep</h2> | ||
<p> | ||
The large amount of bacterial genomic data in public genome databases | ||
is an important resource for research in various fields. However, most | ||
of this data has been processed differently, making accurate | ||
comparisons challenging. <em>Blackwell et al</em>., used a uniform | ||
approach to assemble and characterise 661,405 bacterial genomes | ||
retrieved from the European Nucleotide Archive (ENA) in November of | ||
2018. We build up on this resource and further analyse the assembled | ||
genomes in a standardised manner. We conducted a robust taxonomic | ||
classification using the Genome Taxonomy Database (GTDB) and | ||
furthermore subtyped all eligible genomes via multilocus-sequence | ||
typing. In addition we annotated all genomes assigning functional | ||
categories, e.g. COG and E.C., and database cross references to public | ||
databases. The overarching goal is to make this standardised resource | ||
available to non-bioinformaticians via an interactive website. This | ||
website will provide researchers with a flexible search engine to | ||
query the repository | ||
</p> | ||
</div> | ||
<div class="col-md-12 col-lg-6"> | ||
<img src="/krona_main.svg" class="w-100" /> | ||
</div> | ||
</div> | ||
</main> | ||
</template> | ||
|
||
<style></style> | ||
<script setup lang="ts"></script> | ||
|
||
<template> | ||
<main class="container pt-5"> | ||
<div class="row"> | ||
<div class="col-md-12 col-lg-6"> | ||
<h2>BakRep</h2> | ||
<p> | ||
The large amount of bacterial genomic data in public genome databases | ||
is an important resource for research in various fields. However, most | ||
of this data has been processed differently, making accurate | ||
comparisons challenging. <em>Blackwell et al</em>., used a uniform | ||
approach to assemble and characterise 661,405 bacterial genomes | ||
retrieved from the European Nucleotide Archive (ENA) in November of | ||
2018. We build up on this resource and further analyse the assembled | ||
genomes in a standardised manner. We conducted a robust taxonomic | ||
classification using the Genome Taxonomy Database (GTDB) and | ||
furthermore subtyped all eligible genomes via multilocus-sequence | ||
typing. In addition we annotated all genomes assigning functional | ||
categories, e.g. COG and E.C., and database cross references to public | ||
databases. The overarching goal is to make this standardised resource | ||
available to non-bioinformaticians via an interactive website. This | ||
website will provide researchers with a flexible search engine to | ||
query the repository | ||
</p> | ||
</div> | ||
<div class="col-md-12 col-lg-6"> | ||
<img src="/krona_main.svg" class="w-100" /> | ||
</div> | ||
</div> | ||
</main> | ||
</template> | ||
|
||
<style></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<script setup lang="ts"> | ||
import { type KeywordCounts } from "@/model/statistics/KeywordCounts"; | ||
import Plotly from "plotly.js-dist-min"; | ||
import type { Data, Layout } from "plotly.js-dist-min"; | ||
import { | ||
computed, | ||
type ComputedRef, | ||
onMounted, | ||
ref, | ||
onBeforeUnmount, | ||
} from "vue"; | ||
import type { PropType } from "vue"; | ||
const props = defineProps({ | ||
inputData: { type: Array as PropType<KeywordCounts>, required: true }, | ||
}); | ||
let data: Data[] = []; | ||
const reversedData: ComputedRef<KeywordCounts> = computed(() => | ||
[...props.inputData].reverse(), | ||
); | ||
data.push({ | ||
y: reversedData.value.map((item) => item.key), | ||
x: reversedData.value.map((item) => item.count), | ||
type: "bar", | ||
orientation: "h", | ||
name: "count", | ||
}); | ||
const layout: Partial<Layout> = { | ||
height: 800, | ||
yaxis: { | ||
automargin: true, | ||
}, | ||
xaxis: { | ||
type: "log", | ||
// autorange: true, | ||
}, | ||
}; | ||
const plot = ref(); | ||
onMounted(() => { | ||
Plotly.newPlot(plot.value, data, layout); | ||
}); | ||
onBeforeUnmount(() => { | ||
Plotly.purge(plot.value); | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div ref="plot"></div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<table class="w-50"> | ||
<tr v-for="(key, index) in Object.keys(entries)" :key="index"> | ||
<th scope="row"> | ||
{{ key.charAt(0).toLocaleUpperCase() + key.slice(1) }}: | ||
</th> | ||
<td>{{ entries[key] }}</td> | ||
</tr> | ||
</table> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import type { PropType } from "vue"; | ||
defineProps({ | ||
entries: { type: Object as PropType<Record<string, number>>, required: true }, | ||
}); | ||
</script> | ||
|
||
<style scoped> | ||
th { | ||
text-align: start; | ||
} | ||
td { | ||
text-align: start; | ||
} | ||
</style> |
Oops, something went wrong.