Skip to content

Commit 503e649

Browse files
committed
Add basic QC notebook
1 parent 63e8541 commit 503e649

28 files changed

+12511
-2
lines changed

CiteSeq.wdl

+15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version 1.0
22

33
import "modules/Preprocess.wdl" as Preprocess
4+
import "modules/BasicQC.wdl" as BasicQC
45

56
workflow CiteSeq {
67

@@ -76,6 +77,16 @@ workflow CiteSeq {
7677
resourceSpec = resourceSpec,
7778
dockerRegistry = dockerRegistry
7879
}
80+
81+
call BasicQC.BasicQC {
82+
input:
83+
sampleName = sampleName,
84+
h5ad = Preprocess.adata,
85+
readsCount = Preprocess.readCountMatrix,
86+
runReport = Preprocess.countReport,
87+
templateNotebook = "inspect-citeseq-v3.ipynb",
88+
dockerRegistry = dockerRegistry
89+
}
7990

8091
output {
8192
File fastQCR1Html = Preprocess.fastQCR1Html
@@ -86,5 +97,9 @@ workflow CiteSeq {
8697
Array[File] readCountMatrix = Preprocess.readCountMatrix
8798

8899
File adata = Preprocess.adata
100+
101+
File notebookQC = BasicQC.notebook
102+
File htmlQC = BasicQC.htmlReport
103+
File adataQC = BasicQC.adata
89104
}
90105
}

Hashtag.wdl

+15
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import "modules/HtoDemuxSeurat.wdl" as HtoDemuxSeurat
55
import "modules/HtoDemuxKMeans.wdl" as HtoDemuxKMeans
66
import "modules/Combine.wdl" as Combine
77
import "modules/AnnData.wdl" as AnnData
8+
import "modules/BasicQC.wdl" as BasicQC
89

910
workflow Hashtag {
1011

@@ -140,6 +141,16 @@ workflow Hashtag {
140141
dockerRegistry = dockerRegistry
141142
}
142143

144+
call BasicQC.BasicQC {
145+
input:
146+
sampleName = sampleName,
147+
h5ad = UpdateAnnData.outAdata,
148+
readsCount = Preprocess.readCountMatrix,
149+
runReport = Preprocess.countReport,
150+
templateNotebook = "inspect-hashtag-v3.ipynb",
151+
dockerRegistry = dockerRegistry
152+
}
153+
143154
output {
144155
File fastQCR1Html = Preprocess.fastQCR1Html
145156
File fastQCR2Html = Preprocess.fastQCR2Html
@@ -166,5 +177,9 @@ workflow Hashtag {
166177

167178
File adataRaw = Preprocess.adata
168179
File adataFinal = UpdateAnnData.outAdata
180+
181+
File notebookQC = BasicQC.notebook
182+
File htmlQC = BasicQC.htmlReport
183+
File adataQC = BasicQC.adata
169184
}
170185
}

dockers/basic-qc/Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM quay.io/hisplan/scri-notebook:0.0.3
2+
3+
LABEL maintainer="Jaeyoung Chun ([email protected])"
4+
5+
RUN apt-get install -y zip
6+
7+
RUN pip install seaborn==0.11.1 matplotlib humanfriendly
8+
9+
# hack: nbcovert 6+ doesn't work properly to run `nbconvert --to html_toc`
10+
RUN pip install nbconvert==5.6.1 jupyter_contrib_nbextensions==0.5.1
11+
RUN jupyter contrib nbextension install --user \
12+
&& jupyter nbextension enable toc2
13+
14+
COPY ./notebooks/inspect-*.ipynb /opt/

dockers/basic-qc/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# sharp-basic-qc
2+
3+
Enter into the Jupyter Notebook container:
4+
5+
```bash
6+
./run-notebook.sh
7+
```
8+
9+
When you get a prompt back, launch Jupyter Notebook:
10+
11+
```bash
12+
jupyter notebook --allow-root
13+
```

dockers/basic-qc/build.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash -e
2+
3+
source config.sh
4+
5+
docker build -t ${image_name}:${version} .

dockers/basic-qc/config.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version="0.2.0"
2+
3+
# docker related
4+
registry="quay.io/hisplan"
5+
image_name="sharp-basic-qc"

0 commit comments

Comments
 (0)