|
63 | 63 | "outputs": [], |
64 | 64 | "source": [ |
65 | 65 | "#update java\n", |
66 | | - "!sudo apt update\n", |
67 | | - "!sudo apt-get install default-jdk -y\n", |
68 | | - "!java -version" |
| 66 | + "! sudo apt update\n", |
| 67 | + "! sudo apt-get install default-jdk -y\n", |
| 68 | + "! java -version" |
69 | 69 | ] |
70 | 70 | }, |
71 | 71 | { |
|
76 | 76 | "outputs": [], |
77 | 77 | "source": [ |
78 | 78 | "# install mamba and dependencies\n", |
79 | | - "!curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh\n", |
80 | | - "!bash Mambaforge-$(uname)-$(uname -m).sh -b -p $HOME/mambaforge\n", |
81 | | - "!~/mambaforge/bin/mamba install -c bioconda sra-tools perl-dbd-sqlite perl-dbi -y" |
| 79 | + "! curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh\n", |
| 80 | + "! bash Mambaforge-$(uname)-$(uname -m).sh -b -p $HOME/mambaforge" |
| 81 | + ] |
| 82 | + }, |
| 83 | + { |
| 84 | + "cell_type": "code", |
| 85 | + "execution_count": null, |
| 86 | + "id": "7df1c464-b102-4e34-8f5f-57dbfc7f43b8", |
| 87 | + "metadata": {}, |
| 88 | + "outputs": [], |
| 89 | + "source": [ |
| 90 | + "# add mamba to your path\n", |
| 91 | + "import os\n", |
| 92 | + "os.environ[\"PATH\"] += os.pathsep + os.environ[\"HOME\"]+\"/mambaforge/bin\"" |
| 93 | + ] |
| 94 | + }, |
| 95 | + { |
| 96 | + "cell_type": "markdown", |
| 97 | + "id": "39bb00de-3481-4cb0-a2fe-098cfdae51a6", |
| 98 | + "metadata": {}, |
| 99 | + "source": [ |
| 100 | + "Use mamba to install: sra-tools perl-dbd-sqlite perl-dbi from channel bioconda\n", |
| 101 | + "\n", |
| 102 | + "<details>\n", |
| 103 | + " <summary>Click for help</summary>\n", |
| 104 | + "\n", |
| 105 | + "```\n", |
| 106 | + "mamba install -c bioconda sra-tools perl-dbd-sqlite perl-dbi -y\n", |
| 107 | + "```\n", |
| 108 | + " \n", |
| 109 | + "</details>" |
| 110 | + ] |
| 111 | + }, |
| 112 | + { |
| 113 | + "cell_type": "code", |
| 114 | + "execution_count": null, |
| 115 | + "id": "d1b80a47-89c9-469c-a1f8-9ee3c1817fa7", |
| 116 | + "metadata": {}, |
| 117 | + "outputs": [], |
| 118 | + "source": [ |
| 119 | + "! <YOUR COMMAND HERE>" |
82 | 120 | ] |
83 | 121 | }, |
84 | 122 | { |
|
89 | 127 | "outputs": [], |
90 | 128 | "source": [ |
91 | 129 | "#install Nextflow\n", |
92 | | - "!curl https://get.nextflow.io | bash\n", |
93 | | - "!chmod +x nextflow\n", |
94 | | - "!./nextflow self-update" |
| 130 | + "! curl https://get.nextflow.io | bash\n", |
| 131 | + "! chmod +x nextflow\n", |
| 132 | + "! ./nextflow self-update" |
95 | 133 | ] |
96 | 134 | }, |
97 | 135 | { |
|
101 | 139 | "metadata": {}, |
102 | 140 | "outputs": [], |
103 | 141 | "source": [ |
104 | | - "# Copy the software from the storage bucket\n", |
105 | | - "!gsutil -m cp -r gs://nigms-sandbox/nosi-inbremaine-storage/TransPi ./" |
| 142 | + "# Copy the software from gs://nigms-sandbox/nosi-inbremaine-storage/TransPi\n", |
| 143 | + "! <YOUR COMMAND HERE>" |
| 144 | + ] |
| 145 | + }, |
| 146 | + { |
| 147 | + "cell_type": "markdown", |
| 148 | + "id": "fbb26d8b-21ac-4907-b25a-3bd39b853d1b", |
| 149 | + "metadata": {}, |
| 150 | + "source": [ |
| 151 | + "<details>\n", |
| 152 | + " <summary>Click for help</summary>\n", |
| 153 | + "\n", |
| 154 | + "```\n", |
| 155 | + "gsutil -m cp -r gs://nigms-sandbox/nosi-inbremaine-storage/TransPi ./```\n", |
| 156 | + " \n", |
| 157 | + "</details>" |
106 | 158 | ] |
107 | 159 | }, |
108 | 160 | { |
|
112 | 164 | "metadata": {}, |
113 | 165 | "outputs": [], |
114 | 166 | "source": [ |
115 | | - "# Copy the data from the storage bucket\n", |
116 | | - "!gsutil -m cp -r gs://nigms-sandbox/nosi-inbremaine-storage/resources ./" |
| 167 | + "# Copy the data from gs://nigms-sandbox/nosi-inbremaine-storage/resources\n", |
| 168 | + "! <YOUR COMMAND HERE>" |
| 169 | + ] |
| 170 | + }, |
| 171 | + { |
| 172 | + "cell_type": "markdown", |
| 173 | + "id": "d73e5d6b-9b3f-46e2-9c5c-24713a2ad55c", |
| 174 | + "metadata": {}, |
| 175 | + "source": [ |
| 176 | + "<details>\n", |
| 177 | + " <summary>Click for help</summary>\n", |
| 178 | + "\n", |
| 179 | + "```\n", |
| 180 | + "gsutil -m cp -r gs://nigms-sandbox/nosi-inbremaine-storage/resources ./\n", |
| 181 | + "```\n", |
| 182 | + " \n", |
| 183 | + "</details>" |
117 | 184 | ] |
118 | 185 | }, |
119 | 186 | { |
|
144 | 211 | }, |
145 | 212 | "outputs": [], |
146 | 213 | "source": [ |
147 | | - "!ls ./resources/seq2" |
| 214 | + "! ls ./resources/seq2" |
148 | 215 | ] |
149 | 216 | }, |
150 | 217 | { |
|
165 | 232 | }, |
166 | 233 | { |
167 | 234 | "cell_type": "code", |
168 | | - "execution_count": 1, |
| 235 | + "execution_count": null, |
169 | 236 | "id": "9a7bb7e0-f7eb-4166-96a9-b25b0885479c", |
170 | 237 | "metadata": { |
171 | 238 | "tags": [] |
|
209 | 276 | "metadata": {}, |
210 | 277 | "outputs": [], |
211 | 278 | "source": [ |
212 | | - "!NXF_VER=22.10.1 ./nextflow run ./TransPi/TransPi.nf \\\n", |
213 | | - "-profile docker --k 17,25,43 --maxReadLen 50 --all " |
| 279 | + "! NXF_VER=22.10.1 ./nextflow run \\\n", |
| 280 | + " ./TransPi/TransPi.nf \\\n", |
| 281 | + " -profile docker \\\n", |
| 282 | + " --k 17,25,43 \\\n", |
| 283 | + " --maxReadLen 50 \\\n", |
| 284 | + " --all " |
214 | 285 | ] |
215 | 286 | }, |
216 | 287 | { |
|
220 | 291 | "source": [ |
221 | 292 | "With the subsampled reads, the assembly should complete in about 2 hours using a n1-highmem-16 machine." |
222 | 293 | ] |
223 | | - }, |
224 | | - { |
225 | | - "cell_type": "code", |
226 | | - "execution_count": null, |
227 | | - "id": "a822011a-4d77-4d99-8124-67ecb8f3dacf", |
228 | | - "metadata": {}, |
229 | | - "outputs": [], |
230 | | - "source": [] |
231 | 294 | } |
232 | 295 | ], |
233 | 296 | "metadata": { |
|
238 | 301 | "uri": "gcr.io/deeplearning-platform-release/base-cpu:m113" |
239 | 302 | }, |
240 | 303 | "kernelspec": { |
241 | | - "display_name": "Python 3", |
| 304 | + "display_name": "PySpark (Local)", |
242 | 305 | "language": "python", |
243 | | - "name": "python3" |
| 306 | + "name": "local-pyspark" |
244 | 307 | }, |
245 | 308 | "language_info": { |
246 | 309 | "codemirror_mode": { |
|
252 | 315 | "name": "python", |
253 | 316 | "nbconvert_exporter": "python", |
254 | 317 | "pygments_lexer": "ipython3", |
255 | | - "version": "3.10.13" |
| 318 | + "version": "3.7.12" |
256 | 319 | } |
257 | 320 | }, |
258 | 321 | "nbformat": 4, |
|
0 commit comments