Skip to content

Commit

Permalink
Merge pull request #141 from hammerlab/contigs
Browse files Browse the repository at this point in the history
Add Genome.contigs. Fixes #140.
  • Loading branch information
iskandr committed Mar 29, 2016
2 parents e1c902e + 67a87ec commit 327c7e7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pyensembl/genome.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,18 @@ def locus_of_exon_id(self, exon_id):
"""
return self.db.query_locus("exon_id", exon_id, feature="exon")

###################################################
#
# Contigs
#
###################################################
@memoize
def contigs(self):
"""
Returns all contigs ("seqname") for all genes
"""
return self.db.query_feature_values("seqname", "gene")

###################################################
#
# Gene Info Objects
Expand Down

0 comments on commit 327c7e7

Please sign in to comment.