Skip to content

Commit

Permalink
Merge pull request #10 from simularium/update-traj-links
Browse files Browse the repository at this point in the history
Update traj links
  • Loading branch information
blairlyons authored Oct 23, 2024
2 parents 85aed8e + 3cba503 commit a0fc9ab
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,12 @@ function createInset(g, width, height, a, b, invert) {
}

function individualVizLink(simulator, velocity, replicate) {
let base_link = `https://simularium.allencell.org/viewer?trajUrl=https://${simulator.toLowerCase()}-working-bucket.s3.us-west-2.amazonaws.com`
let series = (velocity === "0000") ? "NO_COMPRESSION" : "COMPRESSION_VELOCITY"
if (simulator.toLowerCase() == "readdy") {
series = `ACTIN_${series}`
}
let base_link = `https://simularium.allencell.org/viewer?trajUrl=https://allencell.s3.amazonaws.com/aics/subcellular_model_simulations/subcellular_model_simulations_actin_comparison`
let simulation = simulator.toLowerCase() == "readdy" ? `monomer_scale_readdy` : `fiber_scale_cytosim`
let series = (velocity === "0000") ? `ACTIN_NO_COMPRESSION` : `ACTIN_COMPRESSION_VELOCITY`
let velocity_name = (velocity === "0000") ? "" : "_" + velocity
let replicate_name = "00000" + (Number(replicate) + 1)
return `${base_link}/${series}/viz/${series}${velocity_name}_${replicate_name}.simularium`
return `${base_link}/${simulation}/${series}/viz/${series}${velocity_name}_${replicate_name}.simularium`
}

function formatVelocity(velocity) {
Expand Down

0 comments on commit a0fc9ab

Please sign in to comment.