Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

28 lignes
1.1 KiB

  1. This patch adds the cram_to_bam function to the public interface of htslib,
  2. because it is used by code in Sambamba.
  3. by Roel Janssen <roel@gnu.org>
  4. --- a/cram/cram_decode.c 2015-12-15 17:34:33.000000000 +0100
  5. +++ b/cram/cram_decode.c 2016-02-24 11:16:10.491808702 +0100
  6. @@ -2730,7 +2730,7 @@
  7. * Returns the used size of the bam record on success
  8. * -1 on failure.
  9. */
  10. -static int cram_to_bam(SAM_hdr *bfd, cram_fd *fd, cram_slice *s,
  11. +int cram_to_bam(SAM_hdr *bfd, cram_fd *fd, cram_slice *s,
  12. cram_record *cr, int rec, bam_seq_t **bam) {
  13. int bam_idx, rg_len;
  14. char name_a[1024], *name;
  15. diff -Naur htslib-1.3/cram/cram_decode.h htslib-1.3-patched/cram/cram_decode.h
  16. --- a/cram/cram_decode.h 2015-12-15 17:34:33.000000000 +0100
  17. +++ b/cram/cram_decode.h 2016-02-24 11:15:04.556809864 +0100
  18. @@ -104,6 +104,8 @@
  19. int cram_decode_slice(cram_fd *fd, cram_container *c, cram_slice *s,
  20. SAM_hdr *hdr);
  21. +int cram_to_bam(SAM_hdr *bfd, cram_fd *fd, cram_slice *s,
  22. + cram_record *cr, int rec, bam_seq_t **bam);
  23. #ifdef __cplusplus
  24. }