This commit is contained in:
Zengtudor 2024-09-20 00:32:03 +08:00
parent 83808fc6b4
commit c006ea10c6
1 changed files with 3 additions and 3 deletions

View File

@ -31,11 +31,11 @@ void reverseComplement(char *begin, char *end)
int main() int main()
{ {
try{ try{
//原理是这里定义处理函数,将函数传入open_file_and_calculate在open_file_and_calculate中会调用传入的函数 //原理是这里定义处理函数,将函数传入dna::open_file_and_calculate在open_file_and_calculate中会调用传入的函数
//参数列表 <文件分块大小单个DNA序列最长大小>("输入文件名","输出文件名",序列处理函数); //参数列表 <文件分块内存大小单个DNA序列最长大小>("输入文件名","输出文件名",序列处理函数);
//这个函数在src/tools/dna里面 //这个函数在src/tools/dna里面
dna::open_file_and_calculate<(size_t)4 * 1024 * 1024 *1024,(size_t)5e4+5>("filteredReads.txt", "reversedSequence.txt",reverseComplement); dna::open_file_and_calculate<(size_t)4 * 1024 * 1024 *1024 , (size_t)5e4+5>("filteredReads.txt", "reversedSequence.txt",reverseComplement);
}catch(const std::exception &e){ }catch(const std::exception &e){
zt::eprint( zt::eprint(