Skip to content

Commit

Permalink
PIXI-157: Need to supply the url for patient derived tumors.
Browse files Browse the repository at this point in the history
  • Loading branch information
andylassiter committed Dec 19, 2024
1 parent bcffb01 commit 65bb70c
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ XNAT.plugin.pixi.pdxs = getObject(XNAT.plugin.pixi.pdxs || {});
}

class XenograftManager {
constructor(xenograftType) {
constructor(xenograftType, urlRoot) {
this.xenograftType = xenograftType;
this.urlRoot = urlRoot;
this.data = [];
}

url(append) {
let url = '/xapi/pixi/' + this.xenograftType.toLowerCase().replaceAll(/\s/g,'') + '/';
let url = this.urlRoot
url = append ? url + append : url;
return restUrl(url);
}
Expand Down Expand Up @@ -354,7 +355,7 @@ XNAT.plugin.pixi.pdxs = getObject(XNAT.plugin.pixi.pdxs || {});

class PDXManager extends XenograftManager {
constructor() {
super('Patient-Derived Tumor');
super('Patient-Derived Tumor', '/xapi/pixi/pdx/');
}

getSpawnerElements() {
Expand All @@ -374,7 +375,7 @@ XNAT.plugin.pixi.pdxs = getObject(XNAT.plugin.pixi.pdxs || {});

class CellLineManager extends XenograftManager {
constructor() {
super('Cell Line');
super('Cell Line', '/xapi/pixi/cellline/');
}

getSpawnerElements() {
Expand Down

0 comments on commit 65bb70c

Please sign in to comment.