Skip to content

Commit 9f7202f

Browse files
committed
NF_RCP combined_ercc_analysis: removed outliers from box-whisker plots
- Update DPPD to reflect these changes as well
1 parent 88cdf8d commit 9f7202f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

RNAseq/Pipeline_GL-DPPD-7101_Versions/GL-DPPD-7101-F.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,7 @@ ddf['Avg Mix1 CPM/ Avg Mix2 CPM'] = (ddf['Avg Mix1 CPM'] / ddf['Avg Mix2 CPM'])
21182118
## Multi-sample ERCC analyses
21192119
### Create box and whisker plots of the log(2) CPM for each ERCC detected in group A in Mix 1 and Mix 2 spiked samples
21202120

2121-
a = sns.catplot(x="ERCC ID", y="log2 Count per million", order=groupA[::-1], hue="Mix",data=merged_ercc[merged_ercc['ERCC ID'].isin(groupA)], kind="box", col="ERCC group", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']))
2121+
a = sns.catplot(x="ERCC ID", y="log2 Count per million", order=groupA[::-1], hue="Mix",data=merged_ercc[merged_ercc['ERCC ID'].isin(groupA)], kind="box", col="ERCC group", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']), showfliers=False)
21222122
a.set_xticklabels(rotation=90)
21232123
plt.text(23,2.5,"Mix1/ Mix2 = 4")
21242124

@@ -2133,7 +2133,7 @@ print('Number of ERCC detected in group A (out of 23) =', adf['Avg Mix1 CPM/ Avg
21332133

21342134
### Create box and whisker plots of the log(2) CPM for each ERCC detected in group B in Mix 1 and Mix 2 spiked samples
21352135

2136-
b = sns.catplot(x="ERCC ID", y="log2 Count per million", order=groupB[::-1], hue="Mix", data=merged_ercc[merged_ercc['ERCC ID'].isin(groupB)], kind="box", col="ERCC group", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']))
2136+
b = sns.catplot(x="ERCC ID", y="log2 Count per million", order=groupB[::-1], hue="Mix", data=merged_ercc[merged_ercc['ERCC ID'].isin(groupB)], kind="box", col="ERCC group", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']), showfliers=False)
21372137
b.set_xticklabels(rotation=90)
21382138
plt.text(23,2.5,"Mix1/ Mix2 = 1")
21392139

@@ -2149,7 +2149,7 @@ print('Number of ERCC detected in group B (out of 23) =', bdf['Avg Mix1 CPM/ Avg
21492149

21502150
### Create box and whisker plots of the log(2) CPM for each ERCC detected in group C in Mix 1 and Mix 2 spiked samples
21512151

2152-
c = sns.catplot(x="ERCC ID", y="log2 Count per million", order=groupC[::-1], hue="Mix", data=merged_ercc[merged_ercc['ERCC ID'].isin(groupC)], kind="box", col="ERCC group", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']))
2152+
c = sns.catplot(x="ERCC ID", y="log2 Count per million", order=groupC[::-1], hue="Mix", data=merged_ercc[merged_ercc['ERCC ID'].isin(groupC)], kind="box", col="ERCC group", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']), showfliers=False)
21532153
c.set_xticklabels(rotation=90)
21542154
plt.text(23,2.5,"Mix1/ Mix2 = 0.67")
21552155

@@ -2165,7 +2165,7 @@ print('Number of ERCC detected in group C (out of 23) =', cdf['Avg Mix1 CPM/ Avg
21652165

21662166
### Create box and whisker plots of the log(2) CPM for each ERCC detected in group D in Mix 1 and Mix 2 spiked samples
21672167

2168-
d = sns.catplot(x="ERCC ID", y="log2 Count per million", order=groupD[::-1], hue="Mix", data=merged_ercc[merged_ercc['ERCC ID'].isin(groupD)], col="ERCC group", kind="box", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']))
2168+
d = sns.catplot(x="ERCC ID", y="log2 Count per million", order=groupD[::-1], hue="Mix", data=merged_ercc[merged_ercc['ERCC ID'].isin(groupD)], col="ERCC group", kind="box", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']), showfliers=False)
21692169
d.set_xticklabels(rotation=90)
21702170
plt.text(23,2.5,"Mix1/ Mix2 = 0.5")
21712171

RNAseq/Workflow_Documentation/NF_RCP-F/workflow_code/bin/combined_ercc_analysis.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@
391391
"metadata": {},
392392
"outputs": [],
393393
"source": [
394-
"a = sns.catplot(x=\"ERCC ID\", y=\"log2 Count per million\", order=groupA[::-1], hue=\"Mix\",data=merged_ercc[merged_ercc['ERCC ID'].isin(groupA)], kind=\"box\", col=\"ERCC group\", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']))\n",
394+
"a = sns.catplot(x=\"ERCC ID\", y=\"log2 Count per million\", order=groupA[::-1], hue=\"Mix\",data=merged_ercc[merged_ercc['ERCC ID'].isin(groupA)], kind=\"box\", col=\"ERCC group\", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']), showfliers=False)\n",
395395
"a.set_xticklabels(rotation=90)\n",
396396
"plt.text(23,2.5,\"Mix1/ Mix2 = 4\")"
397397
]
@@ -430,7 +430,7 @@
430430
"metadata": {},
431431
"outputs": [],
432432
"source": [
433-
"b = sns.catplot(x=\"ERCC ID\", y=\"log2 Count per million\", order=groupB[::-1], hue=\"Mix\", data=merged_ercc[merged_ercc['ERCC ID'].isin(groupB)], kind=\"box\", col=\"ERCC group\", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']))\n",
433+
"b = sns.catplot(x=\"ERCC ID\", y=\"log2 Count per million\", order=groupB[::-1], hue=\"Mix\", data=merged_ercc[merged_ercc['ERCC ID'].isin(groupB)], kind=\"box\", col=\"ERCC group\", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']), showfliers=False)\n",
434434
"b.set_xticklabels(rotation=90)\n",
435435
"plt.text(23,2.5,\"Mix1/ Mix2 = 1\")"
436436
]
@@ -470,7 +470,7 @@
470470
"metadata": {},
471471
"outputs": [],
472472
"source": [
473-
"c = sns.catplot(x=\"ERCC ID\", y=\"log2 Count per million\", order=groupC[::-1], hue=\"Mix\", data=merged_ercc[merged_ercc['ERCC ID'].isin(groupC)], kind=\"box\", col=\"ERCC group\", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']))\n",
473+
"c = sns.catplot(x=\"ERCC ID\", y=\"log2 Count per million\", order=groupC[::-1], hue=\"Mix\", data=merged_ercc[merged_ercc['ERCC ID'].isin(groupC)], kind=\"box\", col=\"ERCC group\", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']), showfliers=False)\n",
474474
"c.set_xticklabels(rotation=90)\n",
475475
"plt.text(23,2.5,\"Mix1/ Mix2 = 0.67\")"
476476
]
@@ -510,7 +510,7 @@
510510
"metadata": {},
511511
"outputs": [],
512512
"source": [
513-
"d = sns.catplot(x=\"ERCC ID\", y=\"log2 Count per million\", order=groupD[::-1], hue=\"Mix\", data=merged_ercc[merged_ercc['ERCC ID'].isin(groupD)], col=\"ERCC group\", kind=\"box\", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']))\n",
513+
"d = sns.catplot(x=\"ERCC ID\", y=\"log2 Count per million\", order=groupD[::-1], hue=\"Mix\", data=merged_ercc[merged_ercc['ERCC ID'].isin(groupD)], col=\"ERCC group\", kind=\"box\", height=5, aspect=1, palette=sns.color_palette(['blue', 'orange']), showfliers=False)\n",
514514
"d.set_xticklabels(rotation=90)\n",
515515
"plt.text(23,2.5,\"Mix1/ Mix2 = 0.5\")"
516516
]

0 commit comments

Comments
 (0)