-
Notifications
You must be signed in to change notification settings - Fork 97
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
Is there a way to change the directory to the fragment file? #206
Comments
Currently there is not any way to change the fragment file path (I could add this in the future). For now you should remove the old fragment object and replace it with a new one with the correct path (https://satijalab.org/signac/articles/data_structures.html#the-fragment-class) |
Thanks a lot for your prompt response. The above link shows how to add a fragment object to a chromatin assay. Could you please show me how to remove the old fragment object? |
You should be able to do it using: tmp <- Fragments(object)
tmp[[<index_to_remove>]] <- NULL
object <- SetAssayData(object, slot = "fragments", new.data = tmp) I'll try to add a function to do this in one step for the next release |
Thank you so much! |
Added |
I have generate a signac object using the newest Signac version. After that, one folder associated with the directory to the fragment file has to be renamed. Is there a way to only change the directory to the fragment file for the signac object? Thank you so much!
The text was updated successfully, but these errors were encountered: