Skip to content

Commit a68595a

Browse files
committed
updated modal wording and updated autorun in genomestats query
1 parent 7fc1f59 commit a68595a

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

ui/src/components/bed-splash-components/refgenome-modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const RefGenomeModal = (props: Props) => {
3030
<ul className='text-sm'>
3131
<li><strong>XS</strong> (eXtra Sequences): the proportion of shared regions in both this BED file and reference genome over the total number of regions in this BED file [recall].</li>
3232
<li><strong>OOBR</strong> (Out Of Bounds Regions): The proportion of shared regions from this BED file that do not exceed the bounds of the corresponding shared region in the reference genome.</li>
33-
<li><strong>Sequence Fit</strong>: the proportion of shared region <span className='fst-italic'>lengths</span> in both this BED file and reference genome over the total number of region <span className='fst-italic'>lengths</span> in the reference genome [precision].</li>
33+
<li><strong>SF</strong> (Sequence Fit): the proportion of shared <span className='fst-italic'>region lengths</span> in both this BED file and reference genome over the total number of <span className='fst-italic'>region lengths</span> in the reference genome [precision].</li>
3434
</ul>
3535

3636
<div className='row mb-1'>
@@ -39,7 +39,7 @@ export const RefGenomeModal = (props: Props) => {
3939
<p className='mb-1' style={{width: '33%'}}>Genome</p>
4040
<p className='mb-1 mx-2' style={{width: '14%'}}>XS</p>
4141
<p className='mb-1 mx-2' style={{width: '14%'}}>OOBR</p>
42-
<p className='mb-1 mx-2' style={{width: '14%'}}>Sequence Fit</p>
42+
<p className='mb-1 mx-2' style={{width: '14%'}}>SF</p>
4343
<p className='mb-1 ms-auto'>Rank</p>
4444
</div>
4545
</div>

ui/src/pages/bed-splash.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export const BedSplash = () => {
3939
data: genomeStats,
4040
} = useBedGenomeStats({
4141
md5: bedId,
42-
autoRun: true,
4342
});
4443

4544
const { data: neighbours } = useBedNeighbours({

ui/src/queries/useBedGenomeStats.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,15 @@ type BedGenomeStatsQuery = {
1111

1212
export const useBedGenomeStats = (query: BedGenomeStatsQuery) => {
1313
const { api } = useBedbaseApi();
14-
const { md5, autoRun } = query;
15-
let enabled = false;
16-
if (autoRun !== undefined && autoRun && md5) {
17-
enabled = true;
18-
}
14+
const { md5 } = query;
1915

2016
return useQuery({
2117
queryKey: ['bed-genome-stats', md5],
2218
queryFn: async () => {
2319
const { data } = await api.get<BedGenomeStatsResponse>(`/bed/${md5}/genome-stats`);
2420
return data;
2521
},
26-
enabled: enabled,
22+
enabled: !!md5,
2723
staleTime: 0,
2824
});
2925
};

0 commit comments

Comments
 (0)