Skip to content
Snippets Groups Projects
Commit 12fc63b3 authored by Aaron's avatar Aaron
Browse files

Gzip detected by file extension. Weak, but only approach that works at this point.

parent d6548970
No related branches found
No related tags found
No related merge requests found
......@@ -135,12 +135,11 @@ void BedFile::Open(void) {
else {
_bedStream = new ifstream(bedFile.c_str(), ios::in);
if (isGzipFile(_bedStream) == true) {
//if (isGzipFile(_bedStream) == true) {
if(bedFile.substr(bedFile.find_last_of(".") + 1) == "gz") {
delete _bedStream;
_bedStream = new igzstream(bedFile.c_str(), ios::in);
}
// bytes were consumed. rewind.
_bedStream->seekg(0);
// can we open the file?
if ( !(_bedStream->good()) ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment