Question: How To Extract All The Gene Names From A Chromosomal Region In Ensembl Using Pycogent?
gravatar for jynling89
7.0 years ago by
jynling8910 wrote:

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 ensembl chromosome • 2.1k views
ADD COMMENTlink modified 6.5 years ago by Biostar ♦♦ 20 • written 7.0 years ago by jynling8910
gravatar for cts
7.0 years ago by
cts1.6k wrote:

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,
    """returns Region instances for the specified location"""

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

ADD COMMENTlink written 7.0 years ago by cts1.6k

Thanks, it worked.

ADD REPLYlink written 7.0 years ago by jynling8910
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1385 users visited in the last hour