From 0865a4880322d22c0b6997fe203362c2e4cdd68e Mon Sep 17 00:00:00 2001 From: yazhini Date: Wed, 18 Dec 2024 15:35:09 +0100 Subject: [PATCH] spelling correct --- mcdevol/clustering.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcdevol/clustering.py b/mcdevol/clustering.py index 25338d5..54e4a4a 100644 --- a/mcdevol/clustering.py +++ b/mcdevol/clustering.py @@ -92,7 +92,7 @@ def cluster( logger: logging.Logger, multi_split: bool = False, max_edges = 100, - seperator: str = 'C' + separator: str = 'C' ) -> None: """ Clusters contigs based on latent representations and optionally splits the clusters if sample-wise contigs are provided. @@ -138,7 +138,7 @@ def cluster( sub_clusters = [] for cluster in clusters: pd_data = pd.DataFrame(cluster, columns=["contig_name"]) - pd_data["sample_id"] = pd_data["contig_name"].str.split(seperator).str[0] + pd_data["sample_id"] = pd_data["contig_name"].str.split(separator).str[0] split_data = pd_data.groupby("sample_id")["contig_name"].apply(list) for sub_cluster in split_data: sub_cluster = [(c, cluster_counter) for c in sub_cluster]