scfurl / mergeBams

Merge bam files with intelligent cell barcode preservation
3 stars 0 forks source link

Intronic read merge #1

Closed flde closed 1 year ago

flde commented 1 year ago

Hello mergeBams Team,

Many thanks for the useful tool! With CellRanger v7 intronic reads are included and that might be useful for downstream genotyping. However, do you know if mergeBams includes intronic reads for merging or might there be a problem with the bam flags?

So far, I have not noticed any issues but any input on the topic (e.g. how to validate that introns are merged) would be very much appreciated.

All the best, Florian

scfurl commented 1 year ago

Hi Florian,

Thanks for using mergeBams. Please note there is a much improved version of mergeBams here - https://github.com/furlan-lab/mergebams. It is much faster and deals with the bam headers in a more responsible way.

Regarding your question, mergeBams doesn't detect for intronic/exonic reads before merging, so all reads will be merged regardless of whether or not they have introns. All bam flags are copied and only the CB flag is changed by mergeBams.

Hope that answers your question!

S

flde commented 1 year ago

Hi @scfurl,

Many thanks for the info and link to the updated version - I will check it out. Thats great news and thanks for maintaining mergeBams!

Best wishes, Florian