Closed yaaminiv closed 2 years ago
@yaaminiv can you provide us with those two files to play with?
uploading bedgraph to gannet now...may take a while
My notebook where I add zeros to some loci for some populations. Lots of code here, the pertinent code to make the replacements starts at line 306
https://github.com/sr320/paper-oly-mbdbs-gen/blob/master/code/01-methylkit.Rmd
@shellytrigg answered my question in this issue: https://github.com/sr320/ceabigr/issues/33
Notebook: https://github.com/sr320/ceabigr/blob/main/code/General-Methylation-Landscape.ipynb
I have a bedgraph with % methylation values for each sample, and a VCF file for each sample that lists SNPs. For each CpG locus in the be graph that is listed as a SNP in the VCF file, I want to replace the % methylation value with 0.
I've gotten as far as
intersectBed
. How do I use the information I generate withintersectBed
to replace values in my bedgraph?