Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -895,61 +895,7 @@ def create_gradio_interface():
|
|
| 895 |
]
|
| 896 |
)
|
| 897 |
|
| 898 |
-
|
| 899 |
-
gr.Markdown("## 💡 Example Sequences")
|
| 900 |
-
|
| 901 |
-
example_sequences = [
|
| 902 |
-
["ATGGAGTTGCTAATCCTCAAAGCAACAGCAGAAAAAAGCTGCAAAGGAGTTGCTAATCCTCAAAGCAACAGCAGAAAAAAGC", 90, True],
|
| 903 |
-
["ATGGATGACCCCATCAATGACCCCATCGATATGGATGACCCCATCAATGACCCCATCGATATGGATGACCCCATCAATGACCCCATCGAT", 85, False],
|
| 904 |
-
["ATGAAAGACTGCATCAAAGACTGCATCGAAATGAAAGACTGCATCAAAGACTGCATCGAAATGAAAGACTGCATCAAAGACTGCATCGAA", 95, True]
|
| 905 |
-
]
|
| 906 |
-
|
| 907 |
-
gr.Examples(
|
| 908 |
-
examples=example_sequences,
|
| 909 |
-
inputs=[dna_input, similarity_score, build_ml_tree],
|
| 910 |
-
outputs=[
|
| 911 |
-
boundary_output,
|
| 912 |
-
keras_output,
|
| 913 |
-
ml_tree_output,
|
| 914 |
-
simplified_ml_output,
|
| 915 |
-
summary_output,
|
| 916 |
-
aligned_file_output,
|
| 917 |
-
phy_file_output,
|
| 918 |
-
html_file_output,
|
| 919 |
-
tree_viewer
|
| 920 |
-
],
|
| 921 |
-
fn=run_pipeline,
|
| 922 |
-
cache_examples=False
|
| 923 |
-
)
|
| 924 |
-
|
| 925 |
-
# Help Section
|
| 926 |
-
with gr.Accordion("❓ Help & Information", open=False):
|
| 927 |
-
gr.Markdown("""
|
| 928 |
-
### How to Use This Pipeline:
|
| 929 |
-
|
| 930 |
-
1. **Input your sequence**: Either paste directly or upload a FASTA file
|
| 931 |
-
2. **Set similarity threshold**: Higher values (95-99%) for closely related sequences
|
| 932 |
-
3. **Choose ML tree option**: Enable for comprehensive phylogenetic analysis
|
| 933 |
-
4. **Run analysis**: Click the analysis button and wait for results
|
| 934 |
-
|
| 935 |
-
### Requirements:
|
| 936 |
-
- For phylogenetic placement: MAFFT and IQ-TREE must be installed
|
| 937 |
-
- Minimum sequence length: 100 bp for phylogenetic analysis, 6 bp for validation
|
| 938 |
-
- Supported formats: Raw DNA sequence or FASTA format
|
| 939 |
-
|
| 940 |
-
### Outputs:
|
| 941 |
-
- **F Gene Extraction**: Boundary-aware extraction of F gene regions
|
| 942 |
-
- **F Gene Validation**: Confidence score for F gene authenticity
|
| 943 |
-
- **Phylogenetic Placement**: Position in reference phylogenetic tree
|
| 944 |
-
- **Simplified Tree**: Interactive visualization of phylogenetic relationships
|
| 945 |
-
- **Downloads**: Alignment files, tree files, and interactive HTML
|
| 946 |
-
|
| 947 |
-
### Troubleshooting:
|
| 948 |
-
- If phylogenetic placement fails, check MAFFT/IQ-TREE installation
|
| 949 |
-
- For short sequences, only validation will be performed
|
| 950 |
-
- Large sequences may take several minutes to process
|
| 951 |
-
""")
|
| 952 |
-
|
| 953 |
return iface
|
| 954 |
|
| 955 |
# --- Main Execution ---
|
|
|
|
| 895 |
]
|
| 896 |
)
|
| 897 |
|
| 898 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 899 |
return iface
|
| 900 |
|
| 901 |
# --- Main Execution ---
|