wdecoster / NanoPlot

Plotting scripts for long read sequencing data
http://nanoplot.bioinf.be
MIT License
407 stars 48 forks source link

Running on rebasecalled reads including methylation information #300

Closed smf96 closed 2 years ago

smf96 commented 2 years ago

Hello,

I have recently rebasecalled my data with the latest guppy including CpG methylation calling and I was wondering if nanoplot can be run on the output?

I have tried running it on the unaligned bams that guppy produces but get this error:

image

I also extract the fastqs from the unaligned bams and transfer over the modification information with samtools fastq -T Mm,Ml sample1.bam > sample1.fq but I am getting this error when I try run nanoplot on those fastq: image

Any help is much appreciated, thank you!

All the best,

Sarah

wdecoster commented 2 years ago

Hi Sarah,

How did you run NanoPlot for both errors? Did you see there is an --ubam option for unaligned bams? And did you use --fastq_rich for the fastqs? Because that option expects some more structure in the fastq identifier with regard to time and channel, which is not present in yours. It should work with just --fastq though.

Wouter

smf96 commented 2 years ago

Hello Wouter,

Those worked perfectly, cheers!

wdecoster commented 2 years ago

Good to hear!