Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastTopics wrapper #151

Open
wants to merge 55 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
fd1ea6e
Working on FitTopicModel and fast_topics_demo example script.
pcarbo Jan 14, 2021
8baf086
Made a few small improvements to the fastTopics demo.
pcarbo Jan 14, 2021
4fb6cad
Filled out more of the roxygen2 docs for FitTopicModel.
pcarbo Jan 14, 2021
75e6240
Made several improvements to the roxygen2 docs for FitTopicModel, and…
pcarbo Jan 14, 2021
d362c19
Improved fasttopics example; fixed PCA reduction key.
pcarbo Jan 15, 2021
8a6b8ae
Revised the FitTopicModel roxygen2 docs.
pcarbo Jan 15, 2021
cd3f143
Completed fast_topics_demo.R script.
pcarbo Jan 15, 2021
811d618
First build of the fasttopics vignette.
pcarbo Jan 15, 2021
8dee481
More additions to the fasttopics vignette.
pcarbo Jan 15, 2021
da9b1c9
Some minor adjustments to the fasttopics vignette.
pcarbo Jan 15, 2021
737a8fc
Made a few small revisions to the vignette.
pcarbo Jan 15, 2021
ccccf1b
Added fastTopics to README.
pcarbo Jan 15, 2021
023a5db
Added vignette title in README.
pcarbo Jan 15, 2021
3988ce4
A couple of small edits to the fasttopics code.
pcarbo Jan 15, 2021
080fd0e
Fixed PCA plot in fasttopics vignette.
pcarbo Jan 16, 2021
0482d57
Implemented helper functions prepare_counts_fasttopics and pca_from_l…
pcarbo Jan 18, 2021
dba8308
Implemented FitPoissonNMF.
pcarbo Jan 18, 2021
a61ad95
Filled out roxygen2 docs for FitPoissonNMF.
pcarbo Jan 19, 2021
c604eb4
Added notes from Alan.
pcarbo Feb 19, 2021
c665ccb
Added notes from Gilad Green.
pcarbo Feb 25, 2021
dd848d0
Added reduction.pca.name and reduction.pca.key arguments to fastTopic…
pcarbo Mar 3, 2021
5667953
Added docs/fasttopics_files.
pcarbo Mar 3, 2021
1bad1f7
Updated verbose argument in FitTopicModel and FitPoissonNMF.
pcarbo Mar 4, 2021
bb7a4a4
Merge remote-tracking branch 'upstream/master'.
pcarbo Mar 15, 2023
eefec42
Removed .DS_Store.
pcarbo Mar 15, 2023
1459754
Added fastTopics to READMEs.
pcarbo Mar 15, 2023
91d130b
Added link to README.
pcarbo Mar 15, 2023
6d1ac21
Updated citations in fasttopics vignette.
pcarbo Mar 15, 2023
6fe8cf6
Merge branch 'master' of github.com:stephenslab/seurat-wrappers.
pcarbo Mar 15, 2023
88660d2
Rebuilt the fasttopics vignettes.
pcarbo Mar 15, 2023
e1f5537
Fixed the formatting of the citations in the fasttopics vignette.
pcarbo Mar 15, 2023
00e1c2b
Merge branch 'master' of github.com:stephenslab/seurat-wrappers.
pcarbo Mar 15, 2023
4304d5e
A few small edits to the fasttopics vignette.
pcarbo Mar 15, 2023
c48f7df
Rebuilt html for fasttopics vignette.
pcarbo Mar 15, 2023
969f01a
A few small revisions to the fasttopics vignette.
pcarbo Mar 16, 2023
2f1a0a9
Merge branch 'master' of github.com:stephenslab/seurat-wrappers.
pcarbo Mar 16, 2023
d23470c
Rebuilt the fasttopics vignette html.
pcarbo Mar 16, 2023
43dd380
Small fix to the fasttopics rmd.
pcarbo Mar 16, 2023
4bba11b
Added some text to the vignette explaining the structure plot.
pcarbo Mar 16, 2023
3fdf833
Regenerated the markdown and html for fasttopics; the html is no long…
pcarbo Mar 16, 2023
c260284
Fixed a comment in the fasttopics vignette.
pcarbo Mar 17, 2023
12b6e79
A few edits to the text in the fasttopics vignette.
pcarbo Mar 17, 2023
cfda992
Started implementation of PerformGoMDEAnalysis.
pcarbo Mar 17, 2023
20559ce
Updated roxygen2 for FitPoissonNMF and FitTopicModel.
pcarbo Mar 17, 2023
0cbc485
Filled out most of the implementation for PerformGoMDEAnalysis.
pcarbo Mar 17, 2023
44dc860
Revised the misc slot for the dimreduc objects in the fasttopics func…
pcarbo Mar 17, 2023
72856db
Updated the html for the fasttopics vignette.
pcarbo Mar 17, 2023
4fe0277
Added volcano plots to the fasttopics vignette.
pcarbo Mar 18, 2023
54c2832
Rebuilt fasttopics vignette.
pcarbo Mar 18, 2023
4645464
A few fixes to the fasttopics rmd.
pcarbo Mar 18, 2023
107d766
A few edits to the fasttopics vignette.
pcarbo Mar 20, 2023
f2eb308
Merge branch 'master' of github.com:stephenslab/seurat-wrappers.
pcarbo Mar 20, 2023
305f434
Small edit to the fasttopics vignette.
pcarbo Mar 20, 2023
cd1c678
Revised the volcano plots and accompanying text in the fasttopics vig…
pcarbo Mar 20, 2023
c763916
Rebuilt the fasttopics md vignette.
pcarbo Mar 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
^.*\.Rproj$
^\.Rproj\.user$
^docs$
^NOTES\.txt$

