Update Genome_database.py
Browse files- Genome_database.py +4 -2
Genome_database.py
CHANGED
|
@@ -79,10 +79,12 @@ class GenomeDataset(datasets.GeneratorBasedBuilder):
|
|
| 79 |
else:
|
| 80 |
if feature.qualifiers.get('product') != ['']:
|
| 81 |
product = feature.qualifiers.get('product', ['NA'])[0]
|
|
|
|
|
|
|
| 82 |
else:
|
| 83 |
product = 'NA'
|
| 84 |
-
|
| 85 |
-
|
| 86 |
translation = 'NA'
|
| 87 |
yield str(id_), {
|
| 88 |
'DNA_id': record.id,
|
|
|
|
| 79 |
else:
|
| 80 |
if feature.qualifiers.get('product') != ['']:
|
| 81 |
product = feature.qualifiers.get('product', ['NA'])[0]
|
| 82 |
+
region_type = 'coding'
|
| 83 |
+
specific_class = feature.type
|
| 84 |
else:
|
| 85 |
product = 'NA'
|
| 86 |
+
region_type = feature.type
|
| 87 |
+
specific_class = 'NA'
|
| 88 |
translation = 'NA'
|
| 89 |
yield str(id_), {
|
| 90 |
'DNA_id': record.id,
|