Skip to content

Commit

Permalink
add uniprot linkout to mygeneinfo box
Browse files Browse the repository at this point in the history
  • Loading branch information
acoffman committed Oct 29, 2024
1 parent e3a0651 commit 36e55e9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,23 @@
{{ info.symbol }} (ID: {{ info._id }})
</nz-descriptions-item>
<nz-descriptions-item nzTitle="UniProtKB ID">
{{ info.uniprot['Swiss-Prot'] }}
@if (
info.uniprot['Swiss-Prot'] && info.uniprot['Swiss-Prot'].trim()
) {
<cvc-link-tag
href="https://www.uniprot.org/uniprotkb/{{
info.uniprot['Swiss-Prot']
}}/entry"
tooltip="View in UniProt">
{{ info.uniprot['Swiss-Prot'] }}
</cvc-link-tag>
} @else {
<span
nz-typography
nzType="secondary"
>N/A</span
>
}
</nz-descriptions-item>
</nz-descriptions>
<nz-descriptions
Expand All @@ -44,20 +60,28 @@
{{ info.genomic_pos_hg19.end }}
</nz-descriptions-item>
</nz-descriptions>
<nz-descriptions
<nz-descriptions
nzBordered="true"
nzSize="small"
[nzColumn]="1">
<nz-descriptions-item nzTitle="Aliases">
{{ info.alias.join(', ') }}
</nz-descriptions-item>
<nz-descriptions-item nzTitle="Protein Domains">
<p nz-typography nzEllipsis nzExpandable [nzEllipsisRows]="3">
<p
nz-typography
nzEllipsis
nzExpandable
[nzEllipsisRows]="3">
{{ info.interproList.join(', ') }}
</p>
</nz-descriptions-item>
<nz-descriptions-item nzTitle="Pathways">
<p nz-typography nzEllipsis nzExpandable [nzEllipsisRows]="3">
<p
nz-typography
nzEllipsis
nzExpandable
[nzEllipsisRows]="3">
{{ info.pathwayList.join(', ') }}
</p>
</nz-descriptions-item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { NzGridModule } from 'ng-zorro-antd/grid'
import { NzTableModule } from 'ng-zorro-antd/table'
import { NzTypographyModule } from 'ng-zorro-antd/typography'
import { NzDescriptionsModule } from 'ng-zorro-antd/descriptions'
import { CvcLinkTagModule } from '@app/components/shared/link-tag/link-tag.module'

@NgModule({
declarations: [CvcMyGeneInfoComponent],
Expand All @@ -19,6 +20,7 @@ import { NzDescriptionsModule } from 'ng-zorro-antd/descriptions'
NzTableModule,
NzTypographyModule,
NzDescriptionsModule,
CvcLinkTagModule,
],
exports: [CvcMyGeneInfoComponent],
})
Expand Down

0 comments on commit 36e55e9

Please sign in to comment.