-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
all context methylation visualization #29
Comments
Hi Paula, Yes, that shouldn't be a problem. methplotlib doesn't really care about the type of modification it shows. Which file format did you get from megalodon? Cheers, |
Please keep me posted how things go for any of these formats. It may not be necessary to make them too similar to nanopolish files.
I'm afraid I won't have time to add the code for these formats this week. |
Thank you very much for your help and feedback.
Thank you again and I will keep you posted for sure :) |
I found an R script in the METEORE repo that takes the megalodon .bed file and computes methylation frequencies like the nanopolish |
I can help on some of the megalodon options here. Megalodon has a lot of outputs in order to facilitate porting into tools such as methplotlib. Megalodon is designed with two main modified base output types 1) per-read and 2) aggregated. Per-read outputs include the The per-read modified base text format is meant as a dump of the per-read scores database mostly for debugging purposes. I would not recommend this as a standard format that should used as input and is subject to change without notice. Aggregated formats returns results aggregated across reads at each applicable reference position. For the aggregated formats, Megalodon provides 3 options 1) bedmethyl 2) modvcf and 3) wiggle (mostly like a bedgraph but more compact). The modVCF is not really a standard format, but there is no standard format (that I'm aware of) to store multiple modifications in a single file. VCF was the closest, but required adding some fields for strandedness. @JWDebler that METEORE script does not compute the methylation frequencies, but instead just converts from the format from bedmethyl to a consistent text format for comparison to other algorithms within the METEORE framework. I believe this could essentially be accomplished with a simple awk script to move columns around. I'm happy to help mediate the porting of megalodon outputs into methplotlib. Let me know if any adjustments or recommendations would be helpful. |
Hello Marcus, Thank you so much for your help. It would be super useful to be able to port megalodon outputs into methplotlib! :) I did so, and then I tried to run methplotlib but I got an error: methplotlib -m /mnt/fs01/RUNS/minion_run/DNA_meth/megalodon_results/subset_1_5G_norm/mod_mappings.cram -n calls -w chr17:17,722,291-17,725,186 -g /media/data/reference/Homo_sapiens.GRCh38.90.chrplus.gtf --simplify The methplotlib logs reported: I am not sure why is not working and how I can fix it... Another option would be to convert the bedmethyl file into bedgraph but I haven't been able to succeed on this either. Any feedback or recommendation would be very much appreciated. Kind regards, |
I think the error is the same bug @wdecoster noted in #31. Hopefully a resolution can be found there. The bedgraph input to methplotlib is slightly different than the mod_mappings. The mod_mappings contain per-read methylation calls, so can provide more information (phasing/linked methylation) while the bedgraph/bedmethyl is aggregated over reads (so links between calls between each read are lost). I'm not sure what outputs methplotlib has in terms of per-read modified base calls, so this may be a moot point here, but thought the distinction was important. For converting from bedmethyl to bedgraph the following one-liner should work: |
hi all, I am working on methylation outputs to visualize that. I have megalodon(files: modified_bases.5mc.bed, per_read_modified_base_calls.db and per_read_modified_base_calls.txt) and ı am wondering to use these file in Methplotlib. Could you say me the steps basically because ı am a freshman in this field? Many thanks. Kind Regards. |
The megalodon input is in BAM/CRAM format, but you don't have those? |
Hi @wdecoster |
I think --outputs with |
okey, @wdecoster ı will configure my code and run with a small data set to generate the required files. thanks |
Hi @wdecoster Earlier you wrote this:
As for 1. i have a cram file with modifications in the Mm tag and would really like to use methplotlib. However, i get an error regarding the -n argument. code: How to deal with this? |
Have you tried setting the -n argument? |
Sorry for my ignorance.
[E::easy_errno] Libcurl reported error 77 (Problem with the SSL CA cert (path? access rights?)) 2022-05-18 06:24:15,208 methplotlib 0.20.1 started. When i try to use the bam file it looks like this:
Is my input file the problem or something else? |
|
I used My plotly module is 5.8.0 |
I just installed plotly 5.8.0, and it works here. Please try in an interactive python session if it works, and print the version as well, to make sure that not an older version is imported. |
Hi, I have get the same error when I run methplotlib, but it output an .html results that I don´t understand. I don´t have gff ad gtf file for this organism
My plotly version is also 5.8.0. And I run it on an env/ in which I installed methplotlib Do you have any clue? |
Hi, I want to convert my bedmethyl file to bedgraph file. I used the one-liner and got an empty output. Would you please help check my problem? Many thanks! My bedmethyl format is like this:
|
Hello,
I am using megalodon to identify methylations in the whole genome, not only in the CpG islands.
I was wondering if it is possible to use Methplotlib to visualise also those regions outside the CpG context with the megalodon outputs.
Do you think it is compatible?
Thank you,
Paula
The text was updated successfully, but these errors were encountered: