Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

48 linhas
1.8 KiB

  1. /* convert.h -- functions for converting between VCF/BCF and related formats.
  2. Copyright (C) 2014-2021 Genome Research Ltd.
  3. Author: Petr Danecek <pd3@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 THE
  15. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  17. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  18. THE SOFTWARE. */
  19. #ifndef __CONVERT_H__
  20. #define __CONVERT_H__
  21. #include <htslib/vcf.h>
  22. typedef struct _convert_t convert_t;
  23. enum convert_option
  24. {
  25. allow_undef_tags,
  26. subset_samples,
  27. };
  28. convert_t *convert_init(bcf_hdr_t *hdr, int *samples, int nsamples, const char *str);
  29. void convert_destroy(convert_t *convert);
  30. int convert_set_option(convert_t *convert, enum convert_option opt, ...);
  31. int convert_header(convert_t *convert, kstring_t *str);
  32. int convert_line(convert_t *convert, bcf1_t *rec, kstring_t *str);
  33. int convert_max_unpack(convert_t *convert);
  34. int convert_is_tag_used(convert_t *convert, char *tag);
  35. const char **convert_list_used_tags(convert_t *convert, int *ntags);
  36. #endif