Skip to content

Commit

Permalink
Fix structure prefix for tools/re* pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Feb 20, 2024
1 parent bd6a99c commit 1406e6f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/routes/jobs.$id.tools.reclustfcc.$module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => {
scatterSelection,
boxSelection,
moduleName: "clustfcc",
structurePrefix: "../../files/output/",
structurePrefix: `/jobs/${jobid}/files/output/foo/bar/`,
});
}

Expand Down
2 changes: 1 addition & 1 deletion app/routes/jobs.$id.tools.reclustrmsd.$module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => {
scatterSelection,
boxSelection,
moduleName: "clustrmsd",
structurePrefix: "../../files/output/",
structurePrefix: `/jobs/${jobId}/files/output/foo/bar/`,
});
}
return json({
Expand Down
7 changes: 6 additions & 1 deletion app/routes/jobs.$id.tools.rescore.$module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => {
moduleIndexPadding,
scatterSelection,
boxSelection,
structurePrefix: "../../files/output/",
// report.html has path to pdb of ../../11_seletopclusts/cluster_2_model_1.pdb.gz
// this page is rendered at /jobs/52/tools/rescore/12?i=1
// the pdb file can be downloaed at /jobs/52/files/output/11_seletopclusts/cluster_1_model_1.pdb.gz
// so we need to do some path manipulation,
// with foo/bar/ negating the ../../ in the path
structurePrefix: `/jobs/${jobId}/files/output/foo/bar/`,
});
return json({
moduleIndex,
Expand Down

0 comments on commit 1406e6f

Please sign in to comment.