|
74 | 74 | "cell_type": "code", |
75 | 75 | "execution_count": null, |
76 | 76 | "id": "cf9e21b4-07d3-4e79-9c94-067b70e78ff6", |
77 | | - "metadata": {}, |
| 77 | + "metadata": { |
| 78 | + "tags": [] |
| 79 | + }, |
78 | 80 | "outputs": [], |
79 | 81 | "source": [ |
80 | 82 | "#make sure you change this name, it needs to be globally unique\n", |
|
85 | 87 | "cell_type": "code", |
86 | 88 | "execution_count": null, |
87 | 89 | "id": "e47789f2-e38d-46ec-8750-0a235b0c4337", |
88 | | - "metadata": {}, |
| 90 | + "metadata": { |
| 91 | + "tags": [] |
| 92 | + }, |
89 | 93 | "outputs": [], |
90 | 94 | "source": [ |
91 | 95 | "#will only create the bucket if it doesn't yet exist\n", |
|
96 | 100 | "cell_type": "code", |
97 | 101 | "execution_count": null, |
98 | 102 | "id": "5a4ccc7d-b258-410a-85fb-f261fa0dcade", |
99 | | - "metadata": {}, |
| 103 | + "metadata": { |
| 104 | + "tags": [] |
| 105 | + }, |
100 | 106 | "outputs": [], |
101 | 107 | "source": [ |
102 | 108 | "#set versioning on the bucket so it can overwrite old files\n", |
|
147 | 153 | "cell_type": "code", |
148 | 154 | "execution_count": null, |
149 | 155 | "id": "2619673e-9645-4460-aa07-323d01bcd9ba", |
150 | | - "metadata": {}, |
| 156 | + "metadata": { |
| 157 | + "tags": [] |
| 158 | + }, |
151 | 159 | "outputs": [], |
152 | 160 | "source": [ |
153 | 161 | "#First install java\n", |
|
160 | 168 | "cell_type": "code", |
161 | 169 | "execution_count": null, |
162 | 170 | "id": "c24cb2d9-6260-45fc-a4c0-f55688c43e11", |
163 | | - "metadata": {}, |
| 171 | + "metadata": { |
| 172 | + "tags": [] |
| 173 | + }, |
164 | 174 | "outputs": [], |
165 | 175 | "source": [ |
166 | 176 | "#Specify nexflow version and platfrom\n", |
|
180 | 190 | "outputs": [], |
181 | 191 | "source": [ |
182 | 192 | "#Install SRAtools to download data\n", |
| 193 | + "\n", |
| 194 | + "#Option 1: Using mamba\n", |
183 | 195 | "! mamba install -c bioconda -c conda-forge sra-tools==2.11.0 -y" |
184 | 196 | ] |
185 | 197 | }, |
| 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 | + }, |
186 | 213 | { |
187 | 214 | "cell_type": "markdown", |
188 | 215 | "id": "1bc477a9-7b3f-431e-93b7-50e96809bfc5", |
|
196 | 223 | "cell_type": "code", |
197 | 224 | "execution_count": null, |
198 | 225 | "id": "facdbaea-d6ca-4270-9ddc-7c5d042b7373", |
199 | | - "metadata": {}, |
| 226 | + "metadata": { |
| 227 | + "tags": [] |
| 228 | + }, |
200 | 229 | "outputs": [], |
201 | 230 | "source": [ |
202 | 231 | "#set up directory structure\n", |
|
215 | 244 | "cell_type": "code", |
216 | 245 | "execution_count": null, |
217 | 246 | "id": "b8ca1c0f-3844-42f8-a9e2-546178a6d961", |
218 | | - "metadata": {}, |
| 247 | + "metadata": { |
| 248 | + "tags": [] |
| 249 | + }, |
219 | 250 | "outputs": [], |
220 | 251 | "source": [ |
221 | 252 | "%%time\n", |
|
238 | 269 | "outputs": [], |
239 | 270 | "source": [ |
240 | 271 | "%%time\n", |
241 | | - "! fasterq-dump -f -e 8 -m 24G SRR067701.sra" |
| 272 | + "! fasterq-dump -f -e 8 -m 24G SRR067701" |
242 | 273 | ] |
243 | 274 | }, |
244 | 275 | { |
|
398 | 429 | ] |
399 | 430 | } |
400 | 431 | ], |
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 | + }, |
402 | 457 | "nbformat": 4, |
403 | 458 | "nbformat_minor": 5 |
404 | 459 | } |
0 commit comments