Skip to content

Commit c77aae8

Browse files
committed
address #167
1 parent 0eaf7f8 commit c77aae8

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ type Props = {
1212
export const RefGenomeModal = (props: Props) => {
1313
const { show, onHide, genomeStats } = props;
1414

15-
console.log(genomeStats.compared_genome);
16-
1715
return (
1816
<Modal
1917
animation={false}

ui/src/pages/bed-splash.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,18 @@ export const BedSplash = () => {
171171
{snakeToTitleCase(k)}
172172
</td>
173173
<td style={{ maxWidth: '120px' }} className="truncate">
174-
{value ?? 'N/A'}
174+
{ k === 'global_sample_id' ?
175+
value.includes('encode:') ? <a href={'https://www.encodeproject.org/files/' + value.replace('encode:', '')}>{value}</a> :
176+
value.includes('geo:') ? <a href={'https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=' + value.replace('geo:', '')}>{value}</a> :
177+
value ?? 'N/A'
178+
:
179+
k === 'global_experiment_id' ?
180+
value.includes('encode') ? <a href={'https://www.encodeproject.org'}>{value}</a> :
181+
value.includes('geo:') ? <a href={'https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=' + value.replace('geo:', '')}>{value}</a> :
182+
value ?? 'N/A'
183+
:
184+
value ?? 'N/A'
185+
}
175186
</td>
176187
</tr>
177188
);

0 commit comments

Comments
 (0)