Skip to content

Commit

Permalink
converted ensemble codes to gene symbols (allowing final plot to run)
Browse files Browse the repository at this point in the history
  • Loading branch information
moi-taiga committed Mar 19, 2024
1 parent 3e649a2 commit 9ae9552
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vignettes/BreastCancer.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,17 @@ sample.sce <- SingleCellExperiment(assays = list(expdata = sample.seu@assays$RNA
#binarize the expression matrix (0.5 chosen as cutoff)
sample.sce <- binarize_exp(sample.sce, fix_cutoff = TRUE, binarize_cutoff = 0.5)
#convert ensble gene names to gene symbols
rownames(sample.sce@assays@data@listData$binary) <- grch38$symbol[match(rownames(sample.sce), grch38$ensgene)]
# Filter the gene expression matrix for the switching genes
sample_reduced <- ppr_filter_gene_expression_for_switching_genes(sample.sce@assays@data@listData$binary, bc_switching_genes)
# saveRDS(sample_reduced, "~/Rprojects/BC/sample_reduced.rds")
# sample_reduced <- readRDS("~/Rprojects/BC/sample_reduced.rds")
#use ppr to predict the position of the exhausted cells
sample.ppr <- ppr_predict_position(sample_reduced, reference.sg = bc_switching_genes)
Expand Down

0 comments on commit 9ae9552

Please sign in to comment.