caelum0x 174222bcaa feat: Builder-Track named-user tools, bio + evidence-intelligence platform, Apache-2.0
Builds PaperTrail from the base skeleton into a full evidence-verification platform
for the "Built with Claude: Life Sciences" hackathon (Builder Track).

New named-user features (Build Beyond the Bench):
- Lab Notebook Companion — rough bench notes -> structured, searchable, grounded
  experiment records (lib/labNotebook, /console/lab-notebook, migration 0059)
- Clinical Trial Matcher — de-identified patient notes -> ranked eligible
  ClinicalTrials.gov trials with per-criterion inclusion/exclusion reasoning
  (lib/trialMatcher, /console/trial-matcher, migrations 0060)

Platform:
- Deterministic verification moat (biostats recompute, exact-span grounding)
- 11 biomedical evidence engines (FAERS, GWAS, Open Targets, ChEMBL, ClinVar,
  PharmGKB, PubTator, DDI, repurposing, biomarker, unified verifier)
- Evidence Intelligence (KG, dossier, provenance/export, RWE) + enterprise
  governance (RBAC, /api/v1 gateway, metering, audit chain, retention)
- 17 OSS projects assimilated into native TypeScript on our stack (backend/engines
  retained + credited in NOTICE)
- Multi-format upload (PDF/DOCX/XLSX/CSV/MD/TXT), logo, marketing site
- Next.js 16 upgrade, benchmark harness (honest smoke-test caveat)

Licensing: Apache-2.0 (LICENSE + NOTICE).
2026-07-10 16:23:13 +03:00

88 lines
2.8 KiB
Docker

FROM ubuntu:24.04
ARG BUILD_BRANCH
ARG READING_BRANCH
# Set working folder
ENV DIRPATH=/sw
WORKDIR $DIRPATH
RUN apt-get update && \
apt-get install -y openjdk-8-jdk git wget zip unzip bzip2 gcc \
graphviz graphviz-dev pkg-config python3 python3-pip \
python3.12-venv locales && \
locale-gen en_US.UTF-8 && \
ln -s /usr/bin/python3 /usr/bin/python && \
rm -rf /var/lib/apt/lists/*
# Set default character encoding
# See http://stackoverflow.com/questions/27931668/encoding-problems-when-running-an-app-in-docker-python-java-ruby-with-u/27931669
# See http://stackoverflow.com/questions/39760663/docker-ubuntu-bin-sh-1-locale-gen-not-found
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
# Set environment variables
ENV BNGPATH=$DIRPATH/BioNetGen-2.4.0
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# Create python virtual environment
ENV VENV_PATH=$DIRPATH/venv
RUN python3 -m venv $VENV_PATH
ENV PATH="$VENV_PATH/bin:$PATH"
ENV PIP_NO_CACHE_DIR=1
# Install INDRA and dependencies
RUN git clone https://github.com/gyorilab/indra.git && \
cd indra && \
git checkout $BUILD_BRANCH && \
git branch && \
mkdir -p /root/.config/indra && \
echo "[indra]" > /root/.config/indra/config.ini && \
# Install Python dependencies
pip install --upgrade pip setuptools wheel && \
pip install -e .[all] && \
# Pre-build the bio ontology
python -m indra.ontology.bio build && \
# Download Adeft models
python -m adeft.download && \
# Download protmapper resources
python -m protmapper.resources && \
# Install BioNetGen
cd $DIRPATH && \
wget "https://github.com/RuleWorld/bionetgen/releases/download/BioNetGen-2.4.0/BioNetGen-2.4.0-Linux.tgz" \
-O bionetgen.tar.gz -nv && \
tar xzf bionetgen.tar.gz
# Install indra_reading
RUN git clone https://github.com/indralab/indra_reading.git && \
cd indra_reading && \
git checkout $READING_BRANCH && \
echo $READING_BRANCH && \
pip install -e .
# Add and set up reading systems
# ------------------------------
# SPARSER
ENV SPARSERPATH=$DIRPATH/sparser
COPY r3.core $SPARSERPATH/r3.core
COPY save-semantics.sh $SPARSERPATH/save-semantics.sh
COPY version.txt $SPARSERPATH/version.txt
RUN chmod +x $SPARSERPATH/save-semantics.sh && \
chmod +x $SPARSERPATH/r3.core
# REACH
# Default character encoding for Java in Docker is not UTF-8, which
# leads to problems with REACH; so we set option
# See https://github.com/docker-library/openjdk/issues/32
ENV JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
ENV REACHDIR=$DIRPATH/reach
ENV REACHPATH=$REACHDIR/reach-1.6.3-e48717.jar
ENV REACH_VERSION=1.6.3-e48717
COPY reach-1.6.3-e48717.jar $REACHPATH
# MTI
COPY mti_jars.zip $DIRPATH
RUN mkdir -p $DIRPATH/mti_jars && \
unzip $DIRPATH/mti_jars.zip -d $DIRPATH/mti_jars/