Skip to content

Commit

Permalink
AnimalQTLdb.py: Initial GFF3 attribute processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Laraway committed May 14, 2015
1 parent 76f7e98 commit d672877
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dipper/sources/AnimalQTLdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import re
import gzip


from dipper.sources.Source import Source
from dipper.models.Dataset import Dataset
from dipper.models.G2PAssoc import G2PAssoc
Expand Down Expand Up @@ -202,6 +203,21 @@ def _process_QTLs_genomic_location(self, raw, qtl_prefix, trait_prefix, taxon_id
else:
(chromosome, qtl_source, qtl_type, start_bp, stop_bp, frame, strand, score, multi) = row
#print(multi)
element_hash = {}

#How best to split up the multi column?
# Could do it in a hash...
multi_list = multi.split(';')
#print(multi_list)
for i in multi_list:
elements = str(i)
#print(elements)
if re.match('.*=.*', elements):
element_pair = elements.split('=')
#print(element_pair)
key = element_pair[0]
value = element_pair[1]




Expand Down

0 comments on commit d672877

Please sign in to comment.