Skip to content

mavis/cluster/main

SECTION

SECTION = SUBCOMMAND.CLUSTER

split_clusters()

For a set of clusters creates a bed file representation of all clusters. Also splits the clusters evenly into multiple files based on the user parameters (max_files)

def split_clusters(
    clusters: List[BreakpointPair],
    outputdir: str,
    total_batches: int,
    write_bed_summary: bool = True,
) -> List[str]:

Args

  • clusters (List[BreakpointPair])
  • outputdir (str)
  • total_batches (int)
  • write_bed_summary (bool)

Returns

  • List[str]: list of output file names (not including the bed file)