yashm commited on
Commit
6402171
·
verified ·
1 Parent(s): a0b2313

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,10 +7,11 @@ import numpy as np
7
  from io import StringIO
8
 
9
  # Function to parse GenBank file
10
- def parse_genbank(file):
 
 
11
  stringio = StringIO(uploaded_file.getvalue().decode("utf-8"))
12
  record = SeqIO.read(stringio, "genbank")
13
- record = SeqIO.read(file, "genbank")
14
  organism = record.annotations['organism']
15
  features = record.features
16
  genes, cds = [], []
 
7
  from io import StringIO
8
 
9
  # Function to parse GenBank file
10
+ # Function to parse GenBank file
11
+ def parse_genbank(uploaded_file):
12
+ # Convert binary to text for SeqIO
13
  stringio = StringIO(uploaded_file.getvalue().decode("utf-8"))
14
  record = SeqIO.read(stringio, "genbank")
 
15
  organism = record.annotations['organism']
16
  features = record.features
17
  genes, cds = [], []