You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+91-8Lines changed: 91 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# STAMP v.1.3.
1
+
# STAMP v2.0
2
2
3
-
[STAMP](http://www.benoslab.pitt.edu/stamp/) is a tool for characterizing similarities between transcription factor binding motifs.
3
+
[STAMP](https://github.com/seqcode/stamp) is a tool for characterizing similarities between transcription factor binding motifs. STAMP includes both a command-line tool for motif comparison and a web platform for interactive analysis, visualization, and database matching.
4
4
5
-
You can also use the formatMotifs.pl script to convert the outputs from various motif-finders into the format used by STAMP.
5
+
You can also use the formatMotifs.pl script to convert the outputs from various motif-finders into the format used by STAMP.
6
6
7
7
8
8
## Building STAMP:
@@ -119,8 +119,93 @@ the **formatMotifs.pl** script.
119
119
[List of input formats](http://www.benoslab.pitt.edu/stamp/help.html#input):
120
120
121
121
122
+
## Web Server
123
+
124
+
STAMP v2.0 includes a web platform (in the `web/` directory) that wraps the STAMP command-line tool in an interactive application. Users can submit motif analysis jobs, visualize results, and match motifs against reference databases — all through a browser.
125
+
126
+
### Quick Start (Docker)
127
+
128
+
The easiest way to run the web platform is with Docker Compose:
129
+
130
+
```bash
131
+
cd web/docker
132
+
docker compose up
133
+
```
134
+
135
+
This starts the web server (port 3000), a background worker, MongoDB, and Redis. Copy `web/.env.example` to `web/.env.local` and configure as needed before starting.
136
+
137
+
### Quick Start (Development)
138
+
139
+
Prerequisites: Node.js >= 20, MongoDB, Redis, and the compiled STAMP binary.
140
+
141
+
```bash
142
+
cd web
143
+
cp .env.example .env.local # edit with your local paths
144
+
npm install
145
+
npm run dev # Next.js dev server on port 3000
146
+
npm run worker:dev # background job processor (separate terminal)
147
+
```
148
+
149
+
### Architecture Overview
150
+
151
+
The web platform is built with:
152
+
153
+
***Next.js 14** (App Router) — serves both the React frontend and REST API routes
***Worker process** — picks jobs from the queue, invokes the STAMP binary, parses output, and stores results
157
+
158
+
**Motif input** supports six formats: TRANSFAC, MEME, JASPAR, TF-MoDISco, consensus, and aligned FASTA. Formats are auto-detected on upload.
159
+
160
+
**Database matching** compares input motifs against reference databases synced from JASPAR, CIS-BP, HOCOMOCO v14, and Vierstra motif archetypes. An admin dashboard manages database synchronization.
161
+
162
+
**Results** include interactive D3-based sequence logos, a phylogenetic tree viewer, pairwise and multiple alignment viewers, and database match tables. Results can be downloaded as a self-contained HTML report or a ZIP archive.
0 commit comments