Skip to content

Commit

Permalink
Merge pull request #23 from AllenInstitute/dev_njj
Browse files Browse the repository at this point in the history
Fix dend saving with buildPatchseqTaxonomy
  • Loading branch information
UCDNJJ authored Jun 4, 2023
2 parents 93b5ea2 + 9c8e6c7 commit df87511
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ RUN R -e 'remotes::install_github("AllenInstitute/scrattch.bigcat")'
RUN R -e 'remotes::install_github("AllenInstitute/mfishtools")'

## scrattch-mapping install from local source
COPY scrattch.mapping_0.17.tar.gz ./scrattch.mapping_0.17.tar.gz
RUN R -e 'install.packages("scrattch.mapping_0.17.tar.gz", repos=NULL, type="source")'
COPY scrattch.mapping_0.2.tar.gz ./scrattch.mapping_0.2.tar.gz
RUN R -e 'install.packages("scrattch.mapping_0.2.tar.gz", repos=NULL, type="source")'

## Clean up
RUN rm -rf /var/lib/apt/lists/*
RUN rm -rf /tmp/downloaded_packages

## Strip binary installed libraries from RSPM
## https://github.com/rocker-org/rocker-versioned2/issues/340
RUN strip /usr/local/lib/R/site-library/*/libs/*.so
RUN strip /usr/local/lib/R/site-library/*/libs/*.so

##
6 changes: 3 additions & 3 deletions R/buildPatchseqTaxonomy.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ buildPatchseqTaxonomy = function(AIT.anndata,
AIT.anndata$uns$QC_markers[[mode.name]] = file.path(taxonomyModeDir, "QC_markers.RData")
## TO BE UPDATED -- JEREMY

## Save patch-seq taxonomy anndata
AIT.anndata$write_h5ad(file.path(taxonomyDir, "AI_taxonomy.h5ad"))

##################
## ------- Modify the dendrogram and save
##
Expand All @@ -113,6 +110,9 @@ buildPatchseqTaxonomy = function(AIT.anndata,
## Store the prunned dendrogram, in dend list under "patchseq" mode.name
AIT.anndata$uns$dend[[mode.name]] = file.path(taxonomyModeDir,"dend.RData")

## Save patch-seq taxonomy anndata
AIT.anndata$write_h5ad(file.path(taxonomyDir, "AI_taxonomy.h5ad"))

## Update markers after pruning
dend = addDendrogramMarkers(AIT.anndata, mode=mode.name)

Expand Down
1 change: 0 additions & 1 deletion examples/build_taxonomy.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ AIT.anndata = loadTaxonomy("/allen/programs/celltypes/workgroups/rnaseqanalysis/

## Add markers to dendrogram
addDendrogramMarkers(AIT.anndata = AIT.anndata)

```

0 comments on commit df87511

Please sign in to comment.