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

bedgraph and bedmethyl only-tab simultaneously #210

Open
ShokodkoMariia opened this issue Jun 18, 2024 · 2 comments
Open

bedgraph and bedmethyl only-tab simultaneously #210

ShokodkoMariia opened this issue Jun 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ShokodkoMariia
Copy link

Hello, is there any possibility to get both .bedgraph and .bedmethyl (only-tab) from one run of the tool (while doing one command)? If there isn't any, could you add it later?

@ArtRand ArtRand added the enhancement New feature or request label Jun 20, 2024
@ArtRand
Copy link
Contributor

ArtRand commented Jun 20, 2024

Hello @ShokodkoMariia,

This is a pretty common request, so I'll try and get it into an upcoming release.

In the mean time, you can convert the bedMethyl file into a bedGraph since the bedGraph contains a subset of the information.

awk -v OFS="\t" '{print $1, $2, $3, $11, $10}' $bedmethyl

@marcus1487
Copy link
Contributor

You can use modkit pileup ${bam_path} - | tee out.bedmethyl | awk -v OFS="\t" '{print $1, $2, $3, $11, $10}' > out.bg to get both outputs at once without running anything twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants