Skip to content

Commit 59c3b6a

Browse files
authored
Merge pull request #6 from Persdre/pr/5
Pr/5
2 parents 5e7ec91 + dfde296 commit 59c3b6a

16 files changed

+112
-100
lines changed

unsolved-exercises/00-tutorial.ipynb

+44-32
Original file line numberDiff line numberDiff line change
@@ -39,38 +39,38 @@
3939
"FlyMine Beta<br/>\n",
4040
"XenMine"
4141
]
42-
},
43-
{
44-
"cell_type": "markdown",
45-
"metadata": {},
46-
"source": [
47-
"Now that we have the mines, we can use `getInfo(mine)` to fetch all the information about a particular mine ie its description, version, organisms associated etc. Suppose we want to know more about flymine, here's what we do: "
48-
]
49-
},
50-
{
51-
"cell_type": "code",
52-
"execution_count": null,
53-
"metadata": {},
54-
"outputs": [],
55-
"source": [
56-
"registry.getInfo(\"flymine\")"
57-
]
58-
},
59-
{
60-
"cell_type": "markdown",
61-
"metadata": {},
62-
"source": [
63-
"Description: An integrated database for Drosophila genomics<br/>\n",
64-
"URL: http://www.flymine.org/flymine<br/>\n",
65-
"API Version: 25<br/>\n",
66-
"Release Version: 45.1 2017 August<br/>\n",
67-
"InterMine Version: 1.8.5<br/>\n",
68-
"Organisms: <br/>\n",
69-
"D. melanogaster<br/>\n",
70-
"Neighbours: <br/>\n",
71-
"MODs<br/>\n"
72-
]
73-
},
42+
},
43+
{
44+
"cell_type": "markdown",
45+
"metadata": {},
46+
"source": [
47+
"Now that we have the mines, we can use `getInfo(mine)` to fetch all the information about a particular mine ie its description, version, organisms associated etc. Suppose we want to know more about flymine, here's what we do: "
48+
]
49+
},
50+
{
51+
"cell_type": "code",
52+
"execution_count": null,
53+
"metadata": {},
54+
"outputs": [],
55+
"source": [
56+
"registry.getInfo(\"flymine\")"
57+
]
58+
},
59+
{
60+
"cell_type": "markdown",
61+
"metadata": {},
62+
"source": [
63+
"Description: An integrated database for Drosophila genomics<br/>\n",
64+
"URL: http://www.flymine.org/flymine<br/>\n",
65+
"API Version: 25<br/>\n",
66+
"Release Version: 45.1 2017 August<br/>\n",
67+
"InterMine Version: 1.8.5<br/>\n",
68+
"Organisms: <br/>\n",
69+
"D. melanogaster<br/>\n",
70+
"Neighbours: <br/>\n",
71+
"MODs<br/>\n"
72+
]
73+
},
7474
{
7575
"cell_type": "markdown",
7676
"metadata": {},
@@ -179,6 +179,18 @@
179179
"display_name": "Python 3",
180180
"language": "python",
181181
"name": "python3"
182+
},
183+
"language_info": {
184+
"codemirror_mode": {
185+
"name": "ipython",
186+
"version": 3
187+
},
188+
"file_extension": ".py",
189+
"mimetype": "text/x-python",
190+
"name": "python",
191+
"nbconvert_exporter": "python",
192+
"pygments_lexer": "ipython3",
193+
"version": "3.7.4"
182194
}
183195
},
184196
"nbformat": 4,

unsolved-exercises/01-tutorial.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"# 1. Import the intermine.webservice module\n",
3838
"from intermine.webservice import Service\n",
3939
"# 2. Instantiate a Service object. You can use \n",
40-
"# FlyMine's web service url: \"http://www.flymine.org/flymine/service\"\n",
40+
"# FlyMine's web service url: \"https://www.flymine.org/flymine/service\"\n",
4141
"# Or your favourite intermine.... \n",
4242
"# Syntax: service = Service(some_url)"
4343
]
@@ -341,7 +341,7 @@
341341
"name": "python",
342342
"nbconvert_exporter": "python",
343343
"pygments_lexer": "ipython3",
344-
"version": "3.6.4"
344+
"version": "3.7.4"
345345
}
346346
},
347347
"nbformat": 4,

