Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RANS Nx16 codec (Update CRAM Codecs to CRAM 3.1) #1618

Open
wants to merge 66 commits into
base: master
Choose a base branch
from

Commits on Mar 5, 2024

  1. adding comments to Frequencies.java

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    e493a5a View commit details
    Browse the repository at this point in the history
  2. separate encode and decode classes

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    9d9e681 View commit details
    Browse the repository at this point in the history
  3. Add Frequency methods to encode and decode classes

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    a84de97 View commit details
    Browse the repository at this point in the history
  4. clean up rans tests and add separate packages for rans 4x8 and nx16

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    17073e1 View commit details
    Browse the repository at this point in the history
  5. filter out extra column from q40+dir file

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    8d88da0 View commit details
    Browse the repository at this point in the history
  6. rans nx16 order 1 freq tables + refactor

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    3ec829a View commit details
    Browse the repository at this point in the history
  7. clean up

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    835bdf6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    44548c3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6f3e9d5 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9548daf View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3542cde View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    6f71686 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b39e87d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c0b961c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    7aa9da9 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    c4588b4 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    390289f View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a009786 View commit details
    Browse the repository at this point in the history
  19. Suppress spotbugs warnings.

    cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    0dc38d4 View commit details
    Browse the repository at this point in the history
  20. Don't initialize RANS4x8 decoding structure unless we're going to use…

    … them.
    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    393e6a6 View commit details
    Browse the repository at this point in the history
  21. Move/inline RANS 4x8 E04 compress method into RANS4x8Encode.

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    26618cf View commit details
    Browse the repository at this point in the history
  22. Move/inline RANS 4x8 E14 compress method into RANS4x8Encode.

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    58f76a8 View commit details
    Browse the repository at this point in the history
  23. Move/inline RANS 4x8 D04 uncompress method into RANS4x8Decode.

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    58c14cd View commit details
    Browse the repository at this point in the history
  24. Move/inline RANS 4x8 D14 uncompress method into RANS4x8Decode.

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    84fd017 View commit details
    Browse the repository at this point in the history
  25. Fix normalized Frequency (4096), add normalize Frequency using bit sh…

    …ift methods for RANS Nx16 Order 0 and Order 1, RANS Nx16 Order 0 and Order 1 with format flags = 1 works as expected when N=4
    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    50b8050 View commit details
    Browse the repository at this point in the history
  26. Add ransNx16 for format flags = 1,4,5 (N=32) and replace division wit…

    …h right shifts.
    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    a34ed60 View commit details
    Browse the repository at this point in the history
  27. When CAT is true, add limit and rewind the outBuffer before returning…

    … it.
    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    eb07a9c View commit details
    Browse the repository at this point in the history
  28. Add RANSTest with formatflags = 32, 33, 36, 37

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    943d454 View commit details
    Browse the repository at this point in the history
  29. Remove initialization of alphabet array.

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    7411a41 View commit details
    Browse the repository at this point in the history
  30. Add RLE Encode and Decode. Works as expected for RANSNx16 Order 0

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    63664f7 View commit details
    Browse the repository at this point in the history
  31. Move declaration of variables used within the for loop to inside the …

    …for loop
    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    6d00810 View commit details
    Browse the repository at this point in the history
  32. Convert symbols from int to byte

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    6913c84 View commit details
    Browse the repository at this point in the history
  33. rename getInterleaveSize to getNumInterleavedRANSStates in RANSNx16Pa…

    …rams
    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    3eaef41 View commit details
    Browse the repository at this point in the history
  34. RLE encode and decode works as expected for RANSNx16 Order 1

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    a4b2bb1 View commit details
    Browse the repository at this point in the history
  35. add encode and decode Pack. Add test cases for pack

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    0c80250 View commit details
    Browse the repository at this point in the history
  36. rename variable for better readability

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    5b88e2f View commit details
    Browse the repository at this point in the history
  37. add exception when num of distinct symbols = 0 or > 16

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    09af7e8 View commit details
    Browse the repository at this point in the history
  38. Add Decode Stripe to RANS Nx16. Add getFormatFlags() to RANSParams

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    5bfa10c View commit details
    Browse the repository at this point in the history
  39. Add test for Encoding when Stripe Flag is set

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    c734fbb View commit details
    Browse the repository at this point in the history
  40. Fix Spot Bugs warn - Use && for logical and

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    1c84f8c View commit details
    Browse the repository at this point in the history
  41. Addressing the feedback from Aug 30, 2022

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    e641709 View commit details
    Browse the repository at this point in the history
  42. Use the Interop Test files from samtools-1.14/htslib-1.14/htscodecs/t…

    …ests or ../htscodecs/tests depending on the env
    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    c514bee View commit details
    Browse the repository at this point in the history
  43. Replace hex literals with bit flag masks in RANSInteropTest Data Prov…

    …ider
    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    3ee96c5 View commit details
    Browse the repository at this point in the history
  44. Addressing the feedback so far

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    4129cb3 View commit details
    Browse the repository at this point in the history
  45. rename methods that return boolean to start with 'is' instead of 'get'

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    0ffc6ba View commit details
    Browse the repository at this point in the history
  46. debug

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    947e8e4 View commit details
    Browse the repository at this point in the history
  47. Addressing the feedback from 10/25/22

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    a04ede6 View commit details
    Browse the repository at this point in the history
  48. undo inadvertent deletion of RANSInterop roundtrip test logic

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    266ec6d View commit details
    Browse the repository at this point in the history
  49. debug - add decodePack and decodeRLE on top of CAT flag

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    1ecb5c0 View commit details
    Browse the repository at this point in the history
  50. rewind outBuffer before it is returned

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    06a89a8 View commit details
    Browse the repository at this point in the history
  51. remove duplicate outBuffer creation

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    04c813f View commit details
    Browse the repository at this point in the history
  52. Addressing the feedback from oct 11, 2023 except implementing the Str…

    …ipe Flag in RANS Nx16 encoder
    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    dff9d51 View commit details
    Browse the repository at this point in the history
  53. Move common methods to CRAMInteropTestUtils class

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    3b25380 View commit details
    Browse the repository at this point in the history
  54. Addressing the feedback from Nov 7 and Nov 20 - part 1

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    015491b View commit details
    Browse the repository at this point in the history
  55. Addressing the feedback from Nov 7 and Nov 20 - part 2

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    4341721 View commit details
    Browse the repository at this point in the history
  56. Addressing the feedback from Nov 7 and Nov 20 - part 3

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    c7a06a9 View commit details
    Browse the repository at this point in the history
  57. Addressing the feedback from Nov 7 and Nov 20 - part 4

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    bc7cced View commit details
    Browse the repository at this point in the history
  58. Addressing the feedback from Nov 7 and Nov 20 - part 5

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    c0ff577 View commit details
    Browse the repository at this point in the history
  59. Addressing the feedback from Nov 7 and Nov 20 - part 6

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    7d72393 View commit details
    Browse the repository at this point in the history
  60. Addressing the feedback from Nov 7 and Nov 20 - part 6

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    e898080 View commit details
    Browse the repository at this point in the history
  61. Move common code to CompressionUtils

    yash-puligundla authored and cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    250f901 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    6449de8 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    c411ada View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    fe0e908 View commit details
    Browse the repository at this point in the history
  65. A little naming cleanup.

    cmnbroad committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    8ed004f View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    f1f9c20 View commit details
    Browse the repository at this point in the history