NanoPlot icon indicating copy to clipboard operation
NanoPlot copied to clipboard

Using barcoded BAM files with no summary

Open Ge0rges opened this issue 1 year ago • 6 comments

Hello,

I have a set of unaligned BAMs seperated by barcode given to me by dorado. I was wondering if it would be possible to use these with the --barcoded flag to get a summary of each barcode, and a summary of the all together? This seems to require a summary file currently.

Ge0rges avatar Mar 12 '24 22:03 Ge0rges

So you have individual bams, and for each bam you want a summary? --barcoded does not support that, indeed, but I think you should use all bams at the same with NanoPlot to get the "all together" report and use them in NanoComp to get separate reports/comparison.

wdecoster avatar Mar 13 '24 09:03 wdecoster

@Ge0rges I wonder if its possible to concatenate all the barcoded .bam files into one file then run NanoPlot to get the total read summary from all the barcodes? I will probably try this with NanoComp as well.

katievigil avatar Mar 13 '24 10:03 katievigil

NanoPlot will combine multiple bams, no need to concatenate first

wdecoster avatar Mar 13 '24 11:03 wdecoster

@wdecoster I am actually doing fastq.gz files from dorado and looks like my nanoplot results separated out each barcode into separate directories. Is there a way to have all the results combined? image

katievigil avatar Mar 13 '24 14:03 katievigil

You wrote a loop over the fastq directories (in your other issue). Just use all fastqs at the same time.

wdecoster avatar Mar 13 '24 15:03 wdecoster

@wdecoster seems like NanoComp only supports aligned BAM files however, what would be the logical way to use it with the unaligned barcodes given by dorado?

Also what is the difference between using --barcoded with a summary file, and just running each barcode individually, then all together? Surely the tool could produce a per barcode analysis with the latter option as well?

Ge0rges avatar Mar 13 '24 21:03 Ge0rges