This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Editing seurat object metatdata

I have a Seurat object called test_seurat and I would like to sort this object based on the pseudotime which is a column title p3.pseudotime. This will automatically rearrange the cell id, and other columns. I created a dataframe out of this Seurat object sorted_df where the information is sorted. However I am currently trying to use this sorted dataframe to adjust the one in the Seurat object but I keep running into issues. Can anyone help me out.

This is the image of the Seurat object metadata that isn't sorted

this is the image of the cell ids that arent sorted

this is the image of the cell ids that are sorted

Above is the image of the the dataframe I created that is sorted.

Thank you

seurat metadata scrna-seq

1 answer

Can you show us some of the code you have tried? Are you trying to order by pseudotime for plotting purposes?

Log in to answer this question.