Skip to content

Commit

Permalink
Removing references to coord col
Browse files Browse the repository at this point in the history
  • Loading branch information
elhurtado committed Nov 23, 2024
1 parent cbf1e9d commit 20b8a57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions phyclone/data/cluster_outlier_probabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _finalize_loss_prob_on_cluster_df(cluster_df, high_loss_prob, lost_clusters,
print(
"{num} potentially lost/outlier cluster{pl} identified,"
" setting {pos} prior loss prob to {pr}."
"\nRemaining cluster(s) will have a prior loss prob of {prl}.".format(
"\nRemaining cluster(s) will use a prior loss prob of {prl}.".format(
num=len(lost_clusters), pl=pluralize, pr=high_loss_prob, pos=possessive, prl=low_loss_prob
)
)
Expand All @@ -86,7 +86,7 @@ def _finalize_loss_prob_on_cluster_df(cluster_df, high_loss_prob, lost_clusters,


def _get_truncal_chrom_arr(df, truncal_cluster):
df = df[["cluster_id", "chrom", "coord", "mutation_id"]].drop_duplicates()
df = df[["cluster_id", "chrom", "mutation_id"]].drop_duplicates()
df = df.loc[df["cluster_id"] == truncal_cluster]
truncal_dists = list()
grouped = df.groupby("chrom", sort=False)
Expand Down
2 changes: 1 addition & 1 deletion phyclone/data/pyclone.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _setup_cluster_df(
if "chrom" not in cluster_df.columns:
data_df = pd.read_table(data_file)
if "chrom" in data_df.columns:
data_df = data_df[["mutation_id", "chrom", "coord"]]
data_df = data_df[["mutation_id", "chrom"]]
cluster_df = pd.merge(cluster_df, data_df, how="inner", on=["mutation_id"])
cluster_df = cluster_df.drop_duplicates()
else:
Expand Down

0 comments on commit 20b8a57

Please sign in to comment.