7 changes: 5 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Remotes: welch-lab/liger,
cole-trapnell-lab/monocle3,
mojaveazure/seurat-disk,
powellgenomicslab/Nebulosa,
stephenslab/fastTopics,
atakanekiz/CIPR-Package,
prabhakarlab/Banksy
Depends:
Expand All @@ -45,11 +46,12 @@ Collate:
'internal.R'
'alevin.R'
'alra.R'
'banksy.R'
'banksy.R'
'cellbrowser.R'
'cogaps.R'
'conos.R'
'fast_mnn.R'
'fasttopics.R'
'glmpca.R'
'liger.R'
'miqc.R'
Expand All @@ -59,7 +61,7 @@ Collate:
'velocity.R'
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.1
RoxygenNote: 7.2.3
Suggests:
cipr,
conos,
Expand All @@ -74,6 +76,7 @@ Suggests:
fishpond,
monocle3,
CoGAPS,
fastTopics,
glmpca,
Nebulosa,
presto,
Expand Down
10 changes: 10 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ S3method(as.Seurat,list)
S3method(as.cell_data_set,Seurat)
export(ALRAChooseKPlot)
export(ExportToCellbrowser)
export(FitPoissonNMF)
export(FitTopicModel)
export(PerformGoMDEAnalysis)
export(PlotMiQC)
export(ReadAlevin)
export(ReadVelocity)
Expand All @@ -29,6 +32,8 @@ export(StopCellbrowser)
export(as.cell_data_set)
importFrom(BiocManager,install)
importFrom(Matrix,Matrix)
importFrom(Matrix,colSums)
importFrom(Matrix,t)
importFrom(Matrix,writeMM)
importFrom(R.utils,gzip)
importFrom(Seurat,"DefaultAssay<-")
Expand All @@ -52,6 +57,7 @@ importFrom(Seurat,Idents)
importFrom(Seurat,IsGlobal)
importFrom(Seurat,Loadings)
importFrom(Seurat,LogSeuratCommand)
importFrom(Seurat,Misc)
importFrom(Seurat,Project)
importFrom(Seurat,Reductions)
importFrom(Seurat,SelectIntegrationFeatures)
Expand All @@ -66,6 +72,9 @@ importFrom(cowplot,theme_cowplot)
importFrom(data.table,data.table)
importFrom(data.table,fwrite)
importFrom(data.table,setDTthreads)
importFrom(fastTopics,de_analysis)
importFrom(fastTopics,fit_poisson_nmf)
importFrom(fastTopics,fit_topic_model)
importFrom(ggplot2,aes_string)
importFrom(ggplot2,geom_line)
importFrom(ggplot2,geom_point)
Expand All @@ -86,6 +95,7 @@ importFrom(rlang,duplicate)
importFrom(rsvd,rsvd)
importFrom(stats,as.dist)
importFrom(stats,pnorm)
importFrom(stats,prcomp)
importFrom(stats,quantile)
importFrom(stats,sd)
importFrom(stats,setNames)
Expand Down
25 changes: 25 additions & 0 deletions NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Comments from Alan Selewa:

I was able to run the wrapper on my heart single cell RNA-seq
data. Theres about ~70k cells and 26k genes. Fitting the model took
about 4 hours using 16 Rcpp parallel threads. Heres some thoughts on
the process:

FitTopicModel would benefit from more hyper-parameters in its
interface, like number of EM iterations to perform, number of parallel
threads to use, etc. Basically anything you’d pass to fastTopics
should be available in the interface, in my opinion.

I would add a function that works on the Seurat object to plot
log-likelihood vs iteration (similar to Seurat::ElbowPlot).

It seems that downstream analyses (structure_plot, differential
expression) will work directly on the fit produced. In conformity with
everything else Seurat-related, I think these functions should work
directly on the Seurat object, rather than extracting the fit object,
and running functions found in fastTopics.

The topic proportion of each cell should be visualized with
Seurat::FeaturePlots e.g. topic 1 proportion overlayed on a UMAP as I
shown in the vignette below add a wrapper function for visualizing
gene proportion in each topic.