Skip to content

Commit

Permalink
Deprecate set_gene()
Browse files Browse the repository at this point in the history
  • Loading branch information
kcha committed May 18, 2018
1 parent b5fcec4 commit 80652cd
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions qapa/collapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,6 @@ def finalize(self):
return [self.chrom, self.start, self.end, new_name, self.score,
self.strand, self.gene_id]

def set_gene(self, conn):
'''Query for Ensembl Gene ID'''
query = 'select gene_id from ensembl_id where transcript_id = ?'
cur = conn.execute(query, (self.name,))
r = cur.fetchone()
if r:
self.gene_id = r[0]
else:
self.gene_id = None

def _guess_species(self):
if re.match(r'ENST\d+', self.name):
return 'hg19'
Expand Down

0 comments on commit 80652cd

Please sign in to comment.