Skip to content

Commit b9a1e43

Browse files
committed
Add analysisType to knowledge response structure in lipid-inter and sasa routes
1 parent 8fb6cd0 commit b9a1e43

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/routes/knowledge/lipid-inter/index.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ router.route('/').get( handler({ async retriever(request) {
215215
releaseDate: funschemaDate,
216216
pdbId: pdbReference.id,
217217
sourceId: request.params.project,
218+
analysisType: ANALYSIS_NAME,
218219
chains: finalPdbChains,
219220
// Set the sites list according to MemProtMD schema
220221
sites: [

‎src/routes/knowledge/sasa/index.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ router.route('/').get( handler({ async retriever(request) {
261261
releaseDate: funschemaDate,
262262
pdbId: referenceData.id,
263263
sourceId: request.params.project,
264+
analysisType: ANALYSIS_NAME,
264265
chains: pdbChains,
265266
sites: [
266267
{

‎src/routes/knowledge/shared.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const buildKnowledgeResponse = ({
1010
releaseDate,
1111
pdbId,
1212
sourceId,
13+
analysisType,
1314
chains,
1415
sites,
1516
}) => ({
@@ -21,6 +22,7 @@ const buildKnowledgeResponse = ({
2122
pdb_id: pdbId,
2223
additional_entry_annotations: {
2324
source_id: sourceId,
25+
annotation_type: analysisType,
2426
},
2527
chains,
2628
evidence_code_ontology: [{

0 commit comments

Comments
 (0)