View source: R/scmageck_best_lambda.R
scmageck_best_lambda | R Documentation |
This function identifies the best value for lambda, a tuning parameter used in a modeling approach that uses negative controls. Negative controls are samples or features that should not have any meaningful association with the outcome of interest. This approach can be useful in situations where there may be confounding factors or batch effects that can affect the results of a model.
scmageck_best_lambda(
rds_object,
bc_frame,
non_target_ctrl = "NT",
lambda_seq = 10^seq(-3, 3, length = 10),
pseudogene_label = "PSEUDO_GENE"
pseudogene_num = 250
)
rds_object |
Seurat object or local RDS file path that contains the scRNA-seq dataset. Alternatively, you can provide the path to an RDS file. The dataset should only contain cells expressing non-targeting gRNA, which will be used as negative controls for lambda tuning. |
bc_frame |
A txt file or corresponding data.frame that includes cell identity information generated from the cell identity collection step. The bc_frame should have the same number of rows as the rds_object input, and each row should contain a unique cell barcode or identifier along with its corresponding cell identity. |
non_target_ctrl |
A character vector or string containing a comma-separated list of genes that serve as negative controls. |
lambda_seq |
A sequence of lambda values to test. Defaults to 10^seq(-3, 3, length = 10). |
pseudogene_label |
A character string to be used as a pseudogene to evaluate the false positive rate. The defalut value for pseudogene_label is PSEUDO_GENE. |
pseudogene_num |
An integer value indicating the number of cells that should be selected as pseudogenes for false positive rate evaluation. The default value for pseudogene_num is 250. |
The output of the function is a data frame containing the lambda value and the corresponding false positive rate on the negative control samples. Additionally, the function generates a plot showing the relationship between lambda and the false positive rate.
scmageck_eff_estimate
scMAGeCK BitBucket
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.