-
Notifications
You must be signed in to change notification settings - Fork 79
Demux fetch bug #1214
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
Demux fetch bug #1214
Conversation
|
👍 if tests pass. |
|
code looks good, just testing for myself now |
|
Looks good to me as well, would you mind adding a note to the ChangeLog? This seems like an important bug fix to mention there. |
|
When I test similar code on my system, I get an error from scikit-bio (0.2.3) not recognizing the filetype. The code I'm trying to execute is: from h5py import File
from qiita_ware.demux import to_hdf5, fetch
hdf5_fp = '/tmp/variable.hdf5'
fastq_fp = '/tmp/variable.fq'
with open(fastq_fp, 'U') as fq, File(hdf5_fp, 'w') as h5:
to_hdf5(fq, h5)And the contents of /tmp/variable.fq are: So I'm not sure what's going on... I'm going to hold off investigating further until these tests finish. |
|
well, I guess I'm doing something wrong since the tests appear to be working... but for the record the error I am getting is: |
|
Ah... the to_hdf5 takes a filepath as the first argument and an open HDF5 file as the second argument. Corrected, and it works now! |
|
I think the filename needs to be the input to to_hdf5, not the file handle On Wed, May 27, 2015 at 5:30 PM, adamrp notifications@github.com wrote:
|
Truncating is happening as expected now