10 #include "utils/scaffolding_typedefs.hpp"
13 #define FASTA_MAX_LINELENGTH 79
17 void write_contigs_as_fasta(std::ostream& out, SequenceMap& name_to_seq)
19 for(
const auto& name_seq: name_to_seq){
20 out <<
">" << name_seq.first << std::endl;
24 const std::string buffer = name_seq.second.sequence.substr(pos, FASTA_MAX_LINELENGTH);
25 out << buffer << std::endl;
26 pos += FASTA_MAX_LINELENGTH;
28 }
catch(std::out_of_range e) {};
Definition: read_adj_list.hpp:22
Definition: read_phytree.hpp:10