DNASequence/src/main.cpp
2024-09-20 00:23:19 +08:00

24 lines
611 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "dna.hpp"
int main()
{
try{
//参数列表 <文件分块大小单个DNA序列最长大小>("输入文件名",输出文件名);
dna::open_file_and_calculate<(size_t)4 * 1024 * 1024 *1024,(size_t)5e4+5>("filteredReads.txt", "reversedSequence.txt");
}catch(const std::exception &e){
zt::eprint(
"Caught an error because:\n",
"\t",NAME_VALUE(e.what()),"\n"
"Closing\n"
);
throw e;
}catch(...){
zt::eprint(
"Caught an unknown error :\n",
"Closing\n"
);
throw;
}
}