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

Seurat 3.0 subset function "None of the requested variables were found" error #1647

Closed
mdurante1 opened this issue Jun 6, 2019 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@mdurante1
Copy link

mdurante1 commented Jun 6, 2019

When I use the new subset() function with gene names that have a "-" in them followed by a number I receive the following error:

object.Nkx4.1 <- subset(x = object, subset = Nkx4-1 > 0)  

Error in FetchData(object = object, vars = expr.char[vars.use], cells = cells,  : 
  None of the requested variables were found: 

This works in the deprecated function:

object.Nkx4.1 <- SubsetData(object, subset.name = "Nkx4-1", low.threshold = 0.00001, high.threshold = Inf)

Warning messages:
1: 'SubsetData' is deprecated.
Use 'subset' instead.
See help("Deprecated") 
2: 'OldWhichCells' is deprecated.
Use 'WhichCells' instead.
See help("Deprecated") 

I have tried multiple different syntax variations as well as storing the name using the c() function but none of this works. Is there a specific syntax I should be using?

Thanks,
Michael

@mojaveazure
Copy link
Member

Hi Michael,

Please see #1212 (comment) for subsetting on features that have a dash in their name.

@mojaveazure mojaveazure added the duplicate This issue or pull request already exists label Jun 6, 2019
@mdurante1
Copy link
Author

Great, thank you for this information!

@annpa1231
Copy link

Hello,

I am trying to analyze motifs using Signac for single cell ATAC sequencing data.
Any idea what I am doing wrong when I type this command? I am getting error message that "none of the requested variables were found: SC294C_peaks"

da_peaks <- FindMarkers(object = SC294C, ident.1 = 'MPH SPP1 LGMN', ident.2 = 'MPH INHBA FABP4', only.pos = TRUE, test.use = 'LR', latent.vars = 'SC294C_peaks')
Error in FetchData(object = object, vars = latent.vars, cells = c(ident.1, :
None of the requested variables were found: SC294C_peaks

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants