Skip to content

Commit

Permalink
UPD/FIX various
Browse files Browse the repository at this point in the history
  • Loading branch information
eboileau committed Aug 9, 2024
1 parent d297d0e commit 00cea3d
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 4 deletions.
6 changes: 5 additions & 1 deletion client/src/components/modification/MicroRNASiteTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ function load(event) {
<Column field="source" header="Source"></Column>
<Column field="start" header="Start"></Column>
<Column field="end" header="End"></Column>
<Column field="score" header="Score"></Column>
<Column field="score">
<template #header>
<span v-tooltip.top="'context++ score percentile'">Score</span>
</template>
</Column>
<Column field="strand" header="Strand"></Column>
</DataTable>
</template>
6 changes: 5 additions & 1 deletion client/src/components/modification/RBPSiteTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ function load(event) {
<Column field="source" header="Source"></Column>
<Column field="start" header="Start"></Column>
<Column field="end" header="End"></Column>
<Column field="score" header="Score"></Column>
<Column field="score">
<template #header>
<span v-tooltip.top="'MSS score'">Score</span>
</template>
</Column>
<Column field="strand" header="Strand"></Column>
</DataTable>
</template>
11 changes: 10 additions & 1 deletion client/src/components/ui/DatasetSelectionMulti.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,16 @@ function getEmptyMessage() {
:selectionLimit="selectLimit"
:emptyMessage="getEmptyMessage()"
filter
:filterFields="['dataset_id', 'dataset_title', 'dataset_info']"
:filterFields="[
'dataset_id',
'dataset_title',
'project_title',
'project_id',
'rna',
'modomics_sname',
'cto',
'tech'
]"
optionValue="dataset_id"
optionLabel="dataset_id"
:placeholder="placeholder"
Expand Down
5 changes: 4 additions & 1 deletion client/src/views/SearchView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ onMounted(() => {
ref="dt"
:exportFilename="getFileName()"
lazy
paginator
:paginator="true"
:totalRecords="totalRecords"
:loading="loading"
:first="first"
Expand All @@ -416,6 +416,8 @@ onMounted(() => {
removableSort
sortMode="multiple"
stripedRows
paginatorTemplate="FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink"
currentPageReportTemplate="Showing {first} to {last} of {totalRecords} records"
>
<template #header>
<div style="text-align: right">
Expand All @@ -427,6 +429,7 @@ onMounted(() => {
raised
@click="onExport($event)"
:disabled="disabled"
v-tooltip.top="'Export current view'"
/>
</div>
</template>
Expand Down
1 change: 1 addition & 0 deletions server/src/scimodom/services/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def _generate_header(self, dataset: Dataset):
yield f"#bioinformatics_workflow={_or_default(dataset.bioinformatics_workflow, '')}\n"
yield f"#experiment={_or_default(dataset.experiment, '')}\n"
yield f"#external_source={_or_default(dataset.external_source, '')}\n"
yield f"#internal_source=EUFID:{dataset.id} SMID:{dataset.project_id}\n"
yield "#chrom\tchromStart\tchromEnd\tname\tscore\tstrand\tthickStart\tthickEnd\titemRgb\tcoverage\tfrequency\n"

def _generate_records(self, dataset: Dataset):
Expand Down
1 change: 1 addition & 0 deletions server/tests/unit/services/test_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def test_exporter(Session, dataset): # noqa
#bioinformatics_workflow=wf1
#experiment=experiment 1
#external_source=ext. source 1
#internal_source=EUFID:d1 SMID:12345678
#chrom\tchromStart\tchromEnd\tname\tscore\tstrand\tthickStart\tthickEnd\titemRgb\tcoverage\tfrequency
17\t100001\t100002\tm6A\t1000\t+\t100001\t100002\t128,128,0\t43\t100
Y\t200001\t200002\tm5C\t900\t-\t200001\t200002\t0,0,128\t44\t99
Expand Down

0 comments on commit 00cea3d

Please sign in to comment.