Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-web
ensembl-client
Commits
8c8271e0
Unverified
Commit
8c8271e0
authored
Aug 19, 2021
by
Ridwan Amode
Committed by
GitHub
Aug 19, 2021
Browse files
Enable download of cDNA sequences for non-coding transcripts (#554)
parent
7832200c
Pipeline
#186058
passed with stages
in 4 minutes and 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
src/ensembl/src/shared/components/instant-download/instant-download-fetch/fetchSequenceChecksums.ts
...download/instant-download-fetch/fetchSequenceChecksums.ts
+14
-10
src/ensembl/src/shared/components/instant-download/instant-download-transcript/InstantDownloadTranscript.tsx
...instant-download-transcript/InstantDownloadTranscript.tsx
+2
-2
No files found.
src/ensembl/src/shared/components/instant-download/instant-download-fetch/fetchSequenceChecksums.ts
View file @
8c8271e0
...
...
@@ -52,11 +52,11 @@ type TranscriptInResponse = {
};
cds
:
{
sequence
:
Sequence
;
};
}
|
null
;
product
:
{
stable_id
:
string
;
sequence
:
Sequence
;
};
}
|
null
;
}
>
;
};
...
...
@@ -168,14 +168,18 @@ const processTranscriptData = (transcript: TranscriptInResponse) => {
checksum
:
productGeneratingContext
.
cdna
.
sequence
.
checksum
,
label
:
`
${
stable_id
}
cdna`
},
cds
:
{
checksum
:
productGeneratingContext
.
cds
.
sequence
.
checksum
,
label
:
`
${
stable_id
}
cds`
},
protein
:
{
checksum
:
productGeneratingContext
.
product
.
sequence
.
checksum
,
label
:
`
${
productGeneratingContext
.
product
.
stable_id
}
pep`
}
cds
:
productGeneratingContext
.
cds
?
{
checksum
:
productGeneratingContext
.
cds
.
sequence
.
checksum
,
label
:
`
${
stable_id
}
cds`
}
:
undefined
,
protein
:
productGeneratingContext
.
product
?
{
checksum
:
productGeneratingContext
.
product
.
sequence
.
checksum
,
label
:
`
${
productGeneratingContext
.
product
.
stable_id
}
pep`
}
:
undefined
};
};
...
...
src/ensembl/src/shared/components/instant-download/instant-download-transcript/InstantDownloadTranscript.tsx
View file @
8c8271e0
...
...
@@ -98,7 +98,7 @@ export const filterTranscriptOptions = (
):
Partial
<
TranscriptOptions
>
=>
{
return
biotype
===
'
protein_coding
'
?
defaultTranscriptOptions
:
pick
(
defaultTranscriptOptions
,
[
'
genomicSequence
'
]);
:
pick
(
defaultTranscriptOptions
,
[
'
genomicSequence
'
,
'
cdna
'
]);
};
const
InstantDownloadTranscript
=
(
props
:
Props
)
=>
{
...
...
@@ -118,7 +118,7 @@ const InstantDownloadTranscript = (props: Props) => {
const
resetCheckboxes
=
()
=>
{
setIsGeneSequenceSelected
(
false
);
setTranscriptOptions
(
default
TranscriptOptions
);
setTranscriptOptions
(
filter
TranscriptOptions
(
biotype
)
);
};
const
onSubmit
=
async
()
=>
{
...
...
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