-
Notifications
You must be signed in to change notification settings - Fork 27
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
Multiple-Sample Integration for filtering cell ID based off Seurat #9
Comments
hi @cfayx1996, I think you need to check your cell IDs first, especially their pattern.
In this line, And I think you need to modify the code like this:
|
Hello! I tried attempting this solution (see #13 ) but it did not work for me and produced a long traceback error. @cfayx1996 did yoz have any luck? |
Hi @AAA-3, I presume you are trying to filter your data for RNA Velocity? I tried to use this tutorial in for sorting in python, but found it was a lot easier to sort and create the object in R since I was analyzing the data with Seurat v4. If you are using R and Seurat I would be happy to share what I did if that would help! |
Hi @cfayx1996 Yes I am :) I’d be happy to try your method out as well!! You can email or message through the forum, whichever is convenient: [email protected] |
Hi @cfayx1996 I am having similar trouble - is there a solution using R you could post here? Thank you! |
Hi! Would you be able to share this with me, too? [email protected] if you'd like to email. Thanks! |
Hello,
Thank you for the well detailed instructions for this they are very helpful. I am rather new to python and I am having a challenging time trying to filter the loom files to match my Seurat object. My Seurat consists of 3 individual samples that are integrated together. I have three separate loom files that were made using Velocyto. I have followed all the instructions in your tutorial up to the filtering step for the loom files. After calling in all the CSV files for the CellIds, UMAP, and cluster ids I moved onto the Multiple-Sample Integration step as my CellID_Obs file has combined 3 samples just like your example table. I use the code:
cellID_obs_sample_one = cellID_obs[cellID_obs_sample_one[0].str.contrains("sample1_")]
cellID_obs_sample_two = cellID_obs[cellID_obs_sample_two[0].str.contrains("sample2_")]
cellID_obs_sample_three = cellID_obs[cellID_obs_sample_three[0].str.contrains("sample3_")]
sample_one = sample_one[np.isin(sample_one.obs.index, cellID_obs_sample_one)]
sample_two = sample_one[np.isin(sample_two.obs.index, cellID_obs_sample_two)]
sample_two = sample_one[np.isin(sample_two.obs.index, cellID_obs_sample_two)]
When I run the first line it errors out with:
If i separate the samples cellID_obs from Seurat into 3 separate lists and run it i still error out:
I figure that I am doing some part of this wrong and wanted to know if you would be able to help me pinpoint the issue as I want to calculate RNA velocity and use my seurat UMAP.
Thank you for your help and consideration!
The text was updated successfully, but these errors were encountered: