Commit 9cb028d2 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Mikaël Salson

core/fasta.cpp: OnLineFasta() use igzstream

Now Vidjil may load .gz files.
parent 26443937
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <stdexcept> #include <stdexcept>
#include "fasta.h" #include "fasta.h"
#include "../lib/gzstream.h"
void Fasta::init(int extract_field, string extract_separator) void Fasta::init(int extract_field, string extract_separator)
{ {
...@@ -92,7 +93,7 @@ OnlineFasta::OnlineFasta(int extract_field, string extract_separator): ...@@ -92,7 +93,7 @@ OnlineFasta::OnlineFasta(int extract_field, string extract_separator):
OnlineFasta::OnlineFasta(const string &input, OnlineFasta::OnlineFasta(const string &input,
int extract_field, string extract_separator) int extract_field, string extract_separator)
:input(new ifstream(input.c_str())), :input(new igzstream(input.c_str())),
extract_field(extract_field), extract_field(extract_field),
extract_separator(extract_separator) extract_separator(extract_separator)
{ {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment