Skip to content

Commit 7d15876

Browse files
committed
Merge branch 'rebased_denovo_nf-core' into AWS-GCP
Merging rebased denovo nf-core branch to AWS-GCP branch
2 parents d66de74 + 2032c3a commit 7d15876

4 files changed

Lines changed: 77 additions & 57 deletions

File tree

GoogleCloud/Submodule_2_annotation_only.ipynb

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"metadata": {},
77
"source": [
88
"# MDIBL Transcriptome Assembly Learning Module\n",
9-
"# Notebook 2: Using \"denovoscript\" to Performing an \"Annotation Only\" Run"
9+
"# Notebook 2: Using \"denovoscript\" to Perform an \"Annotation Only\" Run"
1010
]
1111
},
1212
{
@@ -123,6 +123,17 @@
123123
">`gsutil` is a tool allows you to interact with Google storage buckes through the command line."
124124
]
125125
},
126+
{
127+
"cell_type": "code",
128+
"execution_count": null,
129+
"id": "b6c7eca2",
130+
"metadata": {},
131+
"outputs": [],
132+
"source": [
133+
"# Create the bucket in your notebook first \n",
134+
"!mkdir ./resources"
135+
]
136+
},
126137
{
127138
"cell_type": "code",
128139
"execution_count": null,
@@ -148,7 +159,7 @@
148159
"metadata": {},
149160
"outputs": [],
150161
"source": [
151-
"! grep -c \">\" ./resources/trans/Oncorhynchus_mykiss_GGBN01.1.fa"
162+
"!grep -c \">\" /home/jupyter/resources/trans/Oncorhynchus_mykiss_GGBN01.1.fa"
152163
]
153164
},
154165
{
@@ -267,7 +278,7 @@
267278
"outputs": [],
268279
"source": [
269280
"! mkdir -p <Your-Output-Directory-annotation-only>\n",
270-
"! gsutil cp -r s3://<YOUR-BUCKET-NAME>/<Your-Output-Directory-annotation-only>/ ./<Your-Output-Directory-annotation-only>"
281+
"! gsutil -m cp -r gs://<YOUR-BUCKET-NAME>/<Your-Output-Directory-annotation-only>/ <Your-Output-Directory-annotation-only>"
271282
]
272283
},
273284
{
@@ -277,24 +288,15 @@
277288
"metadata": {},
278289
"outputs": [],
279290
"source": [
280-
"! ls -l ./<Your-Output-Directory-annotation-only>"
281-
]
282-
},
283-
{
284-
"cell_type": "markdown",
285-
"id": "a96e29ed",
286-
"metadata": {},
287-
"source": [
288-
"----\n",
289-
"# Andrea, please update this part"
291+
"! ls -l <Your-Output-Directory-annotation-only>"
290292
]
291293
},
292294
{
293295
"cell_type": "markdown",
294296
"id": "f3255502-270c-4ebb-9f72-141c4fab5c0f",
295297
"metadata": {},
296298
"source": [
297-
"Let's take a look at the `RUN_INFO.txt` file to see what the parameters and programs associated with our analysis were."
299+
"Let's take a look at the `params.json` file to see what the parameters and programs associated with our analysis were. This json file will have the date you ran the pipeline as well a pipeline identifier. Update the code below to look at the `params.json` file."
298300
]
299301
},
300302
{
@@ -304,15 +306,7 @@
304306
"metadata": {},
305307
"outputs": [],
306308
"source": [
307-
"! cat ./onlyAnnRun/output/RUN_INFO.txt"
308-
]
309-
},
310-
{
311-
"cell_type": "markdown",
312-
"id": "9c86c829",
313-
"metadata": {},
314-
"source": [
315-
"---"
309+
"! cat ./<Your-Output-Directory-annotation-only>/pipeline_info/params_<Date-identifier>.json"
316310
]
317311
},
318312
{
@@ -331,7 +325,7 @@
331325
">\n",
332326
">Container systems ([Docker](https://www.docker.com/) and [Singularity](https://sylabs.io/singularity/) are the two most well-known examples) address this by installing and encapsulating the program and all of its necessary supporting components in an image. Each program is then executed in the context of its container image, which is activated just long enough to run its program.\n",
333327
">\n",
334-
">Because of the way that we have run the TransPi workflow in the previous, our system will already have several container images installed. We can now work directly with these images."
328+
">Because of the way that we have run the denovotranscript workflow previously, our system will already have several container images installed. We can now work directly with these images."
335329
]
336330
},
337331
{
@@ -420,6 +414,17 @@
420414
"! echo $THREADS"
421415
]
422416
},
417+
{
418+
"cell_type": "code",
419+
"execution_count": null,
420+
"id": "ac8e5dc6",
421+
"metadata": {},
422+
"outputs": [],
423+
"source": [
424+
"# make the output folder \n",
425+
"!mkdir -p ./buscoOutput"
426+
]
427+
},
423428
{
424429
"cell_type": "code",
425430
"execution_count": null,
@@ -428,9 +433,9 @@
428433
"outputs": [],
429434
"source": [
430435
"! docker run -it --rm --volume /home:/home quay.io/biocontainers/busco:5.4.3--pyhdfd78af_0 busco \\\n",
431-
"-i /home/ec2-user/SageMaker/Transcriptome-Assembly-Refinement-and-Applications/GoogleCloud/resources/trans/Oncorhynchus_mykiss_GGBN01.1.fa \\\n",
436+
"-i /home/jupyter/resources/trans/Oncorhynchus_mykiss_GGBN01.1.fa \\\n",
432437
"-l vertebrata_odb10 -o GGBN01_busco_vertebrata \\\n",
433-
"--out_path /home/ec2-user/SageMaker/Transcriptome-Assembly-Refinement-and-Applications/GoogleCloud/buscoOutput -m tran -c $THREADS"
438+
"--out_path ./buscoOutput -m tran -c $THREADS"
434439
]
435440
},
436441
{
@@ -535,9 +540,9 @@
535540
"outputs": [],
536541
"source": [
537542
"! docker run -it --rm --volume /home:/home quay.io/biocontainers/busco:5.4.3--pyhdfd78af_0 busco \\\n",
538-
" -i /home/ec2-user/SageMaker/Transcriptome-Assembly-Refinement-and-Applications/GoogleCloud/resources/trans/Pseudacris_regilla_GAEI01.1.fa \\\n",
543+
" -i /home/jupyter/resources/trans/Pseudacris_regilla_GAEI01.1.fa \\\n",
539544
" -l vertebrata_odb10 -o GAEI01_busco_vertebrata \\\n",
540-
" --out_path /home/ec2-user/SageMaker/Transcriptome-Assembly-Refinement-and-Applications/GoogleCloud/buscoOutpu -m tran -c $THREADS"
545+
" --out_path ./buscoOutput -m tran -c $THREADS"
541546
]
542547
},
543548
{

0 commit comments

Comments
 (0)