Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,9 @@ import matplotlib.colors as mcolors
|
|
9 |
import io
|
10 |
from PIL import Image
|
11 |
from scipy.interpolate import interp1d
|
|
|
|
|
|
|
12 |
|
13 |
###############################################################################
|
14 |
# 1. MODEL DEFINITION
|
@@ -667,11 +670,6 @@ def analyze_gene_features(sequence_file, features_file, fasta_text="", features_
|
|
667 |
|
668 |
def create_genome_diagram(gene_results, genome_length):
|
669 |
"""Create genome diagram using BioPython"""
|
670 |
-
from Bio.Graphics import GenomeDiagram
|
671 |
-
from Bio.SeqFeature import SeqFeature, FeatureLocation
|
672 |
-
from reportlab.lib import colors
|
673 |
-
from io import BytesIO
|
674 |
-
from PIL import Image
|
675 |
|
676 |
# Create diagram
|
677 |
gd_diagram = GenomeDiagram.Diagram("Genome SHAP Analysis")
|
|
|
9 |
import io
|
10 |
from PIL import Image
|
11 |
from scipy.interpolate import interp1d
|
12 |
+
from Bio.Graphics import GenomeDiagram
|
13 |
+
from Bio.SeqFeature import SeqFeature, FeatureLocation
|
14 |
+
from reportlab.lib import colors
|
15 |
|
16 |
###############################################################################
|
17 |
# 1. MODEL DEFINITION
|
|
|
670 |
|
671 |
def create_genome_diagram(gene_results, genome_length):
|
672 |
"""Create genome diagram using BioPython"""
|
|
|
|
|
|
|
|
|
|
|
673 |
|
674 |
# Create diagram
|
675 |
gd_diagram = GenomeDiagram.Diagram("Genome SHAP Analysis")
|