[ensembl-dev] (no subject)
Mahmood Naderan
mahmood.nt at gmail.com
Tue Jun 27 11:36:51 BST 2017
Thanks. Although I read the manual (core api), still I have some questions.
1- With the web interface, I search for a gene name, e.g. SLC4A11. I also
set the category to "gene". In the result, I then click on "SLC4A11 (Human
Gene)". Then I click on sequence. Then I proceed to download the file (as
fasta or rtf).
2- I also want to retrieve the a specific position of that gene.
Roughly, I have to do like this:
my $slice_adaptor = $registry->get_adaptor( 'Human', 'Core', 'Slice'
);my $slice = $slice_adaptor->fetch_by_region( 'chromosome', 'slc4a11'
);
my $sequence = $slice->seq();print $sequence, "\n";
The print command should print what I see in the fasta or rtf file. Is that
right?! I want to know if I understand that correctly and I am on the right
track.
Regards,
Mahmood
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20170627/810c06e8/attachment.html>
More information about the Dev
mailing list