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

feature request #7

Open
parlar opened this issue Dec 22, 2022 · 2 comments
Open

feature request #7

parlar opened this issue Dec 22, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@parlar
Copy link

parlar commented Dec 22, 2022

Thank you for creating tinycov, I really like the concept!!

I notice some cosmetic issues with the output but I'm sure you're aware.

But one perhaps useful thing: Would it be possible allow import of cov data from another source, such as d4 or bedgraph? Then something like mosdepth could be used to get the coverage data, which might be quicker than using pysam?

Good work!

@parlar
Copy link
Author

parlar commented Dec 23, 2022

just a note:

Played around with d4. it's very quick.

import sys
import fire
from pyd4 import D4File

def main(d4_file: str):
    file = D4File(d4_file)

    down_sampled_chr1 = file.resample("chr1", bin_size = 10000)
    for v in down_sampled_chr1[0]:
        print(v)


if __name__ == '__main__':
    fire.Fire(main)

@cmdoret cmdoret added the enhancement New feature or request label Jan 7, 2023
@cmdoret
Copy link
Owner

cmdoret commented Jan 7, 2023

Hi @parlar thanks for the suggestion! I was not aware of d4 but that looks useful. It would make sense to allow d4/bedgraph inputs, but the code will need a little refactor to disentangle ingestion from plotting.

I'll look into this :)

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

2 participants