Skip to content

Commit

Permalink
get wsi url
Browse files Browse the repository at this point in the history
  • Loading branch information
HaneenT committed Sep 23, 2024
1 parent 3c8057d commit 300e870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SpatialViewer/viewConfigHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export const populateViewConfig = async (viewConfig, selectedDataset) => {
stringifiedConfig = stringifiedConfig.replace(/<DATA_FILE_URL>/gi, dataUrl);

if (selectedDataset["configtype"] === "Segmentation Masks & Pathomics Vectors") {
let wsiUrl = await getFileLink(relatedFiles[0]['packageid'] + "/" + relatedFiles[0]['filename']);
stringifiedConfig = stringifiedConfig.replace('<SEGMENTATION_MASK_NAME>', selectedDataset["filename"]);
stringifiedConfig = stringifiedConfig.replace('<SEGMENTATION_MASK_URL>', imageUrlResponse.data);
let wsiUrl = await getFileLink(relatedFiles[0]['packageid'] + "/" + relatedFiles[0]['filename']);
const loaders = await loadOmeTiff(wsiUrl.data);
const physicalSizeX = unit(loaders.metadata.Pixels.PhysicalSizeX, (loaders.metadata.Pixels.PhysicalSizeXUnit.replace(/[µ|?]/g, 'u'))).to("um").toNumber();
const physicalSizeY = unit(loaders.metadata.Pixels.PhysicalSizeY, (loaders.metadata.Pixels.PhysicalSizeYUnit.replace(/[µ|?]/g, 'u'))).to("um").toNumber();
Expand Down

0 comments on commit 300e870

Please sign in to comment.