Giter Site home page Giter Site logo

Exporting count matrix about crispulator.jl HOT 16 CLOSED

tlnagy avatar tlnagy commented on July 17, 2024
Exporting count matrix

from crispulator.jl.

Comments (16)

hyunhwan-jeong avatar hyunhwan-jeong commented on July 17, 2024 1

I appreciate your support!

Kind Regards,

Hyun-Hwan Jeong

from crispulator.jl.

tlnagy avatar tlnagy commented on July 17, 2024

Could you clarify what you mean by the count matrix?

from crispulator.jl.

hyunhwan-jeong avatar hyunhwan-jeong commented on July 17, 2024

Oh sorry, I would explain it clearly. Crispulator simulates the deep sequencing, and we can have read numbers of each sgRNA for low/high reporter bin. I want to have the read numbers once I run the tool, and I called it count matrix because we can have the sgRNA read numbers for each bin with the form of n x 2 matrix (n is the number of sgRNA, and columns are for low/high bin). I hope I clarify it well.

Thank you

from crispulator.jl.

tlnagy avatar tlnagy commented on July 17, 2024

Sorry for not getting back to you sooner. Crispulator does generate your count matrix, but doesn't export it currently. It should be relatively easy to add.

from crispulator.jl.

hyunhwan-jeong avatar hyunhwan-jeong commented on July 17, 2024

Hello @tlnagy,

I recently realized that you provide the bc_counts data frame, and it stores counts of each sgRNA from the high-throughput sequencing. Therefore, I think you don't have to add any additional function or script. Please correct me if I am wrong or close this issue if it is otherwise. I thank you for your attention to this request and I congratulate your recent publication of this great tool in the journal!

Thank you,

from crispulator.jl.

tlnagy avatar tlnagy commented on July 17, 2024

Let me know if bc_counts worked for you! If not, please open a new issue. I'm going to add an example to the docs based on your example in #52. I think it would help others in the future!

from crispulator.jl.

hyunhwan-jeong avatar hyunhwan-jeong commented on July 17, 2024

I think it is a kind of okay if I want to build single counts for each group. However, I'd like to have any idea how to build the matrix under below conditions:

  • Generate another bc_counts of un/pre-sorted cells with keeping counts of the high and low.
  • Generate multiple replicates under the same configuration, I did it before, but not 100% sure my method is correct.

Thank you,

Hyun-Hwan Jeong

from crispulator.jl.

tlnagy avatar tlnagy commented on July 17, 2024

Generate another bc_counts of un/pre-sorted cells with keeping counts of the high and low.

Are you simulating a FACS Screen?

from crispulator.jl.

hyunhwan-jeong avatar hyunhwan-jeong commented on July 17, 2024

Are you simulating a FACS Screen?

Yes, for the case.

from crispulator.jl.

tlnagy avatar tlnagy commented on July 17, 2024

Generate another bc_counts of un/pre-sorted cells with keeping counts of the high and low.

I realized that obs_phenotype was supposed to serve this purpose so I reverted the previous commit that deleted it. I fleshed out the docs further. http://tamasnagy.com/Crispulator.jl/latest/custom.html#Performing-the-screen-1 should help you with getting the observed phenotype, i.e. the phenotype on which the cells were sorted with FACS

EDIT: It sounds like you obs_phenotype for each individual cell, not on a per-guide level basis, correct?

I think that would involve exporting observed:

observed = zeros(n_cells)
@inbounds for i in 1:n_cells
observed[i] = rand(Normal(cell_phenotypes[i], σ))

from crispulator.jl.

hyunhwan-jeong avatar hyunhwan-jeong commented on July 17, 2024

Hello @tlnagy,
Thanks for your reply, but I do not want to have cell count, and my language made you confused. My question must be corrected as "Can we have read counts for sgRNA for [0,100%] bin or [25%,75%] bin?". I wanted to simulate a CRISPRn experiment like 1. In Figure 1 of the [1], you can see they collected and sequenced for "unsorted cells". Hope it makes you clear now.

Thank you and Best,

Hyun-Hwan Jeong

from crispulator.jl.

tlnagy avatar tlnagy commented on July 17, 2024

I see what you want. So I've had to rearchitect differences_between_bins to support this approach. It's almost ready. I'll push a PR once I'm done.

from crispulator.jl.

tlnagy avatar tlnagy commented on July 17, 2024

Hey @hyunhwaj, if you get a chance can you check out the notebook in #53? It has the Unsorted, GFP_low, GFP_high bins that you were looking for. Let me know over there if it works for you.

You should be able to check it out using

git fetch origin pull/53/head:add-multibin-support
git checkout add-multibin-support

in the Crispulator directory

from crispulator.jl.

tlnagy avatar tlnagy commented on July 17, 2024

I merged #53 into master so now you should be able to run

Pkg.checkout("Crispulator")

to give it a spin. Please open a new issue if you run into any issues or have suggestions!

from crispulator.jl.

hyunhwan-jeong avatar hyunhwan-jeong commented on July 17, 2024

That's actually what I've wanted! I checked the notebook, and this ran without any problem. I truly appreciate your work.

Hyun-Hwan Jeong

from crispulator.jl.

tlnagy avatar tlnagy commented on July 17, 2024

Thanks! Let me know if you need anything else.

from crispulator.jl.

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.