Commit d8d8b69a authored by Imran Salam's avatar Imran Salam
Browse files

Fix TranscriptPGCs type

parent 4131bb6e
Pipeline #196053 passed with stages
in 4 minutes and 35 seconds
......@@ -18,6 +18,7 @@ import { Pick2, Pick3 } from 'ts-multipick';
import type { FullGene } from 'src/shared/types/thoas/gene';
import type { FullTranscript } from 'src/shared/types/thoas/transcript';
import { FullProductGeneratingContext } from 'src/shared/types/thoas/productGeneratingContext';
type GeneFields = Pick<
FullGene,
......@@ -29,12 +30,12 @@ type GeneSlice = Pick3<FullGene, 'slice', 'region', 'name'> &
Pick3<FullGene, 'slice', 'strand', 'code'>;
type TranscriptFields = Pick<FullTranscript, 'stable_id'>;
type TranscriptSlice = Pick3<FullTranscript, 'slice', 'location', 'length'>;
type TranscriptPGCs = Pick3<
FullTranscript,
'product_generating_contexts',
number,
'product_type'
>;
type TranscriptPGCs = {
product_generating_contexts: Pick<
FullProductGeneratingContext,
'product_type'
>[];
};
type TranscriptMetadata = Pick3<
FullTranscript,
'metadata',
......
......@@ -131,9 +131,7 @@ const getTranscriptTrackColour = (
const prepareTranscriptsTrackData = (
gene: TrackPanelGeneType
): EnsObjectTrack[] => {
const sortedTranscripts = defaultSort(
gene.transcripts
) as TrackPanelTranscriptType[];
const sortedTranscripts = defaultSort(gene.transcripts);
return sortedTranscripts.map((transcript, index) => ({
label: transcript.stable_id,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment