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

Cram reference support #555

Merged
merged 9 commits into from
Dec 8, 2020
Merged

Conversation

johnegarza
Copy link
Contributor

This PR adds support for explicitly specifying a reference fasta file to use when opening cram files. Previously, cnvkit defaulted to attempting to look up the reference sequences via md5 hash online, which pysam does not support. The first commit in this PR was part of my test workflow (the same as in #551) and has been tested extensively. The rest of the changes were made by finding calls to pysam that involved opening cram files and working backwards; I have tested these as best as I could, but may have missed some code paths, and would appreciate your input. I have verified that my modified calls to pysam with no fasta (reference_filename=None) function normally.

@etal
Copy link
Owner

etal commented Dec 8, 2020

Thank you for this nicely formatted change set. The code here looks good to me; I'll merge it.

@etal etal merged commit d0bea38 into etal:master Dec 8, 2020
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