Refactor: Unified pipeline execution, simplified UI, and fixed Docker config

- Backend: Refactored tasks.py to directly invoke run_single_fna_pipeline.py for consistency.
- Backend: Changed output format to ZIP and added auto-cleanup of intermediate files.
- Backend: Fixed language parameter passing in API and tasks.
- Frontend: Removed CRISPR Fusion UI elements from Submit and Monitor views.
- Frontend: Implemented simulated progress bar for better UX.
- Frontend: Restored One-click load button and added result file structure documentation.
- Docker: Fixed critical Restarting loop by removing incorrect image directive in docker-compose.yml.
- Docker: Optimized Dockerfile to correct .pixi environment path issues and prevent accidental deletion of frontend assets.
This commit is contained in:
zly
2026-01-20 20:25:25 +08:00
parent 5067169b0b
commit c75c85c53b
134 changed files with 146457 additions and 996647 deletions

View File

@@ -0,0 +1,31 @@
#!/usr/bin/env python3
"""
Mock Mobilome Analyzer
Returns random count of mobile elements (transposases, plasmids, phages).
"""
import argparse
import json
import random
from pathlib import Path
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--input", required=True, help="Input genome file")
parser.add_argument("--output", required=True, help="Output JSON file")
args = parser.parse_args()
# Mock logic: Random count between 0 and 100
# In real impl, this would sum hits of IS elements, plasmid replicons, phage proteins
count = random.randint(0, 100)
results = {
"mobile_elements_count": count
}
with open(args.output, "w") as f:
json.dump(results, f, indent=2)
print(f"Mock Mobilome results written to {args.output}")
if __name__ == "__main__":
main()