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
Pickle to NPZ? #33
Comments
I've had this question before, and I guess it makes sense for some situations. I wrote a little script that should do the conversion for you, just copy and paste the following bit into a .py file and it should do the conversion for any pickle you provide. I didn't quite check the correctness of this as I currently do not have much to test this on. A word of warning: I can imagine that due to differences in implementation, a consistent error in either conversion step can pop up, making a file converted from bam to pickle to npz behave differently than a npz created from a bam directly. Neither implementation would suffer from this difference on their own, it only shows problematic with a conversion like this. If you find there is such a systematic error, please let me know. To test, just convert a bam file you have using the new implementation and the old, then convert it to npz as well, and see if their results differ when testing for CNVs (or send the npzs to me and I can check them internally). Also, this conversion fills a lot of stats and runtime information it cannot obtain with -1 (or None). So I advice strongly against using it unless it is for reference creation and you have absolutely no way of retrieving the original bam files.
|
I will try and give feedback to this. |
I want to try the newer wisecondor that use NPZ. One problem is that we do not have the original BAM files. Is there a way to convert .pickle file to .npz?
The text was updated successfully, but these errors were encountered: