Code Monkey home page Code Monkey logo

Comments (6)

Munfred avatar Munfred commented on August 20, 2024

Hello, I think I found the cause of the negative numbers. Int overflow. I noticed that the maximum values of hashtags were suspiciously close to 32768, (as you can see on the table below) which is the maximum value supported by numpy int16: https://het.as.utexas.edu/HET/Software/Numpy/reference/generated/numpy.iinfo.html

image

I did a quick search on the repo scripts, and I think I found the offending lines, 250 and 251 on processing.py:

umi_results_matrix = sparse.dok_matrix((len(ordered_tags_map) ,len(top_cells)), dtype=int16)
read_results_matrix = sparse.dok_matrix((len(ordered_tags_map) ,len(top_cells)), dtype=int16)

If you change them to use dtype=int32 that should fix the issue

from cite-seq-count.

Hoohm avatar Hoohm commented on August 20, 2024

Hello @Munfred and thanks for the catch!
I think this might also be linked to the other major issue that hangs the umi correction. I'm working on an update that should come out this week that will include the 16->32 fix and probably the umi correction issue fixed.

from cite-seq-count.

Munfred avatar Munfred commented on August 20, 2024

Hi, I just wanted to give you an update I forgot to do earlier

The reason why I was running CITE-seq-Count on the cell hashing dataset is because I wanted to compare it's results with a different demultiplexing approach that uses kallisto.

from cite-seq-count.

Hoohm avatar Hoohm commented on August 20, 2024

Hey @Munfred,
thanks for the heads up and the poster.
Happy to see that results are matching nicely :)

Is this the new "sircel" or is it totally different from this project?

from cite-seq-count.

Munfred avatar Munfred commented on August 20, 2024

Hi, sorry for the delay.

This is unrelated to sircel, was a result of the new kallisto bus feature that let's kallisto process single cell datasets from various technologies.

More info about the BUS format can be found here: https://bustools.github.io/

Some example workflows in python for processing single cell datasets are here: https://github.com/BUStools/BUS_notebooks_python

from cite-seq-count.

Hoohm avatar Hoohm commented on August 20, 2024

This is interesting. I might look into it and use it for dropSeqPipe!

Thanks for the heads up :)

Closing this as the bug was fixed

from cite-seq-count.

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.