Skip to content

Commit 6f49bc1

Browse files
updated installation instructions
1 parent def870e commit 6f49bc1

File tree

1 file changed

+64
-9
lines changed

1 file changed

+64
-9
lines changed

notebooks/GoogleBatch/nextflow/Part2_GBatch_Nextflow.ipynb

Lines changed: 64 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@
7474
"cell_type": "code",
7575
"execution_count": null,
7676
"id": "cf9e21b4-07d3-4e79-9c94-067b70e78ff6",
77-
"metadata": {},
77+
"metadata": {
78+
"tags": []
79+
},
7880
"outputs": [],
7981
"source": [
8082
"#make sure you change this name, it needs to be globally unique\n",
@@ -85,7 +87,9 @@
8587
"cell_type": "code",
8688
"execution_count": null,
8789
"id": "e47789f2-e38d-46ec-8750-0a235b0c4337",
88-
"metadata": {},
90+
"metadata": {
91+
"tags": []
92+
},
8993
"outputs": [],
9094
"source": [
9195
"#will only create the bucket if it doesn't yet exist\n",
@@ -96,7 +100,9 @@
96100
"cell_type": "code",
97101
"execution_count": null,
98102
"id": "5a4ccc7d-b258-410a-85fb-f261fa0dcade",
99-
"metadata": {},
103+
"metadata": {
104+
"tags": []
105+
},
100106
"outputs": [],
101107
"source": [
102108
"#set versioning on the bucket so it can overwrite old files\n",
@@ -147,7 +153,9 @@
147153
"cell_type": "code",
148154
"execution_count": null,
149155
"id": "2619673e-9645-4460-aa07-323d01bcd9ba",
150-
"metadata": {},
156+
"metadata": {
157+
"tags": []
158+
},
151159
"outputs": [],
152160
"source": [
153161
"#First install java\n",
@@ -160,7 +168,9 @@
160168
"cell_type": "code",
161169
"execution_count": null,
162170
"id": "c24cb2d9-6260-45fc-a4c0-f55688c43e11",
163-
"metadata": {},
171+
"metadata": {
172+
"tags": []
173+
},
164174
"outputs": [],
165175
"source": [
166176
"#Specify nexflow version and platfrom\n",
@@ -180,9 +190,26 @@
180190
"outputs": [],
181191
"source": [
182192
"#Install SRAtools to download data\n",
193+
"\n",
194+
"#Option 1: Using mamba\n",
183195
"! mamba install -c bioconda -c conda-forge sra-tools==2.11.0 -y"
184196
]
185197
},
198+
{
199+
"cell_type": "code",
200+
"execution_count": null,
201+
"id": "1242056b-39f3-435d-b0d4-2757c3faa0ff",
202+
"metadata": {},
203+
"outputs": [],
204+
"source": [
205+
"#Option 2: Manual Install with wget \n",
206+
"\n",
207+
"!wget https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/current/sratoolkit.current-ubuntu64.tar.gz && \\\n",
208+
"tar -xvzf sratoolkit.current-ubuntu64.tar.gz && \\\n",
209+
"export PATH=$PATH:$(pwd)/sratoolkit.*-ubuntu64/bin && \\\n",
210+
"fasterq-dump --version"
211+
]
212+
},
186213
{
187214
"cell_type": "markdown",
188215
"id": "1bc477a9-7b3f-431e-93b7-50e96809bfc5",
@@ -196,7 +223,9 @@
196223
"cell_type": "code",
197224
"execution_count": null,
198225
"id": "facdbaea-d6ca-4270-9ddc-7c5d042b7373",
199-
"metadata": {},
226+
"metadata": {
227+
"tags": []
228+
},
200229
"outputs": [],
201230
"source": [
202231
"#set up directory structure\n",
@@ -215,7 +244,9 @@
215244
"cell_type": "code",
216245
"execution_count": null,
217246
"id": "b8ca1c0f-3844-42f8-a9e2-546178a6d961",
218-
"metadata": {},
247+
"metadata": {
248+
"tags": []
249+
},
219250
"outputs": [],
220251
"source": [
221252
"%%time\n",
@@ -238,7 +269,7 @@
238269
"outputs": [],
239270
"source": [
240271
"%%time\n",
241-
"! fasterq-dump -f -e 8 -m 24G SRR067701.sra"
272+
"! fasterq-dump -f -e 8 -m 24G SRR067701"
242273
]
243274
},
244275
{
@@ -398,7 +429,31 @@
398429
]
399430
}
400431
],
401-
"metadata": {},
432+
"metadata": {
433+
"environment": {
434+
"kernel": "conda-base-py",
435+
"name": "workbench-notebooks.m129",
436+
"type": "gcloud",
437+
"uri": "us-docker.pkg.dev/deeplearning-platform-release/gcr.io/workbench-notebooks:m129"
438+
},
439+
"kernelspec": {
440+
"display_name": "Python 3 (ipykernel) (Local)",
441+
"language": "python",
442+
"name": "conda-base-py"
443+
},
444+
"language_info": {
445+
"codemirror_mode": {
446+
"name": "ipython",
447+
"version": 3
448+
},
449+
"file_extension": ".py",
450+
"mimetype": "text/x-python",
451+
"name": "python",
452+
"nbconvert_exporter": "python",
453+
"pygments_lexer": "ipython3",
454+
"version": "3.10.16"
455+
}
456+
},
402457
"nbformat": 4,
403458
"nbformat_minor": 5
404459
}

0 commit comments

Comments
 (0)