Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ostream & operator<<(std::ostream & os, const SecuenciasKmer & i){
- os << i._nKmer << endl;
- for(int j=0; j< i.getSize(); j++){
- i._conjunto[j].writeKmer();
- os << endl;
- }
- return os;
- }
- istream & operator>>(std::istream & is, SecuenciasKmer & i){
- int total_datos, kmer_frec;
- string kmer_chain;
- is >> total_datos;
- if(total_datos > 0){
- i.reservarMemoria(total_datos);
- for(int j=0; j<total_datos; j++){
- is >> kmer_chain >> kmer_frec;
- i._conjunto[j].setCadena(kmer_chain);
- i._conjunto[j].setFrecuencia(kmer_frec);
- }
- }
- return is;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement