How To Extract All The Gene Names From A Chromosomal Region In Ensembl Using Pycogent?
1
1
Entering edit mode
11.5 years ago
jynling89 ▴ 10

I would like to know if PyCogent modules can be used to extract all the gene names from a chromosomal region in Ensembl Database. If not, are there other alternatives to perform gene names extraction from Ensembl? Thanks.

gene chromosome ensembl • 2.9k views
ADD COMMENT
3
Entering edit mode
11.5 years ago
cts ★ 1.7k

I believe this is possible in pycogent. Looking at the code there is the getFeatures method of the cogent.db.ensembl.genome.Genome class (see the code snippet below).

def getFeatures(self, region=None, feature_types=None, where_feature=None,
                CoordName=None, Start=None, End=None, Strand=None,
                ensembl_coord=False):
    """returns Region instances for the specified location"""

I assume that you can pass it the coordinates using the Start and End kwargs.

ADD COMMENT
0
Entering edit mode

Thanks, it worked.

ADD REPLY

Login before adding your answer.

Traffic: 1903 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6