Closed DiegoZavallo closed 2 years ago
Hi!
option -bd
should be used with a path to a bedgraph format file but you are providing a path to a directory. However if you are trying to point to megalodon bed files, that is unnecessary as modbamtools automatically plots methylation frequency on top of the single read plots. Let me know if that works!
Ohhh, so I just could run it with the .bam file like this:
modbamtools plot -r CM039687.1:2914823-19333007 -o ./modbamtools/ ./modbamtools/mod_mappings_sorted.bam
Because I did, but my RAM can´t handle it. After a wile the process kiled. I have 16Gb, could it be because the range I selected is to wide? like 18 Mbs?
Hi! As expected I selected a shorter window and run just fine! Thanks! Let me ask you another question. Is it possible to plot two samples (i.e. two genotypes) in the same plot? What do you recommend for the downstream analysis like find DMRs between experiments?
Thanks again
yes you can! just do modbamtools plot options bam1.bam bam2.bam ...
you can change the sample names to whatever you want with --samples
option.
as far as DMR detection, this is something I am actively working on but it's not available yet. you could potentially use megalodon bed files with other tools to find DMRs in the meantime
Hi! Great! Thanks for the replay! Late night yesterday I run the modbamtools calcMeth and it run till morning (8hrs aprox) and then the RAM colapse and kill the processes. Could it take that long? is because have to calculate de methylation on all the bed file (all the genome?)
modbamtools calcMeth -t 10 -o ./modbamtools/ -b ./modbamtools/modified_bases.5mC.bed ./modbamtools/mod_mappings_sorted.bam
you are using the megalodon single CpGs bed file as an input for the regions for calcMeth which does not make that much sense. It has to calculate for thousands of single sites which is why resulted in RAM max out. You'd need to provide a bed file with regions of interest (promoter regions for example).
Ohh, you are right!!! My bad. I don´t have an annotation file for this organism (a grass), but I think I could "make" a file with region of interest.
Is it possible that the plot also display others methylation contexts? like CHG and CHH (very important in plants?) Or the bam file don´t have that information? I think I have read on one of the megalodon issues that is something the want to adress.
An another quick question, what are representing the colors of the reads on the plot?
thanks a lot!
Diego
there is an all context 5mC model available for megalodon or guppy/bonito that you can use.
Red color represents methylated bases and blue represents unmethylated bases.
Hi! I´m trying to run modbamtools with my megalodon output to vizualize the data, but Iḿ getting some errors and I don´t spot the issue.
modbamtools plot -r CM039687.1:2914823-19333007 -bd ./modbamtools/ -o ./modbamtools/ ./modbamtools/mod_mappings_sorted.bam
This is my code, and in the modbamtools/ folder I have the bam file (with its .csi index file), the modified_bases.5mC.bed and also a modified_bases.5mC.bedgraph which I parsed from the bed file.I get this error.
I quite lost with the PATH options, maybe Iḿ run it wrong.
Could your give any hint?
Thanks!