To get bam files #1346
Replies: 3 comments 8 replies
-
Assuming you have standard 10x data, I would use the We've discussed making this more straightforward with ArchR but to my knowledge Rsamtools cannot directly export bam files. |
Beta Was this translation helpful? Give feedback.
-
Hi @rcorces, I looked into this further and it maybe a bit out of my expertise to add a new function quickly. Since, many tools need cell-type bams to run, it would be truly worthwhile and helpful if this can be implemented. Can you please tell me a timeline by which you can expect this to be implemented? Even if you can provide me with some basic code of how to do this most efficiently within ArchR- that would be wonderful. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi @rcorces, is there an update on the implementation of this in ArchR? It seems simple/possible to implement this within the file GroupExport.R (as this exports groupBW) (but unfortunately its very very difficult to do outside ArchR when you have many samples (problems include: barcode name collision, filtering specific cells from many files, merging bams properly etc) It would be very helpful to have this function, as very often one needs group bam files for many downstream analyses. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @rcorces,
To get bam files per cell-type from ArchR - I would have to use getFragmentsFromProject() with specific cell-names, convert GRanges object to bed format, subtract -1 from start coordinate (as bed files are zero-indexed), and then use bedtobam function from bedtools to obtain final bam files. Does that sound right to you?
Also, if I have missed a simpler way to get generate them from ArchR - please let me know.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions