-
Notifications
You must be signed in to change notification settings - Fork 11
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
fragments_dir in ArchR2Signac #3
Comments
Hello @yutongo, Thanks for using ArchR2Signac. For example, if you use 10X Genomics and
Example : I hope this makes sense. Please let me know if this solves your problem. Thank you! |
Hello
Thank you for the quick response. However, I got the fragments files from SnapTools instead of cellranger-atac count and I only have fragments.tsv.gz(tbi) files which are enough inputs for ArchR. The path to fragments.tsv.gz(tbi) files generates the above errors. What else files do I need to use the function CreateFragmentObject? Thank you. |
Hello @yutongo, Thanks for letting me know. I never work with SnapTools before. But it should be a quick fix from my end to update the package or the function to fit your input. Also, I will research the SnapTools output and file formats, and make changes as soon as I can. Regards, |
Hello Ze, Thank you! Path: Tree list: |
@yutongo Thank you for letting me know about this. I will make some adjustments on the source code and update you later. I'm a little bit busy this week, but definitely will fix this error before next week. Thank you for your understanding. |
@yutongo I have updated the package to fit your file and path format. Please update the fragments_dir <- '/Users/yutongo/Documents/ATAC/ATAC_ALL_NEW/'
#Conversion function
seurat_atac <- ArchR2Signac(
ArchRProject = YOUR_ArchRProj, # YOUR_ArchRProj is your ArchRProject
fragments_dir = fragments_dir,
pm = pm, # getting peak matrix
fragments_fromcellranger = "NO",
fragments_file_extension = '.tsv.gz',
refversion = 'hg38', # make sure this fits your choice
annotation = annotations
) I have the above update tested on the ArchR-provided samples. But please let me know if the above update works for you or not. Thank you! Also, for a detailed step-by-step tutorial for ArchRtoSignac, you can find it in the STAR protocol: https://doi.org/10.1016/j.xpro.2022.101491 Thank you once again for using ArchRtoSignac Ze |
Hi Ze, Thank you for the help! However, I meet with the new error based the above example: Is it because of the filtering steps in ArchR? I tried adding the option 'samples = rownames(MY_ArchRProj)', Do you have any suggestions? Thanks a lot. |
@yutongo Sorry to hear that you had a different issue. Would you mind providing the complete code you run? More information you can provide from your ArchRProject metadata would help me understand what might cause the error. I don't know what is left in your data and what you did in your filtering steps. But most likely, I think you're right.
Also, what is in your ArchRProject@cellColData$Sample? |
The ArchRtoSignac package updated to version 1.0.2 to solve this problem |
Thank you for the convenient package!
Are there any hints? |
@mkojima123 Thanks for using the ArchRtoSignac package. Please provide more information, such as which technology you acquired your scATAC-seq, for example, 10x, snapATAC, or something else. Additionally, what code did you run? What is/are the fragment path(s) you have provided? The more information you can provide, the better for me to interpret your error. Thank you. |
Thank you for quick reply. It is fragment of public data. Not 10x data. And, I ran this code.
There are |
Oh, I see. By skimming through the link and the paper, it seems to me that this is a snapATAC dataset, which means there is a column missing in the fragment file compared to scATAC-seq from 10x. The default format of Signac is 10x. So you need to add another column to fill the fifth column, a readSupport column, in your fragment file. But please double-check whether this is snapATAC first before moving forward. I hope this makes sense. This is the latest format for 10x Genomics scATAC fragment files: https://support.10xgenomics.com/single-cell-atac/software/pipelines/latest/output/fragments |
Thank you for your kind explanation.
Actually, Seeing this fragment file,
Please let me know if my understanding is wrong. |
Yeah, it seems that way. What is the 6th (last) column, by the way? Maybe it has something to do with that, I am not sure. Sorry, I have never worked on snapATAC data before, but I am happy to help as much as I can. |
It's probably strand. Almost all sample have fragment_dir example is |
@mkojima123 if your complete path to access the fragment file is |
I see. Thank you. |
Hi. Thank you for your support. |
@mkojima123 Great! Glad it works. Thanks again for using ArchRtoSignac. I will close this issue. Please feel free to open it or make an issue if you have more questions. |
Hello I am also troubling with the fragment files which are the output of cellranger 10x multiomic data seurat_atac <- ArchR2Signac(
For InputFiles I try many things Thanks for help |
Thank you for the package to convert an ArchRProject a SeuratObject!
I have a question about fragments_dir in function ArchR2Signac. Could you provide an example of fragments_dir for the ArchRProject? I tried the folder with "fragments.tsv.gz(tbi)" or fragments.arrow" but got the error:
Error in CreateFragmentObject(path = fragments, cells = cells, validate.fragments = validate.fragments, :
Fragment file does not exist.
Thank you.
The text was updated successfully, but these errors were encountered: