Skip to content

Commit

Permalink
Merge pull request hms-dbmi-cellenics#518 from biomage-org/add-suppor…
Browse files Browse the repository at this point in the history
…t-for-parse

Add support for parse
  • Loading branch information
cosa65 authored Dec 21, 2023
2 parents cb5a71c + 542217d commit ded3d54
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api.v2/helpers/s3/signedUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ const fileNameToReturn = {
rhapsody: 'expression_data.st.gz',
seurat: 'r.rds',
'10x_h5': 'matrix.h5.gz',
featuresParse: 'all_genes.csv.gz',
barcodesParse: 'cell_metadata.csv.gz',
matrixParse: 'DGE.mtx.gz',
};

const getSampleFileDownloadUrl = async (experimentId, sampleId, fileType) => {
Expand Down
1 change: 1 addition & 0 deletions src/specs/models/samples-bodies/CreateSamples.v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ items:
- pattern: ^rhapsody$
- pattern: ^10x_h5$
- pattern: ^seurat$
- pattern: ^parse$
options:
type: object

Expand Down
15 changes: 15 additions & 0 deletions src/sql/migrations/20231218171424_add_parse_technology.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.up = async (knex) => {
await knex.raw("ALTER TYPE sample_technology ADD VALUE 'parse';");
await knex.raw("ALTER TYPE sample_file_type ADD VALUE 'matrixParse';");
await knex.raw("ALTER TYPE sample_file_type ADD VALUE 'barcodesParse';");
await knex.raw("ALTER TYPE sample_file_type ADD VALUE 'featuresParse';");
};

/**
* @returns { Promise < void> }
*/
exports.down = async () => { };

0 comments on commit ded3d54

Please sign in to comment.