Update Genome_database.py
Browse files- Genome_database.py +2 -2
Genome_database.py
CHANGED
@@ -81,7 +81,7 @@ class GenomeDataset(datasets.GeneratorBasedBuilder):
|
|
81 |
region_type = 'coding'
|
82 |
product = feature.qualifiers.get('product', ['Unknown'])[0]
|
83 |
if feature.type == 'CDS':
|
84 |
-
translation = feature.qualifiers.get('translation', [''])[0]
|
85 |
specific_class = 'Protein'
|
86 |
else:
|
87 |
translation = 'NA'
|
@@ -90,7 +90,7 @@ class GenomeDataset(datasets.GeneratorBasedBuilder):
|
|
90 |
region_type = feature.type
|
91 |
specific_class = feature.qualifiers.get('regulatory_class', ['regulatory'])[0]
|
92 |
translation = 'NA'
|
93 |
-
product = 'NA'
|
94 |
elif feature.type == 'gene':
|
95 |
continue
|
96 |
else:
|
|
|
81 |
region_type = 'coding'
|
82 |
product = feature.qualifiers.get('product', ['Unknown'])[0]
|
83 |
if feature.type == 'CDS':
|
84 |
+
translation = feature.qualifiers.get('translation', ['NA'])[0]
|
85 |
specific_class = 'Protein'
|
86 |
else:
|
87 |
translation = 'NA'
|
|
|
90 |
region_type = feature.type
|
91 |
specific_class = feature.qualifiers.get('regulatory_class', ['regulatory'])[0]
|
92 |
translation = 'NA'
|
93 |
+
product = feature.qualifiers.get('product', ['NA'])[0]
|
94 |
elif feature.type == 'gene':
|
95 |
continue
|
96 |
else:
|