BAITS.VDJ.tl.process_group_with_neighbor_count#
- BAITS.VDJ.tl.process_group_with_neighbor_count(group, threshold=0.85, cdr3nt_col='cdr3nt')#
Process a grouped BCR dataframe to assign clusters and neighbor counts.
For each group of sequences sharing the same Vgene, Jgene, and CDR3 length, sequences are clustered and the number of neighbors with a single nucleotide difference is counted for each sequence.
- Parameters:
- Returns:
Each tuple contains: (Vgene, Jgene, sequence, cluster_id, neighbor_count)
- Return type:
list of tuples