Skip to content

Commit

Permalink
adding alphafold links in browse by protein
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-salazar committed Feb 23, 2024
1 parent 8351e46 commit 3b1cc90
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/pages/Protein/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ class List extends PureComponent /*:: <ListProps> */ {
</>
)}
/>

<Column
dataKey="name"
renderer={(
Expand Down Expand Up @@ -357,6 +356,29 @@ class List extends PureComponent /*:: <ListProps> */ {
>
Length
</Column>
<Column
dataKey="in_alphafold"
renderer={(inAlphafold, { accession }) =>
inAlphafold ? (
<Link
to={{
description: {
main: { key: 'protein' },
protein: {
db: 'uniprot',
accession,
detail: 'alphafold',
},
},
}}
>
View predicted structure
</Link>
) : null
}
>
AlphaFold
</Column>{' '}
</Table>
</section>
</div>
Expand Down

0 comments on commit 3b1cc90

Please sign in to comment.