Commit 370b36e0 authored by AITE Meziane's avatar AITE Meziane

python3 fix

parent 8802e741
......@@ -41,7 +41,8 @@ def main():
qualifier = args["--qualifier"]
verbose = args["-v"]
dict_faa = {}
with open(gbk_file, "rU") as gbk:
with open(gbk_file, "r") as gbk:
seqs = [seq for seq in SeqIO.parse(gbk, "genbank")]
for seq_record in SeqIO.parse(gbk, "genbank"):
seq_feature_cds = (seq_feature for seq_feature in seq_record.features if seq_feature.type == "CDS")
for seq_feature in seq_feature_cds:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment