scatlastb_utils.pp.strip_barcodes#
- scatlastb_utils.pp.strip_barcodes(obs_names, re_pattern='[ACTG]{16}')#
Retrieve clean barcodes.
Strip a list of cell names (e.g. from
.obs_namesof an object) to just the cell barcodes.- Parameters:
obs_names – A list of cell names to strip down to just barcodes.
re_pattern (default:
'[ACTG]{16}') – The pattern tore.search()for, the"[ACTG]{16}"default matches 16bp 10X barcodes.
- Returns:
A list of the input cell names, stripped down to just the cell barcode.