1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
/*****************************************************************************\
* Filename : fasta.hh
* Authors : Mario Stanke
*
*
* Date | Author | Changes
*------------|-----------------------|----------------------------------------
* 01.09.2012 | Mario Stanke | Creation of the file
\******************************************************************************/
#ifndef _FASTA_HH
#define _FASTA_HH
#include <iostream>
#include <fstream>
#ifdef ZIPINPUT
#include <boost/iostreams/filtering_stream.hpp>
using boost::iostreams::filtering_istream;
void readOneFastaSeq(filtering_istream &ifstrm, char* &sequence, char* &name, int &length);
#endif
void readOneFastaSeq(std::stringstream &ifstrm, char* &sequence, char* &name, int &length);
void readOneFastaSeq(std::ifstream &ifstrm, char* &sequence, char* &name, int &length);
void readFastaHeader(std::ifstream &ifstrm, char* &name);
bool isFasta(std::ifstream &ifstrm);
#endif // _FASTA_HH
|