INNER CODE UNIT · JavaScript

bytes

oncologylab/fp-tools · src/fp_tools/resources/static_browser/app.js:137

  const bytes = Uint8Array.from(atob(payloadB64), (character) =>
      character.charCodeAt(0),
    ),
    stream = new Blob([bytes])
      .stream()
      .pipeThrough(new DecompressionStream("gzip"));
  return JSON.parse(await new Response(stream).text());
}

function payloadHasAggregates(payload) {
  return Boolean(payload?.aggregate?.motifs?.length);
}

function embeddedMetadata(review) {
  const comparisons = (review.comparisons || []).map((record, index) => {
      const payload = record.payload || {},
        conditions = payload.conditions || ["condition1", "condition2"];
      return {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…