Skip to content

Commit df87511

Browse files
authored
Merge pull request #23 from AllenInstitute/dev_njj
Fix dend saving with buildPatchseqTaxonomy
2 parents 93b5ea2 + 9c8e6c7 commit df87511

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,15 @@ RUN R -e 'remotes::install_github("AllenInstitute/scrattch.bigcat")'
5959
RUN R -e 'remotes::install_github("AllenInstitute/mfishtools")'
6060

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

6565
## Clean up
6666
RUN rm -rf /var/lib/apt/lists/*
6767
RUN rm -rf /tmp/downloaded_packages
6868

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

R/buildPatchseqTaxonomy.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ buildPatchseqTaxonomy = function(AIT.anndata,
9292
AIT.anndata$uns$QC_markers[[mode.name]] = file.path(taxonomyModeDir, "QC_markers.RData")
9393
## TO BE UPDATED -- JEREMY
9494

95-
## Save patch-seq taxonomy anndata
96-
AIT.anndata$write_h5ad(file.path(taxonomyDir, "AI_taxonomy.h5ad"))
97-
9895
##################
9996
## ------- Modify the dendrogram and save
10097
##
@@ -113,6 +110,9 @@ buildPatchseqTaxonomy = function(AIT.anndata,
113110
## Store the prunned dendrogram, in dend list under "patchseq" mode.name
114111
AIT.anndata$uns$dend[[mode.name]] = file.path(taxonomyModeDir,"dend.RData")
115112

113+
## Save patch-seq taxonomy anndata
114+
AIT.anndata$write_h5ad(file.path(taxonomyDir, "AI_taxonomy.h5ad"))
115+
116116
## Update markers after pruning
117117
dend = addDendrogramMarkers(AIT.anndata, mode=mode.name)
118118

examples/build_taxonomy.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,4 @@ AIT.anndata = loadTaxonomy("/allen/programs/celltypes/workgroups/rnaseqanalysis/
5555

5656
## Add markers to dendrogram
5757
addDendrogramMarkers(AIT.anndata = AIT.anndata)
58-
5958
```

0 commit comments

Comments
 (0)