hyb-align/debug.h

35 lines
1.3 KiB
C
Raw Normal View History

/*********************************************************************************************
Description: data and files for debugging
Copyright : All right reserved by NCIC.ICT
Author : Zhang Zhonghai
Date : 2024/04/09
***********************************************************************************************/
#include <stdio.h>
#include <stdint.h>
////////////////// for debug and test //////////////////////////
2025-11-16 01:37:21 +08:00
// #define DEBUG_FILE_OUTPUT // 打开gfp1-4文件并记录debug信息
// #define COUNT_SEED_LENGTH // 记录seed匹配数量降低到1时的长度以及最终扩展的长度
// #define GET_FULL_MATCH_READ // 获取完全匹配的reads
// #define COUNT_CALC_NUM // 统计BSW的剪枝后的计算量和未剪枝前的计算量
// #define GET_DIFFERENT_EXTENSION_LENGTH // 获取不同长度extension的querytarget和其他用于计算的数据
// #define GET_KSW_ALIGN_SEQ
// #define DEBUG_SW_EXTEND // 将bsw的分值输入到debug文件里
////////////////////////////////////////////////////////////////
extern FILE *gf[4], *gfq[4], *gft[4], *gfi[4];
extern uint64_t debug_num;
extern uint64_t all_match_len;
extern uint64_t all_seq_num;
extern uint64_t all_type_hits;
extern double seed_time;
int open_qti_files();
int open_debug_files();
int close_files();