Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Getting started after integration #5

Open
KeeBak opened this issue May 5, 2021 · 1 comment
Open

Getting started after integration #5

KeeBak opened this issue May 5, 2021 · 1 comment

Comments

@KeeBak
Copy link

KeeBak commented May 5, 2021

Hi, I'm really interested in using this tool! I am however new to this sort of analysis and so was hoping you could help with the basics. I have integrated my sample as in the seurat vignette https://satijalab.org/seurat/articles/integration_introduction.html and have now my seurat object "immune.combined". I am now following your tutorial to identify my da regions and have errors.

#get label info
head(immune.combined)

labels_res <- immune.combined[immune.combined$stim == "STIM", "label"]
labels_nonres <- immune.combined[immune.combined$stim == "CTRL", "label"]

head(immune.combined)
Warning: The following arguments are not used: drop
An object of class Seurat
12 features across 25152 samples within 2 assays
Active assay: integrated (6 features, 6 variable features)
1 other assay present: RNA
2 dimensional reductions calculated: pca, umap

labels_res <- immune.combined[immune.combined$stim == "STIM", "label"]
Error in [.Seurat(immune.combined, immune.combined$stim == "STIM", "label") :
Incorrect number of logical values provided to subset features
labels_nonres <- immune.combined[immune.combined$stim == "CTRL", "label"]
Error in [.Seurat(immune.combined, immune.combined$stim == "CTRL", "label") :
Incorrect number of logical values provided to subset features

any help would be greatly appreciated!

@JunZhao1990
Copy link
Member

Hi @KeeBak , thank you for your interest in DAseq!

I think you could try the following.

labels_res <- immune.combined$orig.ident[immune.combined$stim == "STIM"]
table(labels_res)
labels_nonres <- immune.combined$orig.ident[immune.combined$stim == "CTRL"]
table(labels_nonres)

Basically, you need to check what meta.data columns are available in this object first and then go from there. Hope this is helpful.

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

No branches or pull requests

2 participants