Is it possible to read from a compressed file (e.g., FASTA bz2)? I usually use skbio.sequence.Sequence.read but don't see this option there.
Thanks!
Is it possible to read from a compressed file (e.g., FASTA bz2)? I usually use skbio.sequence.Sequence.read but don't see this option there.
Thanks!
This is possible to do as follows:
I'm using scikit-bio 0.5.0, but this should be possible with earlier versions as well. While I'm explicitly defining the compression type, that's generally not necessary.
The relevant documentation is here and here.