您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

46 行
1.7 KiB

  1. /* bedidx.h -- BED file indexing header file.
  2. Copyright (C) 2017 Genome Research Ltd.
  3. Author: Valeriu Ohan <vo2@sanger.ac.uk>
  4. Permission is hereby granted, free of charge, to any person obtaining a copy
  5. of this software and associated documentation files (the "Software"), to deal
  6. in the Software without restriction, including without limitation the rights
  7. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. copies of the Software, and to permit persons to whom the Software is
  9. furnished to do so, subject to the following conditions:
  10. The above copyright notice and this permission notice shall be included in
  11. all copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  15. THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  17. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  18. DEALINGS IN THE SOFTWARE. */
  19. #ifndef BEDIDX_H
  20. #define BEDIDX_H
  21. #include "htslib/hts.h"
  22. #define LIDX_SHIFT 13
  23. #define ALL 0
  24. #define FILTERED 1
  25. #define MIN(A,B) ( ( (A) < (B) ) ? (A) : (B) )
  26. #define MAX(A,B) ( ( (A) > (B) ) ? (A) : (B) )
  27. void *bed_read(const char *fn);
  28. void bed_destroy(void *_h);
  29. int bed_overlap(const void *_h, const char *chr, hts_pos_t beg, hts_pos_t end);
  30. void *bed_hash_regions(void *reg_hash, char **regs, int first, int last, int *op);
  31. const char* bed_get(void *reg_hash, int index, int filter);
  32. hts_reglist_t *bed_reglist(void *reg_hash, int filter, int *count_regs);
  33. void bed_unify(void *_h);
  34. #endif