unsolved-exercises/02-tutorial.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"metadata": {},
3737
"outputs": [],
3838
"source": [
39-
"service = Service(\"www.flymine.org/flymine/service\")\n",
39+
"service = Service(\"https://www.flymine.org/flymine/service\")\n",
4040
"query=service.new_query(\"Organism\") "
4141
]
4242
},
@@ -470,7 +470,7 @@
470470
"name": "python",
471471
"nbconvert_exporter": "python",
472472
"pygments_lexer": "ipython3",
473-
"version": "3.6.4"
473+
"version": "3.7.4"
474474
}
475475
},
476476
"nbformat": 4,

unsolved-exercises/03-tutorial.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"metadata": {},
3131
"outputs": [],
3232
"source": [
33-
"service = Service(\"www.flymine.org/flymine/service\")\n",
33+
"service = Service(\"https://www.flymine.org/flymine/service\")\n",
3434
"query=service.new_query(\"Gene\") "
3535
]
3636
},
@@ -467,21 +467,21 @@
467467
"metadata": {
468468
"anaconda-cloud": {},
469469
"kernelspec": {
470-
"display_name": "Python 2",
470+
"display_name": "Python 3",
471471
"language": "python",
472-
"name": "python2"
472+
"name": "python3"
473473
},
474474
"language_info": {
475475
"codemirror_mode": {
476476
"name": "ipython",
477-
"version": 2
477+
"version": 3
478478
},
479479
"file_extension": ".py",
480480
"mimetype": "text/x-python",
481481
"name": "python",
482482
"nbconvert_exporter": "python",
483-
"pygments_lexer": "ipython2",
484-
"version": "2.7.14"
483+
"pygments_lexer": "ipython3",
484+
"version": "3.7.4"
485485
}
486486
},
487487
"nbformat": 4,

unsolved-exercises/04-tutorial.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
},
5656
"outputs": [],
5757
"source": [
58-
"service = Service(\"www.flymine.org/flymine/service\")\n",
58+
"service = Service(\"https://www.flymine.org/flymine/service\")\n",
5959
"query=service.new_query(\"Gene\")"
6060
]
6161
},
@@ -174,21 +174,21 @@
174174
"metadata": {
175175
"anaconda-cloud": {},
176176
"kernelspec": {
177-
"display_name": "Python 2",
177+
"display_name": "Python 3",
178178
"language": "python",
179-
"name": "python2"
179+
"name": "python3"
180180
},
181181
"language_info": {
182182
"codemirror_mode": {
183183
"name": "ipython",
184-
"version": 2
184+
"version": 3
185185
},
186186
"file_extension": ".py",
187187
"mimetype": "text/x-python",
188188
"name": "python",
189189
"nbconvert_exporter": "python",
190-
"pygments_lexer": "ipython2",
191-
"version": "2.7.14"
190+
"pygments_lexer": "ipython3",
191+
"version": "3.7.4"
192192
}
193193
},
194194
"nbformat": 4,

