bpcells.experimental.import_10x_fragments#

bpcells.experimental.import_10x_fragments(input: str, output: str, shift_start: int = 0, shift_end: int = 0, keeper_cells: List[str] | None = None)[source]#

Convert 10x fragment file to BPCells format

Parameters:
  • input (str) – Path to 10x input file

  • output (str) – Path to BPCells output directory

  • shift_start (int) – Basepairs to add to start coordinates (generally positive number)

  • shift_end (int) – Basepairs to subtract from end coordinates (generally negative number)

  • keeper_cells (list[str]) – If not None, only save fragments from cells in the keeper_cells list