Skip to content

Commit

Permalink
updated to set up baseline of cell type mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sgosline committed Apr 21, 2021
1 parent ab397b7 commit 5512f9d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 2 deletions.
5 changes: 5 additions & 0 deletions perfEval/data-sim/call-deconv-on-sim.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ inputs:
type: File
permutation:
type: string
default: '1'
prot-alg:
type: string
sampleType:
Expand All @@ -23,6 +24,9 @@ inputs:
dataType:
type: string
default: 'prot'
simType:
type: string
default: 'prot'

outputs:
pat-cor-file:
Expand All @@ -46,6 +50,7 @@ steps:
run: ../../simulatedData/sim-data-tool.cwl
in:
repNumber: permutation
simType: simType
out:
[matrix,cellType]
deconv-prot:
Expand Down
1 change: 1 addition & 0 deletions perfEval/data-sim/sim-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ prot-algorithms:
- epic
- xcell
- cibersort
- bayesdebulk
reps:
- "1"
- "2"
Expand Down
2 changes: 1 addition & 1 deletion perfEval/mrna-prot/alg-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cancerTypes:
- endometrial
- luad
- ccrcc
prot-algorithms:
- mcpcounter
Expand Down
2 changes: 2 additions & 0 deletions simulatedData/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ FROM rocker/tidyverse

COPY *rda /bin/
COPY getSimDataMatrices.R /bin/
COPY mapSimDataMatrices.R /bin/

RUN chmod 777 /bin/getSimDataMatrices.R
RUN chmod 777 /bin/mapSimDataMatrices.R

VOLUME ['/tmp']
8 changes: 7 additions & 1 deletion simulatedData/map-sig-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ arguments:

requirements:
- class: DockerRequirement
dockerPull: tumodeconv/sim-data
dockerPull: tumordeconv/sim-data


inputs:
Expand All @@ -25,3 +25,9 @@ inputs:
type: File
inputBinding:
position: 3

outputs:
updated-deconv:
type: File
outputBinding:
glob: "*.tsv"
11 changes: 11 additions & 0 deletions simulatedData/mapSimDataMatrices.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
main <- function(){
argv <- commandArgs(trailingOnly = TRUE)
deconv.mat <- read.table(argv[1],header=T,row.names=1,sep='\t') #matrix to be fixed
sig.mat <- argv[2] #signature used to deconvolve matrix
sim.type <- argv[3] #type of simulation performed

if(sig.mat=='LM9.txt')
write.table(deconv.mat,file='fixed.tsv',sep='\t')
}

main()

0 comments on commit 5512f9d

Please sign in to comment.