Skip to content
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

Create a function read.modkit to read in methyl Bed files created by modkit to Bsseq object #131

Merged
merged 12 commits into from
Nov 16, 2023

Conversation

yixuan-chen-elisa
Copy link
Contributor

A function read.modkit() is created to read in methyl bed files and construct Bsseq objects. When N_other_mod (number of reads that pass thresholds and where modification is different from the listed base) are all zeros, we constructed one BSseq object, and it’s pretty similar to how we construct BSseq objects using read.modbam2bed(). When there are non-zero N_other_mod reads, N_other_mod and its corresponding coverage, cov_other_mod are stored in addition to N_mod and its corresponding coverage. Two Bsseq objects are constructed with the first one having N_mod as methylation, N_mod + N_canonical as coverage and the second one having N_other_mod as methylation, N_other_mod + N_canonical as coverage.

@kasperdanielhansen kasperdanielhansen merged commit 1000254 into hansenlab:devel Nov 16, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants