Coder Social home page Coder Social logo

Comments (4)

browaeysrobin avatar browaeysrobin commented on May 27, 2024

Hi @uberholzer

I think this is not an error, but just a warning. Can you check this?
But to use the RNA slot, you can change the parameter assay_oi of the get_expressed_genes() function to assay_oi = RNA (it might be that you need to reinstall nichenetr to enable this though). This will use the RNA slot to define expressed genes instead of the integrated slot. The set default assay of the Seurat object does not matter here.

from nichenetr.

uberholzer avatar uberholzer commented on May 27, 2024

@browaeysrobin I am still getting the error even after re-installing nichnetr.

Here is the block of code I am running:

CTOI <- "pDC"
receiver = c("pDC")
Idents(object=seuratObj) <- "celltype_fine"
DefaultAssay(seuratObj) <- "RNA"
expressed_genes_receiver = get_expressed_genes(receiver, seuratObj, pct = 0.10,assay_oi = "RNA")
background_expressed_genes = expressed_genes_receiver %>% .[. %in% rownames(ligand_target_matrix)]
sender_celltypes = c("AM", "Mixed T", "Club cell", "Proliferating T", "Ciliated cell",
                     "Neutrophil", "mDC", "NK", "Proliferating Plasma Cell", "Plasma cell", "Mature B", "pDC", "Mast cell")
list_expressed_genes_sender = sender_celltypes %>% unique() %>% lapply(get_expressed_genes, seuratObj, 0.10)
expressed_genes_sender = list_expressed_genes_sender %>% unlist() %>% unique()

Should I assume the function is working properly on the RNA assay?

from nichenetr.

browaeysrobin avatar browaeysrobin commented on May 27, 2024

Hi @uberholzer

Do you get output for expressed_genes_receiver ? If yes then get_expressed_genes() just gives a warning and not an error.
I think it will just be a warning and everything is working properly on the RNA assay.

from nichenetr.

uberholzer avatar uberholzer commented on May 27, 2024

Yes, I am getting an output and the data is interpretable. Thanks!

from nichenetr.

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.