8 #include "CombBLAS/CombBLAS.h"
16 template <
unsigned int IDLEN,
unsigned int SEQLEN>
21 ShortRead(
const string & s_id,
const string & s_seq,
const string & s_qual)
24 s_seq.copy(
seq, SEQLEN);
25 s_qual.copy(qual, SEQLEN);
31 template <
unsigned int NS_IDLEN,
unsigned int NS_SEQLEN>
39 template <
typename IT,
unsigned int NS_IDLEN,
unsigned int NS_SEQLEN>
43 template <
unsigned int IDLEN,
unsigned int SEQLEN>
46 os << sread.id <<
" " << sread.seq <<
" " << sread.qual << endl;
51 template <
class IT,
unsigned int IDLEN,
unsigned int SEQLEN>
60 return MPIType< ShortRead<IDLEN,SEQLEN> >();
65 size_t entryLength = fread (&ind,
sizeof(ind),1,rFile);
68 cout <<
"Not enough bytes read in binaryfill " << endl;
72 template <
typename c,
typename t>
75 string s_id, s_seq, s_qual, s_null;
84 template <
typename c,
typename t>
93 int main(
int argc,
char* argv[])
96 MPI_Init(&argc, &argv);
97 MPI_Comm_size(MPI_COMM_WORLD,&nprocs);
98 MPI_Comm_rank(MPI_COMM_WORLD,&myrank);
104 cout <<
"Usage: ./VectorIOPermute <VectorFile>" << endl;
105 cout <<
"<VectorFile> is a binary file" << endl;