Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-web
ensembl-client
Commits
c3fb8320
Unverified
Commit
c3fb8320
authored
Feb 15, 2021
by
Andrey Azov
Committed by
GitHub
Feb 15, 2021
Browse files
Use unversioned gene id when generating url for EntityViewer in Gene Summary drawer (#458)
parent
141bb080
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/ensembl/src/content/app/browser/drawer/drawer-views/gene-summary/GeneSummary.tsx
.../browser/drawer/drawer-views/gene-summary/GeneSummary.tsx
+3
-1
src/ensembl/src/content/app/browser/drawer/drawer-views/transcript-summary/TranscriptSummary.tsx
...wer/drawer-views/transcript-summary/TranscriptSummary.tsx
+3
-3
No files found.
src/ensembl/src/content/app/browser/drawer/drawer-views/gene-summary/GeneSummary.tsx
View file @
c3fb8320
...
...
@@ -40,6 +40,7 @@ const GENE_QUERY = gql`
alternative_symbols
name
stable_id
unversioned_stable_id
symbol
so_term
transcripts {
...
...
@@ -62,6 +63,7 @@ type Gene = Required<
Pick
<
GeneFromGraphql
,
|
'
stable_id
'
|
'
unversioned_stable_id
'
|
'
symbol
'
|
'
name
'
|
'
alternative_symbols
'
...
...
@@ -96,7 +98,7 @@ const GeneSummary = () => {
const
focusId
=
buildFocusIdForUrl
({
type
:
'
gene
'
,
objectId
:
gene
.
stable_id
as
string
objectId
:
gene
.
unversioned_stable_id
});
const
entityViewerUrl
=
urlFor
.
entityViewer
({
genomeId
:
ensObjectGene
.
genome_id
,
...
...
src/ensembl/src/content/app/browser/drawer/drawer-views/transcript-summary/TranscriptSummary.tsx
View file @
c3fb8320
...
...
@@ -174,7 +174,7 @@ const TranscriptSummary = () => {
const
focusId
=
buildFocusIdForUrl
({
type
:
'
gene
'
,
objectId
:
gene
.
unversioned_stable_id
as
string
objectId
:
gene
.
unversioned_stable_id
});
const
entityViewerUrl
=
urlFor
.
entityViewer
({
...
...
@@ -183,11 +183,11 @@ const TranscriptSummary = () => {
});
const
uniprotXref
=
product
?.
external_references
.
find
(
(
xref
)
=>
xref
.
source
.
id
==
'
Uniprot/SWISSPROT
'
(
xref
)
=>
xref
.
source
.
id
==
=
'
Uniprot/SWISSPROT
'
);
const
ccdsXref
=
transcript
.
external_references
.
find
(
(
xref
)
=>
xref
.
source
.
id
==
'
CCDS
'
(
xref
)
=>
xref
.
source
.
id
==
=
'
CCDS
'
);
const
splicedRNALength
=
getCommaSeparatedNumber
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment