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

NegProbe in Spatial Deconvolution #42

Open
artfuldodger08 opened this issue Nov 11, 2024 · 1 comment
Open

NegProbe in Spatial Deconvolution #42

artfuldodger08 opened this issue Nov 11, 2024 · 1 comment

Comments

@artfuldodger08
Copy link

I'm using the WTA data, so I have a large number of NegProbe-WTX in the dataset. Do I need to rename each variable here for the data in order to use the Spatial Deconvolution function? When I try and do the rmNegprobe, I get errors due to the multiple rows with the same name.

And thank you for putting this together; super awesome pipeline to use.

@ningbioinfo
Copy link
Member

Hi @artfuldodger08 , for multiple negprobe please refer to this post: #33

There is a quick fix by simply re-labeling the name, such as adding number to the back of the string. For me I would do it before readGeoMx so read the count table in as a dataframe, mutate the gene name column, something like

df <- df %>%
    mutate(negprobe_count = cumsum(grepl("NegProbe",genecol)),  
           genecol = if_else(grepl("NegProbe",genecol), 
                          paste0(genecol, negprobe_count), 
                          genecol)) %>%
    select(-negprobe_count) 

PS: didn't test it may have bugs.

Then when prepare for the deconvolution make use of the pool argument like I mention in the previous post.

PPS: I swear I'll make an update on this by detecting multi negative probes and rename it automatically...

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

No branches or pull requests

2 participants