PRINT is a React + TypeScript web tool for integrating and exploring plant gene regulatory interactions with pathway and GO annotations.
The application integrates three interaction evidence sources:
TARGETCHIPDAP
And enriches those interactions with:
- Gene ID to symbol mapping
- Process annotations
- GO annotations
The frontend can load data from:
- Supabase tables (preferred for production)
- Static files in
public/data/(fallback)
Requirements:
- Node.js 18+
Install and run:
npm install
npm run devBuild check:
npm run buildStatic dataset files (fallback mode):
public/data/target.tsvpublic/data/chip.tsvpublic/data/dap.part01.tsv...public/data/dap.partNN.tsvpublic/data/mapping.tsvpublic/data/process.txtpublic/data/go_annotations.tsv
Raw files too large for static hosting are kept outside deploy assets:
docs/raw_data/
Set these variables in .env.local or your deployment environment:
VITE_SUPABASE_URL=https://<project-ref>.supabase.co
VITE_SUPABASE_ANON_KEY=<anon-jwt>
VITE_SUPABASE_INTEGRATED_VIEW=print_interactions_integrated_mat
VITE_SUPABASE_STATS_VIEW=print_interaction_stats_mat
VITE_SUPABASE_TF_OPTIONS_VIEW=print_tf_options_mat
VITE_SUPABASE_ENRICHMENT_VIEW=print_tf_target_sets_mat
VITE_SUPABASE_INITIAL_ROWS=10000
# Optional table names (defaults shown)
VITE_SUPABASE_INTERACTIONS_TABLE=print_interactions
VITE_SUPABASE_MAPPING_TABLE=print_gene_mapping
VITE_SUPABASE_PROCESS_TABLE=print_process_annotations
VITE_SUPABASE_GO_TABLE=print_go_annotationsCanonical DB setup and import guide:
docs/supabase/README.md
docs/supabase/README.md: full SQL + import runbookdocs/REGLAS_DISENO_PRINT.md: design rulesscripts/prepareSupabaseCsv.mjs: generates CSVs for manual Supabase uploadscripts/wipeSupabaseTables.mjs: wipes target Supabase tables
Run before opening PR:
npm run build
git statusEnsure you do not commit generated artifacts:
upload/supabase/.temp/
For Cloudflare Pages, verify the project is deploying the latest commit on main and the output directory is dist.
- local
.env*
- Work from
devusingfeature/*branches. - Open PRs to
devfirst. - Merge
devtomainonly when stable.