Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Via Perl you will find it quite easy to build code to query for SNPs.</p> <p>There is a web browser GUI tool (<a href="http://www.ensembl.org/biomart/martview/ad23fb5685e6aecb59ab12ce73c89731" rel="nofollow noreferrer"><strong>HERE</strong></a>) for building perl scripts based on which database and dataset you wish to query using Biomart library.</p> <p><strong>Instructions</strong></p> <ol> <li>Go to <a href="http://www.ensembl.org/biomart/martview/ad23fb5685e6aecb59ab12ce73c89731" rel="nofollow noreferrer">http://www.ensembl.org/biomart/martview/ad23fb5685e6aecb59ab12ce73c89731</a> (for supported Metazoans), or <a href="http://biomart.vectorbase.org/biomart/martview/6e274bc00b3c68a131a6947d02039ade" rel="nofollow noreferrer">http://biomart.vectorbase.org/biomart/martview/6e274bc00b3c68a131a6947d02039ade</a> (for up to date Vectors of Malaria, e.g. <em><a href="https://www.vectorbase.org/organisms/anopheles-gambiae" rel="nofollow noreferrer">A. gambiae</a></em>)</li> <li><p>Select the database and dataset: <img src="https://i.stack.imgur.com/0SUHk.png" alt="enter image description here"></p></li> <li><p>Click on the "perl" button to generate perl code for the Biomart API querying, and copy-paste the code into your perl editor - run it with the SNP rsNumbers of your choice.</p></li> </ol> <blockquote> <pre><code># An example script demonstrating the use of BioMart API. use strict; use BioMart::Initializer; use BioMart::Query; use BioMart::QueryRunner; my $confFile = "PATH TO YOUR REGISTRY FILE UNDER biomart-perl/conf/." my $action='cached'; my $initializer = BioMart::Initializer-&gt;new('registryFile'=&gt;$confFile,'action'=&gt;$action); my $registry = $initializer-&gt;getRegistry; my $query = BioMart::Query-&gt;new('registry'=&gt;$registry,'virtualSchemaName'=&gt;'default'); $query-&gt;setDataset("hsapiens_snp"); $query-&gt;addAttribute("refsnp_id"); $query-&gt;addAttribute("refsnp_source"); $query-&gt;addAttribute("chr_name"); $query-&gt;addAttribute("chrom_start"); $query-&gt;formatter("TSV"); my $query_runner = BioMart::QueryRunner-&gt;new(); ############################## GET RESULTS ########################## $query_runner-&gt;execute($query); $query_runner-&gt;printHeader(); $query_runner-&gt;printResults(); $query_runner-&gt;printFooter(); ##################################################################### </code></pre> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload