Skip to content

Commit

Permalink
Merge branch 'master' into fov_name_parsing_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ngreenwald committed Jun 1, 2022
2 parents d872cf4 + 02b4549 commit e2272e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ RUN R -e "install.packages('arrow')"
RUN R -e "install.packages('data.table')"
RUN R -e "install.packages('BiocManager')"
RUN R -e "BiocManager::install('FlowSOM')"
RUN R -e "install.packages('devtools')"
RUN R -e "library(devtools); devtools::install_github('angelolab/FlowSOM')" # this ensures we retrieve the forked FlowSOM
RUN R -e "BiocManager::install('ConsensusClusterPlus')"

# jupyter lab
Expand Down
2 changes: 1 addition & 1 deletion ark/phenotyping/create_cell_som.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ clusterCountsNormSub <- as.matrix(sweep(clusterCountsNormSub, 2, clusterCountsNo
# create the cell SOM
print("Run the SOM training")
somResults <- SOM(data=as.matrix(clusterCountsNormSub), xdim=xdim, ydim=ydim,
rlen=numPasses, alpha=c(lr_start, lr_end))
rlen=numPasses, alpha=c(lr_start, lr_end), map=FALSE)

# write the weights to feather
print("Save trained weights")
Expand Down
2 changes: 1 addition & 1 deletion ark/phenotyping/create_pixel_som.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pixelSubsetData <- pixelSubsetData[,Map(`/`,.SD,normVals)]
# run the SOM training step
print("Training the SOM")
somResults <- SOM(data=as.matrix(pixelSubsetData), rlen=numPasses,
xdim=xdim, ydim=ydim, alpha=c(lr_start, lr_end))
xdim=xdim, ydim=ydim, alpha=c(lr_start, lr_end), map=FALSE)

# write the weights to feather
print("Save trained weights")
Expand Down

0 comments on commit e2272e7

Please sign in to comment.