unsolved-exercises/05-tutorial.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"outputs": [],
2929
"source": [
3030
"from intermine.webservice import Service\n",
31-
"service = Service(\"www.flymine.org/flymine/service\")\n",
31+
"service = Service(\"https://www.flymine.org/flymine/service\")\n",
3232
"query=service.new_query(\"Gene\")\n",
3333
"query.select(\"publications.*\")\n",
3434
"query.add_constraint(\"Gene\",\"LOOKUP\",\"zen\",extra_value=\"D. melanogaster\")"
@@ -254,21 +254,21 @@
254254
"metadata": {
255255
"anaconda-cloud": {},
256256
"kernelspec": {
257-
"display_name": "Python 2",
257+
"display_name": "Python 3",
258258
"language": "python",
259-
"name": "python2"
259+
"name": "python3"
260260
},
261261
"language_info": {
262262
"codemirror_mode": {
263263
"name": "ipython",
264-
"version": 2
264+
"version": 3
265265
},
266266
"file_extension": ".py",
267267
"mimetype": "text/x-python",
268268
"name": "python",
269269
"nbconvert_exporter": "python",
270-
"pygments_lexer": "ipython2",
271-
"version": "2.7.14"
270+
"pygments_lexer": "ipython3",
271+
"version": "3.7.4"
272272
}
273273
},
274274
"nbformat": 4,

unsolved-exercises/06-tutorial.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"source": [
3030
"#Query setup\n",
3131
"from intermine.webservice import Service\n",
32-
"service = Service(\"www.flymine.org/flymine/service\")\n",
32+
"service = Service(\"https://www.flymine.org/flymine/service\")\n",
3333
"query=service.new_query()\n",
3434
"query.add_views(\"RNASeqResult.expressionScore RNASeqResult.expressionLevel RNASeqResult.gene.symbol\")"
3535
]
@@ -199,21 +199,21 @@
199199
"metadata": {
200200
"anaconda-cloud": {},
201201
"kernelspec": {
202-
"display_name": "Python 2",
202+
"display_name": "Python 3",
203203
"language": "python",
204-
"name": "python2"
204+
"name": "python3"
205205
},
206206
"language_info": {
207207
"codemirror_mode": {
208208
"name": "ipython",
209-
"version": 2
209+
"version": 3
210210
},
211211
"file_extension": ".py",
212212
"mimetype": "text/x-python",
213213
"name": "python",
214214
"nbconvert_exporter": "python",
215-
"pygments_lexer": "ipython2",
216-
"version": "2.7.14"
215+
"pygments_lexer": "ipython3",
216+
"version": "3.7.4"
217217
}
218218
},
219219
"nbformat": 4,

unsolved-exercises/07-tutorial.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"outputs": [],
4343
"source": [
4444
"from intermine.webservice import Service\n",
45-
"service = Service(\"www.flymine.org/flymine/service\")\n",
45+
"service = Service(\"https://www.flymine.org/flymine/service\")\n",
4646
"template=service.get_template('All_Genes_In_Organism_To_Publications')"
4747
]
4848
},
@@ -205,21 +205,21 @@
205205
"metadata": {
206206
"anaconda-cloud": {},
207207
"kernelspec": {
208-
"display_name": "Python 2",
208+
"display_name": "Python 3",
209209
"language": "python",
210-
"name": "python2"
210+
"name": "python3"
211211
},
212212
"language_info": {
213213
"codemirror_mode": {
214214
"name": "ipython",
215-
"version": 2
215+
"version": 3
216216
},
217217
"file_extension": ".py",
218218
"mimetype": "text/x-python",
219219
"name": "python",
220220
"nbconvert_exporter": "python",
221-
"pygments_lexer": "ipython2",
222-
"version": "2.7.14"
221+
"pygments_lexer": "ipython3",
222+
"version": "3.7.4"
223223
}
224224
},
225225
"nbformat": 4,

unsolved-exercises/08-tutorial.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"outputs": [],
4646
"source": [
4747
"#Update this line with your username, password, and change the url of the InterMine if needed.\n",
48-
"service=Service(\"www.flymine.org/flymine/service\",username=\"Enter username\",password=\"Enter password\")"
48+
"service=Service(\"https://www.flymine.org/flymine/service\",username=\"Enter username\",password=\"Enter password\")"
4949
]
5050
},
5151
{
@@ -136,21 +136,21 @@
136136
"metadata": {
137137
"anaconda-cloud": {},
138138
"kernelspec": {
139-
"display_name": "Python 2",
139+
"display_name": "Python 3",
140140
"language": "python",
141-
"name": "python2"
141+
"name": "python3"
142142
},
143143
"language_info": {
144144
"codemirror_mode": {
145145
"name": "ipython",
146-
"version": 2
146+
"version": 3
147147
},
148148
"file_extension": ".py",
149149
"mimetype": "text/x-python",
150150
"name": "python",
151151
"nbconvert_exporter": "python",
152-
"pygments_lexer": "ipython2",
153-
"version": "2.7.14"
152+
"pygments_lexer": "ipython3",
153+
"version": "3.7.4"
154154
}
155155
},
156156
"nbformat": 4,

unsolved-exercises/09-tutorial.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"metadata": {},
4444
"outputs": [],
4545
"source": [
46-
"#service=Service(\"www.flymine.org/flymine/service\",username=\"Enter username\",password=\"Enter password\")"
46+
"#service=Service(\"https://www.flymine.org/flymine/service\",username=\"Enter username\",password=\"Enter password\")"
4747
]
4848
},
4949
{
@@ -205,21 +205,21 @@
205205
"metadata": {
206206
"anaconda-cloud": {},
207207
"kernelspec": {
208-
"display_name": "Python 2",
208+
"display_name": "Python 3",
209209
"language": "python",
210-
"name": "python2"
210+
"name": "python3"
211211
},
212212
"language_info": {
213213
"codemirror_mode": {
214214
"name": "ipython",
215-
"version": 2
215+
"version": 3
216216
},
217217
"file_extension": ".py",
218218
"mimetype": "text/x-python",
219219
"name": "python",
220220
"nbconvert_exporter": "python",
221-
"pygments_lexer": "ipython2",
222-
"version": "2.7.14"
221+
"pygments_lexer": "ipython3",
222+
"version": "3.7.4"
223223
}
224224
},
225225
"nbformat": 4,

0 commit comments

Comments
 (0)