Skip to content

Commit

Permalink
refactor(scar): refactor dataloading to improve efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
CaibinSh committed Jul 27, 2024
1 parent 99665da commit 707a0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scar/main/_scar.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def __init__(
raise ValueError(f"{batch_key} not found in AnnData.obs.")

self.logger.info(
f"Estimating ambient profile for each batch defined by {batch_key} in AnnData.obs..."
f"Found {raw_count.obs[batch_key].nunique()} batches defined by {batch_key} in AnnData.obs. Estimating ambient profile per batch..."
)
batch_id_per_cell = pd.Categorical(raw_count.obs[batch_key]).codes
ambient_profile = np.empty((len(np.unique(batch_id_per_cell)),raw_count.shape[1]))
Expand Down

0 comments on commit 707a0e0

Please sign in to comment.