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

Help fill out a plate or detect it #43

Open
llrs opened this issue May 10, 2023 · 1 comment
Open

Help fill out a plate or detect it #43

llrs opened this issue May 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@llrs
Copy link
Owner

llrs commented May 10, 2023

If a plate has X positions it would be nice if there were some kind of helper functions to find which samples can go to which positions.
This could help to fill up a batch (when still with time).

Also it could help to find how many plates there are in an experiment and thus help diagnose problems better.
Example taken from the OSCA book:

library(scRNAseq)
sce.seger <- SegerstolpePancreasData()
df <- data.frame(rownames = rownames(colData(sce.seger)), colData(sce.seger))
dfull <- tidyr::separate_wider_delim(df, cols = rownames, delim = "_", names = c("S", "P"))
s <- strcapture("([A-Z])([0-9]*)", proto = data.frame(row = character(), col = character()), x = dfull$P)
s2 <- cbind(dfull, s)

The experiment was done in plates of 24*16 = 384 samples in a plate. Each donor uses less than a full plate. But there are also 14 different Cell types (at most 12 per donor). [Note to self: in the guide they just do mutual nearest neighbors (MNN)]

Was each donor in a plate? Thus making this a batch effect? Or were multiple donors in the same plate thus reducing the batch effect to compare between donors?

@llrs llrs added the enhancement New feature or request label May 10, 2023
@llrs
Copy link
Owner Author

llrs commented Mar 19, 2024

This is partially solved in "create_box": https://github.com/llrs/rutils/blob/master/R/bioinfo.R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant