-
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.
restyled tabs, their content and footer/navbar
- Loading branch information
1 parent
12eafc1
commit 25912e7
Showing
6 changed files
with
77 additions
and
41 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
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,64 @@ | ||
<template> | ||
<table class="table statstable"> | ||
<template v-if="annotation"> | ||
<tr> | ||
<th scope="row">ID:</th> | ||
<td>{{ id }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Species:</th> | ||
<td>{{ species }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Strain:</th> | ||
<td>{{ annotation.genome.strain }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Genome size:</th> | ||
<td>{{ annotation.stats.size + " bp" }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">GC:</th> | ||
<td>{{ ratioToPercentage(annotation.stats.gc) }}</td> | ||
</tr> | ||
</template> | ||
<template v-else> | ||
<tr> | ||
<th scope="row">There is no bakta file availabe.</th> | ||
</tr> | ||
</template> | ||
<template v-if="checkm"> | ||
<tr> | ||
<th scope="row">Completeness:</th> | ||
<td>{{ checkm.quality.completeness + "%" }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Contamination:</th> | ||
<td>{{ checkm.quality.contamination + "%" }}</td> | ||
</tr> | ||
</template> | ||
<template v-else> | ||
<tr> | ||
<th scope="row">There is no checkm file available.</th> | ||
</tr> | ||
</template> | ||
</table> | ||
</template> | ||
<script setup lang="ts"> | ||
import type { BaktaResult } from "@/model/BaktaResults"; | ||
import type { CheckmResult } from "@/model/CheckmResults"; | ||
import { ratioToPercentage } from "@/util"; | ||
import { computed, type PropType } from "vue"; | ||
const props = defineProps({ | ||
annotation: { type: Object as PropType<BaktaResult> }, | ||
checkm: { type: Object as PropType<CheckmResult> }, | ||
id: { type: String }, | ||
}); | ||
const species = computed(() => { | ||
return props.annotation?.genome.genus + " " | ||
+ props.annotation?.genome.species.charAt(0).toLocaleUpperCase() + props.annotation?.genome.species.slice(1); | ||
}) | ||
</script> |
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