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

Single cell data #9561

Open
DrSawal opened this issue Dec 19, 2024 · 10 comments
Open

Single cell data #9561

DrSawal opened this issue Dec 19, 2024 · 10 comments

Comments

@DrSawal
Copy link

DrSawal commented Dec 19, 2024

my data set is named as HS
when I am giving this command
HS <- FindVariableFeatures(HS, selection.method = "vst", nfeatures = 2000)

Identify the 10 most highly variable genes

top10 <- head(VariableFeatures(HS), 10)

plot variable features with and without labels

plot1 <- VariableFeaturePlot(HS)
plot2 <- LabelPoints(plot = plot1, points = top10, repel = TRUE)
plot1 + plot2

I am getting this error in Seurat
Error in .SelectFeatures():
! None of the features provided are present in the feature set

Backtrace:

  1. ├─Seurat::FindVariableFeatures(object = HS)
  2. └─Seurat:::FindVariableFeatures.Seurat(object = HS)
  3. ├─Seurat::FindVariableFeatures(...)
  4. └─Seurat:::FindVariableFeatures.StdAssay(...)
  5. ├─SeuratObject::VariableFeatures(...)
    
  6. └─SeuratObject:::VariableFeatures.Assay5(...)
    
  7.   ├─SeuratObject::.SelectFeatures(...)
    
  8.   └─SeuratObject:::.SelectFeatures.list(...)
    

Run rlang::last_trace(drop = FALSE) to see 1 hidden frame.

Can you please help me in resolving this issue

@DrSawal
Copy link
Author

DrSawal commented Dec 19, 2024

When I am giving this command
plot1 <- VariableFeaturePlot(HS)
plot2 <- LabelPoints(plot = plot1, points = top10, repel = TRUE)
plot1 + plot2

I am getting this error
Error in HVFInfo():
! Please run either 'FindVariableFeatures' or 'SCTransform'
Run rlang::last_trace() to see where the error occurred.

@alexwskh
Copy link

Have you run FindVariableFeatures or SCTransform on your data?

@DrSawal
Copy link
Author

DrSawal commented Dec 19, 2024 via email

@alexwskh
Copy link

It seems like you are unsure of your workflow and what you are trying to do. You should follow this tutorial... If you can complete that tutorial, you should understand where you are failing.

https://satijalab.org/seurat/articles/pbmc3k_tutorial

@DrSawal
Copy link
Author

DrSawal commented Dec 19, 2024 via email

@alexwskh
Copy link

I mean it is telling you in the error message what to look for. Your object doesn't have any scale.data layers in it, and it is asking you to run ScaleData.

The tutorial is pretty clear. You import your object, you subset it based on mitochondrial content and counts, you run NormalizeData and then FindVariableFeatures before heading onto the next steps.

I would recommend you spend a bit more time understanding what each step is actually doing, and that you aren't jumping ahead. My best guess is that you are missing earlier required steps.

@DrSawal
Copy link
Author

DrSawal commented Dec 19, 2024 via email

@DrSawal
Copy link
Author

DrSawal commented Dec 19, 2024 via email

@rharao
Copy link
Contributor

rharao commented Dec 19, 2024

@samuel-marsh or anyone with appropriate permissions-- can this issue be converted to a community discussion?

@samuel-marsh
Copy link
Collaborator

Hi @rharao I'm inclined to keep it here for now since this does involve error message (even if it ends up being command that's missing). I do want to remind everyone to please be sensitive to differing levels of R and bioinformatics expertise as this community spans beginners to experts.

@DrSawal to ensure that this is not an issue with Seurat package could you please provide the following:

  • the output of sessionInfo()
  • The full code you are running (beginning with object creation)
  • the output is if you just run HS

Best,
Sam

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

4 participants