Giter Site home page Giter Site logo

Comments (10)

zijianni avatar zijianni commented on June 3, 2024

Hi @mattcai10x ,

Thanks for sharing your findings! Unfortunately I won't be able to investigate the issue until the week of 04/08. Are you saying that, forget about SpotClean, the raw barcode matrix from SpaceRanger output would be pre-filtered to remove empty barcodes? This seems inconsistent with CellRanger where I remembered the raw barcode matrix usually has a fixed dimension (~737,280 barcodes?) Or are there recent updates in CellRanger and SpaceRanger where the empty barcodes are now filtered out?

from spotclean.

mattcai10x avatar mattcai10x commented on June 3, 2024

I actually did not know this but it looks like the change happened in CellRanger 6.0 and SpaceRanger 1.3.

from spotclean.

Streisenberg avatar Streisenberg commented on June 3, 2024

Hey!

I am facing the same issue. Upon reviewing my slide_info file, I noticed a discrepancy of 120 barcodes, which are different from the 14216 barcodes in my raw data. Is there an existing solution to address this problem, or is it sufficient to simply eliminate those inconsistent barcodes and proceed with the analysis?

Thank you!

from spotclean.

zijianni avatar zijianni commented on June 3, 2024

Hi @Streisenberg , thanks for reporting your issue. Are you seeing 120 barcodes in slide_info but not in the raw matrix? And is your data coming from Visium platform? Not aware they are extending the number of spots to >14000.

from spotclean.

Streisenberg avatar Streisenberg commented on June 3, 2024

Hi @zijianni , thank you for your prompt attention to this matter. Yes, that is correct, I have 120 more barcodes in my slide_info object.

And yes the data comes from the Visium CytAssist platform. I attached their 11x11mm slides here which contain >14000 barcodes within the capture area.

Screen Shot 2023-10-13 at 8 48 40 PM

Thank you!

from spotclean.

zijianni avatar zijianni commented on June 3, 2024

Thanks for sharing! Yes, you are good to drop the 120 missing barcodes from slide_info.

Note that the bigger Visium slide (~ 14000 spots) was not available at the time our paper was published, so you might want to validate the generated results before downstream analysis. Another note that the computation time and memory usage will increase with more spots in your data. The optimization process cannot easily be parallelized due to the iterative nature of EM algorithm.

from spotclean.

Streisenberg avatar Streisenberg commented on June 3, 2024

Thanks a lot (:

from spotclean.

yeswzc avatar yeswzc commented on June 3, 2024

I have the same issue in one of my data. Discard those not in the raw matrix can solve this.

m.raw <- read10xRaw(file.path(data.home, sample.name,"outs/raw_feature_bc_matrix"))
DEPRECATED.idx <- grep("DEPRECATED", rownames(m.raw))
m.raw <- m.raw[-DEPRECATED.idx,]
 
m.slideInfo <- read10xSlide(file.path(data.home, sample.name,"outs/spatial/tissue_positions.csv"),
                                file.path(data.home, sample.name,"outs/spatial/tissue_lowres_image.png"),
                                file.path(data.home, sample.name,"outs/spatial/scalefactors_json.json"))

if(sum(!m.slideInfo$slide$barcode %in% colnames(m.raw)) > 0){m.slideInfo$slide = m.slideInfo$slide[m.slideInfo$slide$barcode %in% colnames(m.raw),]  }
m.obj <- createSlide(count_mat = m.raw, slide_info = m.slideInfo)


from spotclean.

zijianni avatar zijianni commented on June 3, 2024

Given that more people are facing the same issue, I will implement a fix in createSlide() to remove spots in slide metadata but not in raw expression matrix.

from spotclean.

zijianni avatar zijianni commented on June 3, 2024

Addressed in #24 . After the PR merge, this feature is available in the dev package. The Bioconductor version needs to wait for the next release.

from spotclean.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.