diff --git a/src/app.test.ts b/src/app.test.ts index da83c93..f912241 100644 --- a/src/app.test.ts +++ b/src/app.test.ts @@ -629,16 +629,26 @@ describe('Express app (without Arranger)', () => { it('should return 200 if Authorization header contains valid token and no error occurs', async () => { const sampleGeneExp: SampleGeneExpVolcano = { data: [ - { sample_id: 'bs-aa000aaa', x: 1, y: 2.4399124042981217 }, + { + sample_id: 'bs-aa000aaa', + x: 1, + y: 2.4399124042981217, + age_at_biospecimen_collection_years: 1.6, + sex: 'Female', + }, { sample_id: 'bs-bbbb11b1', x: 0, y: 0.90884870449667, + age_at_biospecimen_collection_years: 2.7, + sex: 'Male', }, { sample_id: 'bs-ccc22cc2', x: 1, y: 0.909129052666039, + age_at_biospecimen_collection_years: 3.9, + sex: 'Female', }, ], ensembl_gene_id: 'ENSG00000272368.2', diff --git a/src/endpoints/transcriptomics/index.test.ts b/src/endpoints/transcriptomics/index.test.ts index 8200c58..8d3eb64 100644 --- a/src/endpoints/transcriptomics/index.test.ts +++ b/src/endpoints/transcriptomics/index.test.ts @@ -269,6 +269,7 @@ describe('Transcriptomics', () => { x: 1, y: 2.4399124042981217, age_at_biospecimen_collection_years: 1.6, + sex: 'Female', }, }, { @@ -281,6 +282,7 @@ describe('Transcriptomics', () => { x: 0, y: 0.90884870449667, age_at_biospecimen_collection_years: 2.7, + sex: 'Male', }, }, { @@ -293,6 +295,7 @@ describe('Transcriptomics', () => { x: 1, y: 0.909129052666039, age_at_biospecimen_collection_years: 3.9, + sex: 'Female', }, }, ], @@ -301,16 +304,26 @@ describe('Transcriptomics', () => { const expectedResponse: SampleGeneExpVolcano = { data: [ - { sample_id: 'bs-aa000aaa', x: 1, y: 2.4399124042981217 }, + { + sample_id: 'bs-aa000aaa', + x: 1, + y: 2.4399124042981217, + age_at_biospecimen_collection_years: 1.6, + sex: 'Female', + }, { sample_id: 'bs-bbbb11b1', x: 0, y: 0.90884870449667, + age_at_biospecimen_collection_years: 2.7, + sex: 'Male', }, { sample_id: 'bs-ccc22cc2', x: 1, y: 0.909129052666039, + age_at_biospecimen_collection_years: 3.9, + sex: 'Female', }, ], ensembl_gene_id: 'ENSG00000272368.2', diff --git a/src/endpoints/transcriptomics/index.ts b/src/endpoints/transcriptomics/index.ts index 0f8855d..880a059 100644 --- a/src/endpoints/transcriptomics/index.ts +++ b/src/endpoints/transcriptomics/index.ts @@ -80,7 +80,7 @@ export const fetchSampleGeneExp = async (ensembl_gene_id: string): Promise