Closed vijender-singh closed 1 year ago
Not to copy the whole object structure with str(pbmc)
, I am pasting below the slot part that I think corresponds to Position enrichment matrix
.
.. .. .. ..@ positionEnrichment:List of 1
.. .. .. .. ..$ TSS:Formal class 'dgCMatrix' [package "Matrix"] with 6 slots
.. .. .. .. .. .. ..@ i : int [1:14399626] 0 2 3 5 7 9 10 11 16 18 ...
.. .. .. .. .. .. ..@ p : int [1:2002] 0 3805 7655 11920 16142 20467 24717 29285 33425 37572 ...
.. .. .. .. .. .. ..@ Dim : int [1:2] 8730 2001
.. .. .. .. .. .. ..@ Dimnames:List of 2
.. .. .. .. .. .. .. ..$ : chr [1:8730] "AAACGAAAGAGCGAAA-1" "AAACGAAAGAGTTTGA-1" "AAACGAAAGCGAGCTA-1" "AAACGAAAGGCTTCGC-1" ...
.. .. .. .. .. .. .. ..$ : chr [1:2001] "-999" "-998" "-997" "-996" ...
.. .. .. .. .. .. ..@ x : num [1:14399626] 0.971 0.412 1.031 0.481 0.631 ...
.. .. .. .. .. .. ..@ factors : list()```
What is TSSPlot_c
? Can you try using the function defined in Signac?
Sorry about that, I tried TSSPlot
and when it did not work I pulled the function and tried modifying it (TSSPlot_c
). The error is consistent and reproducible with Signac::TSSPlot
.
I see you have Seurat v5 installed, if you're using v5 you will need to install Signac from the seurat5
branch:
remotes::install_github("stuart-lab/signac", "seurat5")
Thankyou, I will try it and will get back. Thanks again for your time.
Thank you, that worked. I reinstalled Signac from the seurat5 branch with remotes::install_github("stuart-lab/signac@seurat5")
Problem I am following the tutorial/vignette on "Analyzing PBMC scATAC-seq" with the provided dataset (https://stuartlab.org/signac/articles/pbmc_vignette) and trying to plot the TSS enrichment plot. When I execute the function I get an error
Error in TSSPlot(pbmc, group.by = "high.tss") : Position enrichment matrix not present in assay
I can see thatposition Enrichment matrix
exists and can access withpbmc@assays$peaks@positionEnrichment
.The code I am following is below
My Session Info