superexacttestpy.tl.enumerate_intersect_sizes
- superexacttestpy.tl.enumerate_intersect_sizes(x, degree=-1)
Get a table with the number of intersections for each barcode of a given degree
- Parameters:
- Returns:
A dataframe with each column is a barcode and the row is the number of intersections for this barcode
- Return type:
pd.DataFrame
Example
>>> data = [["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q"], ["L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"], ["H","I","J","K","L","M","N","O","P","Q"]] >>> enumerate_intersect_sizes(data, degree=2) ... | | 011 | 101 | 110 | ... |---:|------:|------:|------:| ... | 0 | 6 | 10 | 6 |