7 #ifndef PARSER_FASTA_HPP_ 8 #define PARSER_FASTA_HPP_ 19 typedef record::sequence sequence;
24 if( fi.format() != format::Fasta ) BOOST_THROW_EXCEPTION(
26 << Err::msg_t(
"wrong file format for FASTA parser")
27 << Err::str1_t(sanitize(fi.path()))
28 << Err::int1_t(fi.format())
42 const boost::string_ref get_id() {
return Parser_line::get_id(
'>');}
43 void next_record() {Parser_line::seek_line(
'>');}
44 const boost::string_ref get_defstr() {
return Parser_line::get_defstr(
'>');}
45 sequence get_sequence() {
return Parser_line::get_sequence(
'>');}
49 Parser_line::set_meta(sr,
'>');
50 sr.
seq_ = get_sequence();
Compression
File compression types.
Definition: file_properties.hpp:19
sequence seq_
Definition: sequence_record.hpp:32
Definition: parser_line.hpp:26
Main namespace of vdj_pipe library.
Definition: sequence_file.hpp:14
Definition: sequence_record.hpp:28
Definition: parser_fasta.hpp:16
Basic line-based parser; use to derive other parsers.
Definition: parser_line.hpp:23