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 read.modkit() function to read in methyl Bed files created from modkit to Bsseq objects #130

Closed

Conversation

yixuan-chen-elisa
Copy link
Contributor

A read.modkit() function was created to read into 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 construct one BSseq object, 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.

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.

1 participant