Is it possible to represent the frequencies of two samples in the same .html browser?
Coracollar opened this issue · 5 comments
Hi,
I was wondering whether besides the option of representing one pair of methylation frequencies and calls per .html, there was an option to generate a methylation html browser that shows the frequencies of two samples at the same time to compare them.
Thanks
I'm not sure if I understand what exactly you are hoping to get. Could you take a look at the examples and see if the plot you want is there?
You'll get that if you just use two or more frequency files as input, and do not use the --split option.
If you add raw methylation likelihoods together with the frequencies then the tracks will be split automatically. I don't think I have a good way around that at the moment.
The cause here is that you reuse the same name for the datasets. It would be prevented if you would use e.g. frequencies1 and frequencies2:
methplotlib -m /data/cephfs/punim1048/allbarcoded/CORT/CORT13/chr11_cort13_calls_R.tsv \
/data/cephfs/punim1048/allbarcoded/CORT/CORT13/chr11_cort13_frec_R.tsv \
/data/cephfs/punim1048/allbarcoded/Control/C3/chr11_methylation_calls_R.tsv \
/data/cephfs/punim1048/allbarcoded/Control/C3/chr11_methylation_frec_R.tsv \
-n calls frequencies1 calls frequencies2 \
-w chr11:11,928,499-12,039,420
And that's also not what I told you to do if you want a plot with overlapping frequency tracks. You should then do the following command with just frequencies:
methplotlib -m /data/cephfs/punim1048/allbarcoded/CORT/CORT13/chr11_cort13_frec_R.tsv \
/data/cephfs/punim1048/allbarcoded/Control/C3/chr11_methylation_frec_R.tsv \
-n calls frequencies1 calls frequencies2 \
-w chr11:11,928,499-12,039,420
As I said:
If you add raw methylation likelihoods together with the frequencies then the tracks will be split automatically. I don't think I have a good way around that at the moment.
If you include CALL files you won't get overlapping frequencies. That's just how the code is implemented at the moment.