Skip to content

Commit a7223eb

Browse files
updated cloud formation templete link
1 parent 9f417e1 commit a7223eb

File tree

2 files changed

+292
-60
lines changed

2 files changed

+292
-60
lines changed

AWS/01-RNA-Seq/RNA-seq.ipynb

+106-22
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020
"cell_type": "code",
2121
"execution_count": null,
2222
"id": "f0e9ac26-e308-471a-83a4-113f767524b0",
23-
"metadata": {},
23+
"metadata": {
24+
"vscode": {
25+
"languageId": "r"
26+
}
27+
},
2428
"outputs": [],
2529
"source": [
2630
"IRdisplay::display_html('<iframe src = \"../../quiz_files/rna-pre_module.html\" width=95% height=600></iframe>')"
@@ -201,7 +205,11 @@
201205
"cell_type": "code",
202206
"execution_count": null,
203207
"id": "95cda0d2",
204-
"metadata": {},
208+
"metadata": {
209+
"vscode": {
210+
"languageId": "r"
211+
}
212+
},
205213
"outputs": [],
206214
"source": [
207215
"system('chmod +x install_rna_seq_packages.sh' , intern=TRUE)\n",
@@ -227,7 +235,7 @@
227235
"\n",
228236
"If you prefer to skip manual deployment and deploy automatically in the cloud, click the Launch Stack button below. For a walkthrough of the screens during automatic deployment please click [here](https://github.com/NIGMS/NIGMS-Sandbox/blob/main/docs/HowToLaunchAWSBatch.md). The deployment should take ~5 min and then the resources will be ready for use. \n",
229237
"\n",
230-
"[![Launch Stack](../../images/LaunchStack.jpg)](https://us-east-1.console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create?stackName=aws-batch-nigms&templateURL=https://nigms-sandbox.s3.us-east-1.amazonaws.com/cf-templates/AWSBatch_template.yaml)\n",
238+
"[![Launch Stack](../../images/LaunchStack.jpg)](https://console.aws.amazon.com/cloudformation/home?#/stacks/new?stackName=aws-batch-nigms&templateURL=https://nigms-sandbox.s3.us-east-1.amazonaws.com/cf-templates/AWSBatch_template.yaml)\n",
231239
"\n",
232240
"\n",
233241
"Before begining this tutorial, if you do not have required roles, policies, permissions or compute environment and would like to **manually** set those up please click [here](https://github.com/NIGMS/NIGMS-Sandbox/blob/main/docs/AWS-Batch-Setup.md) to set that up."
@@ -245,7 +253,11 @@
245253
"cell_type": "code",
246254
"execution_count": null,
247255
"id": "6da16610-a83f-42b5-be52-f8116db3fb03",
248-
"metadata": {},
256+
"metadata": {
257+
"vscode": {
258+
"languageId": "r"
259+
}
260+
},
249261
"outputs": [],
250262
"source": [
251263
"#Install nexflow, make it exceutable, and update it\n",
@@ -277,7 +289,11 @@
277289
"cell_type": "code",
278290
"execution_count": null,
279291
"id": "bb2e1f61-eea1-4464-9842-76fabae4c39a",
280-
"metadata": {},
292+
"metadata": {
293+
"vscode": {
294+
"languageId": "r"
295+
}
296+
},
281297
"outputs": [],
282298
"source": [
283299
"system('./nextflow run nf-core/rnaseq -c rnaseq-aws.config -profile test,aws', intern=TRUE)"
@@ -314,7 +330,11 @@
314330
"cell_type": "code",
315331
"execution_count": null,
316332
"id": "a5ea70df-98ba-4a69-aeec-2baed34a72fc",
317-
"metadata": {},
333+
"metadata": {
334+
"vscode": {
335+
"languageId": "r"
336+
}
337+
},
318338
"outputs": [],
319339
"source": [
320340
"library(DESeq2)\n",
@@ -337,7 +357,11 @@
337357
"cell_type": "code",
338358
"execution_count": null,
339359
"id": "e49c7007-61b3-4057-89de-3f3fb1085800",
340-
"metadata": {},
360+
"metadata": {
361+
"vscode": {
362+
"languageId": "r"
363+
}
364+
},
341365
"outputs": [],
342366
"source": [
343367
"# download data files from storage bucket\n",
@@ -372,7 +396,11 @@
372396
"cell_type": "code",
373397
"execution_count": null,
374398
"id": "5fce0d5b-740b-4f9c-8479-fa60a0566532",
375-
"metadata": {},
399+
"metadata": {
400+
"vscode": {
401+
"languageId": "r"
402+
}
403+
},
376404
"outputs": [],
377405
"source": [
378406
"DESeq.ds <- DESeqDataSetFromMatrix(countData = round(readcounts), colData = sample_info, design = ~condition)\n"
@@ -392,7 +420,11 @@
392420
"cell_type": "code",
393421
"execution_count": null,
394422
"id": "cb7c8095-8d5c-4165-a0bf-9acfec7d97fe",
395-
"metadata": {},
423+
"metadata": {
424+
"vscode": {
425+
"languageId": "r"
426+
}
427+
},
396428
"outputs": [],
397429
"source": [
398430
"colData(DESeq.ds) %>% head\n",
@@ -417,7 +449,11 @@
417449
"cell_type": "code",
418450
"execution_count": null,
419451
"id": "4fc2ab39-8608-435b-a8f9-fb6f379be65a",
420-
"metadata": {},
452+
"metadata": {
453+
"vscode": {
454+
"languageId": "r"
455+
}
456+
},
421457
"outputs": [],
422458
"source": [
423459
"DESeq.ds <- DESeq.ds[ rowSums(counts(DESeq.ds)) > 0, ]\n",
@@ -441,7 +477,11 @@
441477
"cell_type": "code",
442478
"execution_count": null,
443479
"id": "40aa5366-4c12-4443-99a9-39ac707639d3",
444-
"metadata": {},
480+
"metadata": {
481+
"vscode": {
482+
"languageId": "r"
483+
}
484+
},
445485
"outputs": [],
446486
"source": [
447487
"# Get the size factor using estimateSizeFactors from DESeq.\n",
@@ -466,7 +506,11 @@
466506
"cell_type": "code",
467507
"execution_count": null,
468508
"id": "38523c0a-b9af-49ca-b7e8-2dbb4604fe5c",
469-
"metadata": {},
509+
"metadata": {
510+
"vscode": {
511+
"languageId": "r"
512+
}
513+
},
470514
"outputs": [],
471515
"source": [
472516
"# transform size-factor normalized read counts to log2 scale using pseudocount of 1\n",
@@ -495,7 +539,11 @@
495539
"cell_type": "code",
496540
"execution_count": null,
497541
"id": "a283f6d7-3370-41e7-a85c-c54c695f721f",
498-
"metadata": {},
542+
"metadata": {
543+
"vscode": {
544+
"languageId": "r"
545+
}
546+
},
499547
"outputs": [],
500548
"source": [
501549
"# mean-sd plot\n",
@@ -523,7 +571,11 @@
523571
"cell_type": "code",
524572
"execution_count": null,
525573
"id": "8f444ca6-b525-4e2e-9f9e-4363663b45fc",
526-
"metadata": {},
574+
"metadata": {
575+
"vscode": {
576+
"languageId": "r"
577+
}
578+
},
527579
"outputs": [],
528580
"source": [
529581
"# Regularized log-transformed values\n",
@@ -551,7 +603,11 @@
551603
"cell_type": "code",
552604
"execution_count": null,
553605
"id": "8ca292e8-27a2-4336-b047-07751cef499d",
554-
"metadata": {},
606+
"metadata": {
607+
"vscode": {
608+
"languageId": "r"
609+
}
610+
},
555611
"outputs": [],
556612
"source": [
557613
"# cor() calculates the correlation between columns of a matrix\n",
@@ -579,7 +635,11 @@
579635
"cell_type": "code",
580636
"execution_count": null,
581637
"id": "b38f5fab-4b48-4e74-9e23-793e202312dc",
582-
"metadata": {},
638+
"metadata": {
639+
"vscode": {
640+
"languageId": "r"
641+
}
642+
},
583643
"outputs": [],
584644
"source": [
585645
"P <- plotPCA(DESeq.rlog)\n",
@@ -602,7 +662,11 @@
602662
"cell_type": "code",
603663
"execution_count": null,
604664
"id": "f36513db-22f6-417f-aaa8-39ba1837ca35",
605-
"metadata": {},
665+
"metadata": {
666+
"vscode": {
667+
"languageId": "r"
668+
}
669+
},
606670
"outputs": [],
607671
"source": [
608672
"# DESeq2 uses the levels of the condition to determine the order of the comparison\n",
@@ -625,7 +689,11 @@
625689
"cell_type": "code",
626690
"execution_count": null,
627691
"id": "17827bd4-0938-49e8-9f3a-b4e979fedb3a",
628-
"metadata": {},
692+
"metadata": {
693+
"vscode": {
694+
"languageId": "r"
695+
}
696+
},
629697
"outputs": [],
630698
"source": [
631699
"#Check the results of deseq analysis\n",
@@ -646,7 +714,11 @@
646714
"cell_type": "code",
647715
"execution_count": null,
648716
"id": "39a986b0-3ee2-436a-927b-37f539e7c627",
649-
"metadata": {},
717+
"metadata": {
718+
"vscode": {
719+
"languageId": "r"
720+
}
721+
},
650722
"outputs": [],
651723
"source": [
652724
"#Histogram\n",
@@ -668,7 +740,11 @@
668740
"cell_type": "code",
669741
"execution_count": null,
670742
"id": "079404d0-d179-4bdf-8a2a-63e135b68c45",
671-
"metadata": {},
743+
"metadata": {
744+
"vscode": {
745+
"languageId": "r"
746+
}
747+
},
672748
"outputs": [],
673749
"source": [
674750
"#MA plot\n",
@@ -692,7 +768,11 @@
692768
"cell_type": "code",
693769
"execution_count": null,
694770
"id": "5bdda266-08e2-47fd-bdd8-f06cd4dd7f0c",
695-
"metadata": {},
771+
"metadata": {
772+
"vscode": {
773+
"languageId": "r"
774+
}
775+
},
696776
"outputs": [],
697777
"source": [
698778
"#HEATMAP\n",
@@ -736,7 +816,11 @@
736816
"cell_type": "code",
737817
"execution_count": null,
738818
"id": "38f62bcf-3150-417e-bebb-787763db04aa",
739-
"metadata": {},
819+
"metadata": {
820+
"vscode": {
821+
"languageId": "r"
822+
}
823+
},
740824
"outputs": [],
741825
"source": [
742826
"write.table(DGE.results.sorted, file=\"rna-seq_dge-results.txt\", sep = \"\\t\")"

0 commit comments

Comments
 (0)