@@ -60,8 +60,6 @@ import {
60
60
AnnotatedMutation ,
61
61
AnnotatedStructuralVariant ,
62
62
} from 'shared/model/AnnotatedMutation' ;
63
- import { StructuralVariantFilterExt } from 'shared/model/Fusion' ;
64
- import { StructuralVariantFilter } from 'cbioportal-ts-api-client/src' ;
65
63
66
64
type Omit < T , K extends keyof T > = Pick < T , Exclude < keyof T , K > > ;
67
65
@@ -960,48 +958,3 @@ export function getGeneAndProfileChunksForRequest(
960
958
profileChunks : _ . chunk ( profileIds , profilesPerChunk ) ,
961
959
} ;
962
960
}
963
-
964
- export function getStructuralVariantProfile ( studyId : string ) {
965
- return studyId + '_structural_variants' ;
966
- }
967
-
968
- export function getParamsForStructuralVariants (
969
- genes : Gene [ ] ,
970
- selectedMolecularProfiles : MolecularProfile [ ] | undefined ,
971
- samples : Sample [ ] | undefined
972
- ) {
973
- const params : StructuralVariantFilterExt = { entrezGeneIds : [ ] } ;
974
- if ( genes ) {
975
- params . entrezGeneIds = _ . chain ( genes )
976
- . map ( gene => gene . entrezGeneId )
977
- . compact ( )
978
- . value ( ) ;
979
- }
980
- // compose request parameters
981
- if ( samples ) {
982
- // get sample molecular identifiers
983
- const sampleMolecularIds = samples . map ( sample => {
984
- return {
985
- molecularProfileId : getStructuralVariantProfile ( sample . studyId ) ,
986
- sampleId : sample . sampleId ,
987
- } ;
988
- } ) ;
989
- params . sampleMolecularIdentifiers = sampleMolecularIds ;
990
- } else {
991
- // get molecular profile ids
992
- if ( selectedMolecularProfiles ) {
993
- const molecularProfiles = selectedMolecularProfiles
994
- . filter ( profile => {
995
- return (
996
- profile . molecularAlterationType ===
997
- AlterationTypeConstants . STRUCTURAL_VARIANT
998
- ) ;
999
- } )
1000
- . map ( profile => {
1001
- return profile . molecularProfileId ;
1002
- } ) ;
1003
- params . molecularProfileIds = molecularProfiles ;
1004
- }
1005
- }
1006
- return params as StructuralVariantFilter ;
1007
- }
0 commit comments