theislab/mubind

Tests and functionality for sequences as integers

Closed this issue · 1 comments

Using those two functions

def string2bin(s, mode="dna"):

  • Include in SelexDataset and in PBMDataset a parameter to encode sequences as integers when returning the objects i.e. index_type = int/str
  • Declare two tests
    • Test one: load one dataset, encode the indexes as integers, and return that object.
    • Test two: convert the sequences two indexes, the indexes to sequences, and verify that the initial vector of strings is the same as the converted one back and forth.

Merged to development (PR #98).