Skip to content

Commit

Permalink
doc: add pipeline diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
gladkia committed Feb 28, 2024
1 parent c533940 commit 4b6f3d7
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 0 deletions.
Binary file added inst/images/pipeline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added inst/images/pipeline2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions inst/umls/pipeline.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
@startuml
set namespaceSeparator none
skinparam linetype polyline
skinparam backgroundcolor transparent

Entity "raw data && metadata" as RD {}

Entity "data.table(s)" as DF {}

Entity "SummarizedExperiment" as SE {
metadata(se)
rowData(se)
colData(se)
.. assays(se) ..
+ **"RawTreated"**
+ **"Controls"**
}

Entity "SummarizedExperiment" as SE2 {
metadata(se)
rowData(se)
colData(se)
.. assays(se) ..
+ "RawTreated"
+ "Controls"
+ **"Normalized"**
+ **"RefRelativeViability"**
+ **"RefGRvalue"**
}

Entity "SummarizedExperiment" as SE3 {
metadata(se)
rowData(se)
colData(se)
.. assays(se) ..
+ "RawTreated"
+ "Controls"
+ "Normalized"
+ "RefRelativeViability"
+ "RefGRvalue"
+ **"Averaged"**
}

Entity "SummarizedExperiment" as SE4 {
metadata(se)
rowData(se)
colData(se)
.. assays(se) ..
+ "RawTreated"
+ "Controls"
+ "Normalized"
+ "RefRelativeViability"
+ "RefGRvalue"
+ "Averaged"
+ **"Metrics"**
- **Isobologram**
- **Excess**
- **Scores**
}

RD --> DF
note right on link
merge template, readouts, treatments, conditions
end note
DF --> SE: " create_SE()"
note right on link
Creates a SummarizedExperiment object with 2 asssays:
1) a raw, treated, BumpyMatrix named "RawTreated"
2) a raw, untreated, BumpyMatrix named "Controls"
- maps treated to untreated references
- averages untreated references
end note
SE --> SE2: " normalize_SE()"
note right on link
Normalize the treated readouts to their corresponding end note
reference readout to compute a RelativeViability and GRvalue
for both the references and treated conditions.
end note
SE2 --> SE3: " average_SE()"
note right on link
Average the replicates for the treated readout values.
reference readout to compute a RelativeViability and GRvalue
for both the references and treated conditions.
end note
SE3 --> SE4: " fit_SE()"
note right on link
Fit a dose response curve to the SE,
and get back fit metrics for the curves
- utilize the RefRelativeViability and RefGRValue
end note

@enduml

41 changes: 41 additions & 0 deletions inst/umls/pipeline2.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
@startuml
set namespaceSeparator none
skinparam linetype polyline
skinparam backgroundcolor transparent

Entity "raw data && metadata" as RD {}

Entity "data.table(s)" as DF {}

package MultiAssayExperiment as MAE <<Node>> {
Entity "SummarizedExperiment(s)" as SE {
metadata(se)
rowData(se)
colData(se)
.. assays(se) ..
+ "RawTreated"
+ "Controls"
+ "Normalized"
+ "RefRelativeViability"
+ "RefGRvalue"
+ "Averaged"
+ **"Metrics"**
- **Isobologram**
- **Excess**
- **Scores**
}
}


RD --> DF
note right on link
merge template, readouts, treatments, conditions
end note

DF --> MAE: " runDrugResponseProcessingPipeline()"
note right on link
generate an MAE with processed and analyzed data
end note


@enduml
7 changes: 7 additions & 0 deletions inst/umls/refresh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# sudo apt-get install plantuml
# pretty old version
#jar_path="/usr/share/platinuml/platinuml.jar"
# https://github.com/plantuml/plantuml/releases/download/v1.2023.13/plantuml-1.2023.13.jar
jar_path="./plantuml-1.2023.13.jar"
#java -Djava.awt.headless=true -jar $jar_path *.puml -tsvg -o ../images/
java -Djava.awt.headless=true -jar $jar_path *.puml -tpng -o ../images/

0 comments on commit 4b6f3d7

Please sign in to comment.