entrez 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
5
+ .*.sw*
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use ruby-1.9.2-p0@entrez
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in entrez.gemspec
4
+ gemspec
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,25 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "entrez/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "entrez"
7
+ s.version = Entrez::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Jared Ning"]
10
+ s.email = ["jared@redningja.com"]
11
+ s.homepage = "https://github.com/ordinaryzelig/entrez"
12
+ s.summary = %q{HTTP requests to Entrez E-utilities}
13
+ s.description = %q{Simple API for HTTP requests to Entrez E-utilities}
14
+
15
+ s.rubyforge_project = "entrez"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+
22
+ s.add_runtime_dependency 'httparty' # Written with version 0.7.3.
23
+ s.add_development_dependency 'rspec', '2.4.0'
24
+
25
+ end
@@ -0,0 +1,17 @@
1
+ require 'httparty'
2
+
3
+ class Entrez
4
+
5
+ include HTTParty
6
+ base_uri 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils'
7
+ default_params tool: 'ruby', email: (ENV['ENTREZ_EMAIL'] || raise('please set ENTREZ_EMAIL environment variable'))
8
+
9
+ class << self
10
+
11
+ def efetch(db, params = {})
12
+ get '/efetch.fcgi', :query => {db: db}.merge(params)
13
+ end
14
+
15
+ end
16
+
17
+ end
@@ -0,0 +1,3 @@
1
+ module Entrez
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe Entrez do
4
+
5
+ it 'should have default params for tool and email' do
6
+ Entrez.default_params[:tool].should eq('ruby')
7
+ Entrez.default_params[:email].should_not be_nil
8
+ end
9
+
10
+ it 'should efetch results' do
11
+ rs_number = 9268480.to_s
12
+ Entrez.efetch('snp', {id: rs_number, retmode: 'xml'}).should eq(file_fixture('efetch.xml'))
13
+ end
14
+
15
+ end
@@ -0,0 +1,10 @@
1
+ require 'pathname'
2
+
3
+ require File.join(Pathname(__FILE__).dirname.expand_path, '../lib/entrez')
4
+
5
+ # require support .rb files.
6
+ Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {|f| require f}
7
+
8
+ RSpec.configure do |config|
9
+ config.include(Macros)
10
+ end
@@ -0,0 +1,246 @@
1
+ <?xml version="1.0"?>
2
+ <ExchangeSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+ xmlns="http://www.ncbi.nlm.nih.gov/SNP/docsum"
4
+ xsi:schemaLocation="http://www.ncbi.nlm.nih.gov/SNP/docsum
5
+ ftp://ftp.ncbi.nlm.nih.gov/snp/specs/docsum_3.1.xsd"><SourceDatabase taxId="0"
6
+ organism=""/>
7
+
8
+
9
+
10
+ <Rs rsId="9268480" snpClass="snp" snpType="notwithdrawn" molType="genomic" genotype="true" bitField="050368000301050503020100" taxId="9606">
11
+ <Het type="est" value="0.306968957185745" stdError="0.243591338396072"/>
12
+ <Validation byCluster="true" byFrequency="true"></Validation>
13
+ <Create build="118" date="2003-10-31 16:50"/>
14
+ <Update build="132" date="2011-01-04 14:46"/>
15
+ <Sequence exemplarSs="12693244" ancestralAllele="C">
16
+ <Seq5>CCAGTTTAGTCTTCAGATGATTACAGTTTCTAGAATTTTATTGCATTTCTCAGAATTCTAATAACACACTGTGAAACAATGAGCCTTTTGTAAAATATGTAGTAAGATACTCAGATTTCCTTAAAGATATGGTCAATTTTTGAAGATACTGGAAAAGATACAAGTTATATGCCCAAATAATTAAATTTCATCCATTTGAGTTTGTGGATTTTAAGTAACTATGACAGTTTCACACACTGGAGGATTTGATATAAATTTGATGATGAATAAGCATTAAGAAAATTTCAAATGTCAGAGAAATTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
17
+ <Observed>C/T</Observed>
18
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGTCACTCACCAGTACAGTCCTCCCTCTGTACTCTGCCATCTGCTCTCCAGCCACATGGTCCCCATCCATATACACATGCACAGCAGGGTAACGGTGGGATCGGTCCCACCTCACCTCCATGCTCTGTGCATTCGCCTTGGGGGACAGGTAACAGGTTAGCTGTATATCTTCTCCCACTCTGACGAGGATGGGCTGGGAAGGTCCATTCACTTTTAAAGAAGCTGTTAAATAGAGTGGACAAAACACAATGAAAGAATCAAAATGGAACCAATAATGTCATCTCTAAGAACAGCTCCATTGGA</Seq3>
19
+ </Sequence>
20
+ <Ss ssId="12693244" handle="SI_MHC_SNP" batchId="30080" locSnpId="AL662796.6_71437_CT" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="118" methodClass="sequence" validated="by-cluster">
21
+ <Sequence>
22
+ <Seq5>CCAGTTTAGTCTTCAGATGATTACAGTTTCTAGAATTTTATTGCATTTCTCAGAATTCTAATAACACACTGTGAAACAATGAGCCTTTTGTAAAATATGTAGTAAGATACTCAGATTTCCTTAAAGATATGGTCAATTTTTGAAGATACTGGAAAAGATACAAGTTATATGCCCAAATAATTAAATTTCATCCATTTGAGTTTGTGGATTTTAAGTAACTATGACAGTTTCACACACTGGAGGATTTGATATAAATTTGATGATGAATAAGCATTAAGAAAATTTCAAATGTCAGAGAAATTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
23
+ <Observed>C/T</Observed>
24
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGTCACTCACCAGTACAGTCCTCCCTCTGTACTCTGCCATCTGCTCTCCAGCCACATGGTCCCCATCCATATACACATGCACAGCAGGGTAACGGTGGGATCGGTCCCACCTCACCTCCATGCTCTGTGCATTCGCCTTGGGGGACAGGTAACAGGTTAGCTGTATATCTTCTCCCACTCTGACGAGGATGGGCTGGGAAGGTCCATTCACTTTTAAAGAAGCTGTTAAATAGAGTGGACAAAACACAATGAAAGAATCAAAATGGAACCAATAATGTCATCTCTAAGAACAGCTCCATTGGA</Seq3>
25
+ </Sequence>
26
+ </Ss>
27
+ <Ss ssId="23138294" handle="FHCRC" batchId="11352" locSnpId="JF16_7049" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="126" methodClass="unknown" validated="by-frequency">
28
+ <Sequence>
29
+ <Seq5>TTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
30
+ <Observed>C/T</Observed>
31
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGT</Seq3>
32
+ </Sequence>
33
+ </Ss>
34
+ <Ss ssId="24650851" handle="PERLEGEN" batchId="12311" locSnpId="afd0292430" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="123" methodClass="hybridize" validated="by-cluster">
35
+ <Sequence>
36
+ <Seq5>TTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
37
+ <Observed>C/T</Observed>
38
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGT</Seq3>
39
+ </Sequence>
40
+ </Ss>
41
+ <Ss ssId="38346936" handle="PULMONOLOGYMSSM" batchId="18500" locSnpId="G16043A" subSnpClass="snp" orient="reverse" strand="top" molType="genomic" buildId="126" methodClass="unknown" validated="by-frequency">
42
+ <Sequence>
43
+ <Seq5>TCGGACGACGGGCAGTACCGCTGCCTTTTTGAAAAAGATGATGTCTACCA</Seq5>
44
+ <Observed>A/G</Observed>
45
+ <Seq3>GAGGCCAGTTTGGATCTGAAGGTGGTAAGTAAGAATTCTAGATAGATATT</Seq3>
46
+ </Sequence>
47
+ </Ss>
48
+ <Ss ssId="44707181" handle="ABI" batchId="18990" locSnpId="hCV2488470" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="126" methodClass="unknown" linkoutUrl="http://myscience.appliedbiosystems.com/servlet/com.celera.web.myab.servlets.MyscienceGateway?source=dbSNP&amp;resource=genotypingAssay&amp;ap2=Celera+SNP&amp;ap1=hCV2488470">
49
+ <Sequence>
50
+ <Seq5>AGTAAGATACTCAGATTTCCTTAAAGATATGGTCAATTTTTGAAGATACTGGAAAAGATACAAGTTATATGCCCAAATAATTAAATTTCATCCATTTGAGTTTGTGGATTTTAAGTAACTATGACAGTTTCACACACTGGAGGATTTGATATAAATTTGATGATGAATAAGCATTAAGAAAATTTCAAATGTCAGAGAAATTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACCTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
51
+ <Observed>C/T</Observed>
52
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGTCACTCACCAGTACAGTCCTCCCTCTGTACTCTGCCATCTGCTCTCCAGCCACATGGTCCCCATCCATATACACATGCACAGCAGGGTAACGGTGGGATCGGTCCCACCTCACCTCCATGCTCTGTGCATTCGCCTTGGGGGACAGGTAACAGGTTAGCTGTATATCTTCTCCCACTCTGACGAGGATGGGCTGGGAAGGT</Seq3>
53
+ </Sequence>
54
+ </Ss>
55
+ <Ss ssId="52083135" handle="SI_EXO" batchId="30185" locSnpId="NT_007592.14_23222094" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="127" methodClass="unknown">
56
+ <Sequence>
57
+ <Seq5>CCAGTTTAGTCTTCAGATGATTACAGTTTCTAGAATTTTATTGCATTTCTCAGAATTCTAATAACACACTGTGAAACAATGAGCCTTTTGTAAAATATGTAGTAAGATACTCAGATTTCCTTAAAGATATGGTCAATTTTTGAAGATACTGGAAAAGATACAAGTTATATGCCCAAATAATTAAATTTCATCCATTTGAGTTTGTGGATTTTAAGTAACTATGACAGTTTCACACACTGGAGGATTTGATATAAATTTGATGATGAATAAGCATTAAGAAAATTTCAAATGTCAGAGAAATTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
58
+ <Observed>C/T</Observed>
59
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGTCACTCACCAGTACAGTCCTCCCTCTGTACTCTGCCATCTGCTCTCCAGCCACATGGTCCCCATCCATATACACATGCACAGCAGGGTAACGGTGGGATCGGTCCCACCTCACCTCCATGCTCTGTGCATTCGCCTTGGGGGACAGGTAACAGGTTAGCTGTATATCTTCTCCCACTCTGACGAGGATGGGCTGGGAAGGTCCATTCACTTTTAAAGAAGCTGTTAAATAGAGTGGACAAAACACAATGAAAGAATCAAAATGGAACCAATAATGTCATCTCTAAGAACAGCTCCATTGGA</Seq3>
60
+ </Sequence>
61
+ </Ss>
62
+ <Ss ssId="65847636" handle="KRIBB_YJKIM" batchId="33716" locSnpId="KHS23433" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="127" methodClass="other" validated="by-cluster">
63
+ <Sequence>
64
+ <Seq5>AGTAAGATACTCAGATTTCCTTAAAGATATGGTCAATTTTTGAAGATACTGGAAAAGATACAAGTTATATGCCCAAATAATTAAATTTCATCCATTTGAGTTTGTGGATTTTAAGTAACTATGACAGTTTCACACACTGGAGGATTTGATATAAATTTGATGATGAATAAGCATTAAGAAAATTTCAAATGTCAGAGAAATTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
65
+ <Observed>C/T</Observed>
66
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGTCACTCACCAGTACAGTCCTCCCTCTGTACTCTGCCATCTGCTCTCCAGCCACATGGTCCCCATCCATATACACATGCACAGCAGGGTAACGGTGGGATCGGTCCCACCTCACCTCCATGCTCTGTGCATTCGCCTTGGGGGACAGGTAACAGGTTAGCTGTATATCTTCTCCCACTCTGACGAGGATGGGCTGGGAAGGT</Seq3>
67
+ </Sequence>
68
+ </Ss>
69
+ <Ss ssId="66383197" handle="AFFY" batchId="33767" locSnpId="SNP_A-2047476" subSnpClass="snp" orient="reverse" strand="top" molType="genomic" buildId="127" methodClass="hybridize" validated="by-cluster" linkoutUrl="http://www.affymetrix.com/support/technical/byproduct.affx?product=100kSNP_A-2047476">
70
+ <Sequence>
71
+ <Seq5>AAGATGATGTCTACCA</Seq5>
72
+ <Observed>A/G</Observed>
73
+ <Seq3>GAGGCCAGTTTGGATC</Seq3>
74
+ </Sequence>
75
+ </Ss>
76
+ <Ss ssId="68972045" handle="PERLEGEN" batchId="38687" locSnpId="PGP00292430" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="127" methodClass="hybridize" validated="by-cluster">
77
+ <Sequence>
78
+ <Seq5>GGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
79
+ <Observed>C/T</Observed>
80
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGA</Seq3>
81
+ </Sequence>
82
+ </Ss>
83
+ <Ss ssId="76118578" handle="AFFY" batchId="52074" locSnpId="AFFY_6_1M_SNP_A-2047476" subSnpClass="snp" orient="reverse" strand="top" molType="genomic" buildId="129" methodClass="hybridize" validated="by-submitter">
84
+ <Sequence>
85
+ <Seq5>AAGATGATGTCTACCA</Seq5>
86
+ <Observed>A/G</Observed>
87
+ <Seq3>GAGGCCAGTTTGGATC</Seq3>
88
+ </Sequence>
89
+ </Ss>
90
+ <Ss ssId="82555304" handle="KRIBB_YJKIM" batchId="52429" locSnpId="KHS279420" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="130" methodClass="hybridize" validated="by-submitter">
91
+ <Sequence>
92
+ <Seq5>TTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
93
+ <Observed>C/T</Observed>
94
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGT</Seq3>
95
+ </Sequence>
96
+ </Ss>
97
+ <Ss ssId="86242140" handle="CORNELL" batchId="58444" locSnpId="hCV2488470" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="129" methodClass="unknown">
98
+ <Sequence>
99
+ <Seq5>AATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
100
+ <Observed>C/T</Observed>
101
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGA</Seq3>
102
+ </Sequence>
103
+ </Ss>
104
+ <Ss ssId="93437732" handle="BCMHGSC_JDW" batchId="59658" locSnpId="JWB-2121515" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="129" methodClass="computed">
105
+ <Sequence>
106
+ <Seq5>GGAAAAGATACAAGTTATATGCCCAAATAATTAAATTTCATCCATTTGAGTTTGTGGATTTTAAGTAACTATGACAGTTTCACACACTGGAGGATTTGATATAAATTTGATGATGAATAAGCATTAAGAAAATTTCAAATGTCAGAGAAATTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
107
+ <Observed>C/T</Observed>
108
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGTCACTCACCAGTACAGTCCTCCCTCTGTACTCTGCCATCTGCTCTCCAGCCACATGGTCCCCATCCATATACACATGCACAGCAGGGTAACGGTGGGATCGGTCCCACCTCACCTCCATGCTCTGTGCATTCGCCTTGGGGGACAGGTAAC</Seq3>
109
+ </Sequence>
110
+ </Ss>
111
+ <Ss ssId="98487577" handle="HUMANGENOME_JCVI" batchId="60080" locSnpId="1103652828650" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="130" methodClass="sequence" validated="by-submitter" linkoutUrl="http://huref.jcvi.org/browse.html?search=1103652828650">
112
+ <Sequence>
113
+ <Seq5>GGAAAAGATACAAGTTATATGCCCAAATAATTAAATTTCATCCATTTGAGTTTGTGGATTTTAAGTAACTATGACAGTTTCACACACTGGAGGATTTGATATAAATTTGATGATGAATAAGCATTAAGAAAATTTCAAATGTCAGAGAAATTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACCTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
114
+ <Observed>C/T</Observed>
115
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGTCACTCACCAGCACAGTCCTCCCTCTGTACTCTGCCATCTGCTCTCCAGCCACATGGTCCCCATCCATATACACATGCACAGCAGGGTAACGGTGGGATCGGTCCCACCTCACCTCCATGCTCTGTGCATTCGCCTTGGGGGACAGGTAAC</Seq3>
116
+ </Sequence>
117
+ </Ss>
118
+ <Ss ssId="104297553" handle="BGI" batchId="856429" locSnpId="BGI_rs9268480" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="131" methodClass="unknown">
119
+ <Sequence>
120
+ <Seq5>TTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACYTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
121
+ <Observed>C/T</Observed>
122
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGT</Seq3>
123
+ </Sequence>
124
+ </Ss>
125
+ <Ss ssId="133671803" handle="ENSEMBL" batchId="856818" locSnpId="ENSSNP3072269" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="131" methodClass="computed">
126
+ <Sequence>
127
+ <Seq5>ATTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
128
+ <Observed>C/T</Observed>
129
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGTC</Seq3>
130
+ </Sequence>
131
+ </Ss>
132
+ <Ss ssId="144248004" handle="ENSEMBL" batchId="856818" locSnpId="ENSSNP13882478" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="131" methodClass="computed">
133
+ <Sequence>
134
+ <Seq5>ATTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
135
+ <Observed>C/T</Observed>
136
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGTC</Seq3>
137
+ </Sequence>
138
+ </Ss>
139
+ <Ss ssId="156753178" handle="GMI" batchId="1048915" locSnpId="GMI_SNP_77301931" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="131" methodClass="sequence" validated="by-submitter">
140
+ <Sequence>
141
+ <Seq5>TTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
142
+ <Observed>C/T</Observed>
143
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGT</Seq3>
144
+ </Sequence>
145
+ </Ss>
146
+ <Ss ssId="159712195" handle="SEATTLESEQ" batchId="1048973" locSnpId="BTNL2-32471822" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="131" methodClass="unknown">
147
+ <Sequence>
148
+ <Seq5>AATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
149
+ <Observed>C/T</Observed>
150
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGA</Seq3>
151
+ </Sequence>
152
+ </Ss>
153
+ <Ss ssId="160970526" handle="ILLUMINA" batchId="1049033" locSnpId="HumanOmni1-Quad_v1-0_B_rs9268480-128_B_F_1561716334" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="131" methodClass="hybridize" validated="by-submitter">
154
+ <Sequence>
155
+ <Seq5>TTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
156
+ <Observed>C/T</Observed>
157
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCA</Seq3>
158
+ </Sequence>
159
+ </Ss>
160
+ <Ss ssId="162203174" handle="COMPLETE_GENOMICS" batchId="1049290" locSnpId="NA07022_36_chr6_32471822" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="132" methodClass="sequence" validated="by-submitter">
161
+ <Sequence>
162
+ <Seq5>GGAAAAGATACAAGTTATATGCCCAAATAATTAAATTTCATCCATTTGAGTTTGTGGATTTTAAGTAACTATGACAGTTTCACACACTGGAGGATTTGATATAAATTTGATGATGAATAAGCATTAAGAAAATTTCAAATGTCAGAGAAATTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
163
+ <Observed>C/T</Observed>
164
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGTCACTCACCAGTACAGTCCTCCCTCTGTACTCTGCCATCTGCTCTCCAGCCACATGGTCCCCATCCATATACACATGCACAGCAGGGTAACGGTGGGATCGGTCCCACCTCACCTCCATGCTCTGTGCATTCGCCTTGGGGGACAGGTAAC</Seq3>
165
+ </Sequence>
166
+ </Ss>
167
+ <Ss ssId="172560055" handle="AFFY" batchId="1049350" locSnpId="GenomeWideSNP_5_SNP_A-2047476" subSnpClass="snp" orient="reverse" strand="top" molType="genomic" buildId="132" methodClass="hybridize" validated="by-submitter">
168
+ <Sequence>
169
+ <Seq5>AAGATGATGTCTACCA</Seq5>
170
+ <Observed>A/G</Observed>
171
+ <Seq3>GAGGCCAGTTTGGATC</Seq3>
172
+ </Sequence>
173
+ </Ss>
174
+ <Ss ssId="201632426" handle="BUSHMAN" batchId="1050084" locSnpId="BUSHMAN-chr6-32471821" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="132" methodClass="unknown">
175
+ <Sequence>
176
+ <Seq5>TTTGTGGATTTTAAGTAACTATGACAGTTTCACACACTGGAGGATTTGATATAAATTTGATGATGAATAAGCATTAAGAAAATTTCAAATGTCAGAGAAATTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
177
+ <Observed>C/T</Observed>
178
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGTCACTCACCAGTACAGTCCTCCCTCTGTACTCTGCCATCTGCTCTCCAGCCACATGGTCCCCATCCATATACACATGCACAGCAGGGTAACGGTGGGATCG</Seq3>
179
+ </Sequence>
180
+ </Ss>
181
+ <Ss ssId="207457298" handle="BCM-HGSC-SUB" batchId="1050312" locSnpId="BCM_CMT_1011-1284727" subSnpClass="snp" orient="forward" strand="bottom" molType="genomic" buildId="132" methodClass="sequence" validated="by-submitter">
182
+ <Sequence>
183
+ <Seq5>GGAAAAGATACAAGTTATATGCCCAAATAATTAAATTTCATCCATTTGAGTTTGTGGATTTTAAGTAACTATGACAGTTTCACACACTGGAGGATTTGATATAAATTTGATGATGAATAAGCATTAAGAAAATTTCAAATGTCAGAGAAATTGTCCAGGAACTAGCATATTAAAGTGGCAGGAGCAGGTATTGAATACAAAATATCTATCTAGAATTCTTACTTACCACCTTCAGATCCAAACTGGCCTC</Seq5>
184
+ <Observed>C/T</Observed>
185
+ <Seq3>TGGTAGACATCATCTTTTTCAAAAAGGCAGCGGTACTGCCCGTCGTCCGAAGGTCTGGCACTGAGTATCTGCAGGGTCAGTCTGCCCTCGTCAATGGCGTCACTCACCAGTACAGTCCTCCCTCTGTACTCTGCCATCTGCTCTCCAGCCACATGGTCCCCATCCATATACACATGCACAGCAGGGTAACGGTGGGATCGGTCCCACCTCACCTCCATGCTCTGTGCATTCGCCTTGGGGGACAGGTAAC</Seq3>
186
+ </Sequence>
187
+ </Ss>
188
+ <Assembly dbSnpBuild="132" genomeBuild="37_1" groupLabel="Celera" current="true">
189
+ <Component componentType="contig" ctgId="88999178" accession="NW_923073.1" name="NW_923073.1" chromosome="6" start="28535679" end="58908290" orientation="fwd" gi="88999178" groupTerm="Celera" contigLabel="Celera">
190
+ <MapLoc asnFrom="5394909" asnTo="5394909" locType="exact" alnQuality="0.998325" orient="forward" physMapInt="33930588" leftFlankNeighborPos="399" rightFlankNeighborPos="401" leftContigNeighborPos="5394908" rightContigNeighborPos="5394910" numberOfMismatches="2" numberOfDeletions="0" numberOfInsertions="0"></MapLoc>
191
+ </Component>
192
+ <SnpStat mapWeight="unique-in-contig" chromCount="1" placedContigCount="1" unplacedContigCount="0" seqlocCount="1" hapCount="0"/>
193
+ </Assembly>
194
+ <Assembly dbSnpBuild="132" genomeBuild="37_1" groupLabel="GRCh37" current="true" reference="true">
195
+ <Component componentType="contig" ctgId="224514668" accession="NT_007592.15" name="NT_007592.15" chromosome="6" start="60000" end="58780165" orientation="fwd" gi="224514668" groupTerm="GRCh37" contigLabel="GRCh37">
196
+ <MapLoc asnFrom="32303843" asnTo="32303843" locType="exact" alnQuality="1" orient="forward" physMapInt="32363843" leftFlankNeighborPos="399" rightFlankNeighborPos="401" leftContigNeighborPos="32303842" rightContigNeighborPos="32303844" numberOfMismatches="1" numberOfDeletions="0" numberOfInsertions="0">
197
+ <FxnSet geneId="56244" symbol="BTNL2" mrnaAcc="NM_019602" mrnaVer="1" protAcc="NP_062548" protVer="1" fxnClass="coding-synonymous" readingFrame="3" allele="A" residue="Q" aaPosition="349"/>
198
+ <FxnSet geneId="56244" symbol="BTNL2" mrnaAcc="NM_019602" mrnaVer="1" protAcc="NP_062548" protVer="1" fxnClass="reference" readingFrame="3" allele="G" residue="Q" aaPosition="349"/>
199
+ </MapLoc>
200
+ </Component>
201
+ <Component componentType="contig" ctgId="224515576" accession="NT_167244.1" name="NT_167244.1" chromosome="6" orientation="fwd" gi="224515576" groupTerm="GRCh37" contigLabel="GRCh37">
202
+ <MapLoc asnFrom="3678213" asnTo="3678213" locType="exact" alnQuality="1" orient="forward" leftFlankNeighborPos="399" rightFlankNeighborPos="401" leftContigNeighborPos="3678212" rightContigNeighborPos="3678214" numberOfMismatches="1" numberOfDeletions="0" numberOfInsertions="0"></MapLoc>
203
+ </Component>
204
+ <Component componentType="contig" ctgId="224515577" accession="NT_113891.2" name="NT_113891.2" chromosome="6" orientation="fwd" gi="224515577" groupTerm="GRCh37" contigLabel="GRCh37">
205
+ <MapLoc asnFrom="3834264" asnTo="3834264" locType="exact" alnQuality="1" orient="forward" leftFlankNeighborPos="399" rightFlankNeighborPos="401" leftContigNeighborPos="3834263" rightContigNeighborPos="3834265" numberOfMismatches="1" numberOfDeletions="0" numberOfInsertions="0"></MapLoc>
206
+ </Component>
207
+ <Component componentType="contig" ctgId="224515578" accession="NT_167245.1" name="NT_167245.1" chromosome="6" orientation="fwd" gi="224515578" groupTerm="GRCh37" contigLabel="GRCh37">
208
+ <MapLoc asnFrom="3642742" asnTo="3642742" locType="exact" alnQuality="1" orient="forward" leftFlankNeighborPos="399" rightFlankNeighborPos="401" leftContigNeighborPos="3642741" rightContigNeighborPos="3642743" numberOfMismatches="1" numberOfDeletions="0" numberOfInsertions="0"></MapLoc>
209
+ </Component>
210
+ <Component componentType="contig" ctgId="224515579" accession="NT_167246.1" name="NT_167246.1" chromosome="6" orientation="fwd" gi="224515579" groupTerm="GRCh37" contigLabel="GRCh37">
211
+ <MapLoc asnFrom="3706679" asnTo="3706679" locType="exact" alnQuality="0.993719" orient="forward" leftFlankNeighborPos="399" rightFlankNeighborPos="401" leftContigNeighborPos="3706678" rightContigNeighborPos="3706680" numberOfMismatches="6" numberOfDeletions="0" numberOfInsertions="0"></MapLoc>
212
+ </Component>
213
+ <Component componentType="contig" ctgId="224515580" accession="NT_167247.1" name="NT_167247.1" chromosome="6" orientation="fwd" gi="224515580" groupTerm="GRCh37" contigLabel="GRCh37">
214
+ <MapLoc asnFrom="3743401" asnTo="3743401" locType="exact" alnQuality="0.995894" orient="forward" leftFlankNeighborPos="399" rightFlankNeighborPos="401" leftContigNeighborPos="3743400" rightContigNeighborPos="3743402" numberOfMismatches="4" numberOfDeletions="0" numberOfInsertions="0"></MapLoc>
215
+ </Component>
216
+ <Component componentType="contig" ctgId="224515581" accession="NT_167248.1" name="NT_167248.1" chromosome="6" orientation="fwd" gi="224515581" groupTerm="GRCh37" contigLabel="GRCh37">
217
+ <MapLoc asnFrom="3624701" asnTo="3624701" locType="exact" alnQuality="1" orient="forward" leftFlankNeighborPos="399" rightFlankNeighborPos="401" leftContigNeighborPos="3624700" rightContigNeighborPos="3624702" numberOfMismatches="1" numberOfDeletions="0" numberOfInsertions="0"></MapLoc>
218
+ </Component>
219
+ <Component componentType="contig" ctgId="224515582" accession="NT_167249.1" name="NT_167249.1" chromosome="6" orientation="fwd" gi="224515582" groupTerm="GRCh37" contigLabel="GRCh37">
220
+ <MapLoc asnFrom="3711286" asnTo="3711286" locType="exact" alnQuality="0.995894" orient="forward" leftFlankNeighborPos="399" rightFlankNeighborPos="401" leftContigNeighborPos="3711285" rightContigNeighborPos="3711287" numberOfMismatches="4" numberOfDeletions="0" numberOfInsertions="0"></MapLoc>
221
+ </Component>
222
+ <SnpStat mapWeight="unique-in-contig" chromCount="1" placedContigCount="1" unplacedContigCount="0" seqlocCount="8" hapCount="0"/>
223
+ </Assembly>
224
+ <Assembly dbSnpBuild="132" genomeBuild="37_1" groupLabel="HuRef" current="true">
225
+ <Component componentType="contig" ctgId="157696541" accession="NW_001838980.1" name="NW_001838980.1" chromosome="6" start="26727691" end="39531031" orientation="fwd" gi="157696541" groupTerm="HuRef" contigLabel="HuRef">
226
+ <MapLoc asnFrom="5390074" asnTo="5390074" locType="exact" alnQuality="0.995894" orient="forward" physMapInt="32117765" leftFlankNeighborPos="399" rightFlankNeighborPos="401" leftContigNeighborPos="5390073" rightContigNeighborPos="5390075" numberOfMismatches="4" numberOfDeletions="0" numberOfInsertions="0"></MapLoc>
227
+ </Component>
228
+ <SnpStat mapWeight="unique-in-contig" chromCount="1" placedContigCount="1" unplacedContigCount="0" seqlocCount="1" hapCount="0"/>
229
+ </Assembly>
230
+ <PrimarySequence dbSnpBuild="132" gi="9624968" source="remap" accession="NM_019602">
231
+ <MapLoc asnFrom="1049" asnTo="1049" locType="exact" alnQuality="1" orient="reverse" leftContigNeighborPos="1048" rightContigNeighborPos="1050"></MapLoc>
232
+ </PrimarySequence>
233
+ <RsStruct protAcc="NP_062548" protGi="9624969" protLoc="350" protResidue="Q" rsResidue="Q" structGi="209870436" structLoc="111" structResidue="E"/>
234
+ <RsStruct protAcc="NP_062548" protGi="9624969" protLoc="350" protResidue="Q" rsResidue="H" structGi="209870436" structLoc="111" structResidue="E"/>
235
+ <RsStruct protAcc="NP_062548" protGi="9624969" protLoc="350" protResidue="Q" rsResidue="H" structGi="209870436" structLoc="111" structResidue="E"/>
236
+ <RsLinkout resourceId="1" linkValue="9268480"/>
237
+ <MergeHistory rsId="57538739" buildId="130"/>
238
+ <MergeHistory rsId="17423795" buildId="123"/>
239
+ <MergeHistory rsId="17208804" buildId="126"/>
240
+ <hgvs>NM_019602.1:c.1050G&gt;A</hgvs>
241
+ <hgvs>NT_007592.15:g.32303844C&gt;T</hgvs>
242
+ </Rs>
243
+
244
+
245
+
246
+ <Summary/><BaseURL></BaseURL></ExchangeSet>
@@ -0,0 +1,7 @@
1
+ module Macros
2
+
3
+ def file_fixture(file_name)
4
+ File.open(File.join(File.dirname(__FILE__), 'fixtures/', file_name)).read
5
+ end
6
+
7
+ end
metadata ADDED
@@ -0,0 +1,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: entrez
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Jared Ning
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-02-03 00:00:00 -06:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: httparty
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ type: :runtime
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: rspec
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - "="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 2
43
+ - 4
44
+ - 0
45
+ version: 2.4.0
46
+ type: :development
47
+ version_requirements: *id002
48
+ description: Simple API for HTTP requests to Entrez E-utilities
49
+ email:
50
+ - jared@redningja.com
51
+ executables: []
52
+
53
+ extensions: []
54
+
55
+ extra_rdoc_files: []
56
+
57
+ files:
58
+ - .gitignore
59
+ - .rvmrc
60
+ - Gemfile
61
+ - Rakefile
62
+ - entrez.gemspec
63
+ - lib/entrez.rb
64
+ - lib/entrez/version.rb
65
+ - spec/entrez_spec.rb
66
+ - spec/spec_helper.rb
67
+ - spec/support/fixtures/efetch.xml
68
+ - spec/support/macros.rb
69
+ has_rdoc: true
70
+ homepage: https://github.com/ordinaryzelig/entrez
71
+ licenses: []
72
+
73
+ post_install_message:
74
+ rdoc_options: []
75
+
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
85
+ version: "0"
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ segments:
92
+ - 0
93
+ version: "0"
94
+ requirements: []
95
+
96
+ rubyforge_project: entrez
97
+ rubygems_version: 1.3.7
98
+ signing_key:
99
+ specification_version: 3
100
+ summary: HTTP requests to Entrez E-utilities
101
+ test_files:
102
+ - spec/entrez_spec.rb
103
+ - spec/spec_helper.rb
104
+ - spec/support/fixtures/efetch.xml
105
+ - spec/support/macros.rb