diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index fd1585e..aea72d0 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -50,7 +50,7 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v1 - - name: Push offline mode to master + - name: Push Offline Mode to Master env: VITE_OFFLINE_VERSION: true run: | diff --git a/README.md b/README.md index 75f998c..04f4172 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,6 @@ A client-side WebAssembly pipeline for viral consensus sequence calling. Visit: https://niema-lab.github.io/ViralWasm-Consensus/ to run the pipeline. -To run the pipeline locally without internet, download the **offline** version of ViralWasm-Consensus. To do so, download the latest release / repository (https://github.com/Niema-Lab/ViralWasm-Consensus/archive/master.zip) and run the following command: +To run the pipeline locally without internet, download the **offline** version of ViralWasm-Consensus. To do so, download the latest release / repository (https://github.com/Niema-Lab/ViralWasm-Consensus/archive/master.zip), extract the folder, and click on the `run_website.py` file. -```python3 run_website.py``` +Note: You may be prompted with a firewall warning. Click "Allow Access" to run the pipeline. diff --git a/run_website.py b/run_website.py index 70d1fa8..070b6e6 100644 --- a/run_website.py +++ b/run_website.py @@ -2,9 +2,11 @@ import socketserver import subprocess import socket +import os PORT = 5000 -DIRECTORY = "dist" +# get current directory and set it as the directory to serve +DIRECTORY = os.path.dirname(os.path.realpath(__file__)) + "/dist" def kill_port_unix(port): command = f"lsof -i :{port} -t" diff --git a/src/App.jsx b/src/App.jsx index f785fa5..4cefa3c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,4 +1,4 @@ -// TODO: automatically create dist/ +// TODO: is manual release creation okay? // TODO: PWA? import React, { Component } from 'react' import Pako from 'pako'; @@ -575,7 +575,7 @@ export class App extends Component { return (
A serverless WebAssembly-based pipeline for consensus genome generation.
Uses minimap2 v{MINIMAP2_VERSION}, fastp v{FASTP_VERSION}, and ViralConsensus v{VIRAL_CONSENSUS_VERSION} via Biowasm.
A serverless WebAssembly-based pipeline for consensus genome generation.
Uses minimap2 v{MINIMAP2_VERSION}, fastp v{FASTP_VERSION}, and ViralConsensus v{VIRAL_CONSENSUS_VERSION} via Biowasm.
Source code & offline version: github.com/niema-lab/ViralWasm-Consensus.