superexacttestpy.tl.exc2inc_intersect
- superexacttestpy.tl.exc2inc_intersect(df)
Calculate the number of intersections (exclusive plus inclusive) for all barcodes
- Parameters:
- df : pd.DataFrame
A dataframe with each column is a barcode and the row is the number of exclusive intersections for this barcode
- 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"]] >>> intersect = exclusive_intersect0(data) >>> exc2inc_intersect(intersect) ... | | 001 | 010 | 011 | 100 | 101 | 110 | 111 | ... |---:|------:|------:|------:|------:|------:|------:|------:| ... | 0 | 10 | 15 | 6 | 17 | 10 | 6 | 6 |