Skip to content
Snippets Groups Projects
Commit e445f124 authored by Hartung, Michael's avatar Hartung, Michael
Browse files

tissue expression request to POST

parent 4bb1662e
No related branches found
Tags v0.9.4-rc4
No related merge requests found
...@@ -53,10 +53,11 @@ export class NetexControllerService { ...@@ -53,10 +53,11 @@ export class NetexControllerService {
*/ */
// slice prefix of netex id away for direct lookup in db, if node not mapped to db, replace by undefined // slice prefix of netex id away for direct lookup in db, if node not mapped to db, replace by undefined
const genesBackendIds = nodes.flatMap((node: Node) => node.drugstoneId ? node.drugstoneId : []).map((id: string | undefined) => id ? id.slice(1) : undefined); const genesBackendIds = nodes.flatMap((node: Node) => node.drugstoneId ? node.drugstoneId : []).map((id: string | undefined) => id ? id.slice(1) : undefined);
const params = new HttpParams() const payload = {
.set('tissue', tissue.drugstoneId) tissue: tissue.drugstoneId,
.set('proteins', JSON.stringify(genesBackendIds)); proteins: JSON.stringify(genesBackendIds)
return this.http.get(`${environment.backend}tissue_expression/`, {params}); }
return this.http.post(`${environment.backend}tissue_expression/`, payload);
} }
public adjacentDisorders(nodes: Node[], nodeType: string, dataset: string, licenced: boolean): Observable<any> { public adjacentDisorders(nodes: Node[], nodeType: string, dataset: string, licenced: boolean): Observable<any> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment