Spaces:
Sleeping
Sleeping
supercat666
commited on
Commit
•
dd4858e
1
Parent(s):
99d52d8
fix Genbank
Browse files
cas9on.py
CHANGED
@@ -153,4 +153,8 @@ def generate_genbank_file_from_df(df, gene_sequence, gene_symbol, output_path):
|
|
153 |
|
154 |
record = SeqRecord(Seq(gene_sequence), id=gene_symbol, name=gene_symbol,
|
155 |
description='CRISPR Cas9 predicted targets', features=features)
|
|
|
|
|
|
|
|
|
156 |
SeqIO.write(record, output_path, "genbank")
|
|
|
153 |
|
154 |
record = SeqRecord(Seq(gene_sequence), id=gene_symbol, name=gene_symbol,
|
155 |
description='CRISPR Cas9 predicted targets', features=features)
|
156 |
+
|
157 |
+
# Add the missing molecule_type annotation
|
158 |
+
record.annotations["molecule_type"] = "DNA"
|
159 |
+
|
160 |
SeqIO.write(record, output_path, "genbank")
|