Skip to content

Commit

Permalink
fixing bug with deduplicating ensembl IDs with nan
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Aug 14, 2024
1 parent e267cd4 commit d61aa40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/api/resources/projectr.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def projectr_callback(dataset_id, genecart_id, projection_id, session_id, scope,
# If dataset genes have duplicated index names, we need to rename them to avoid errors
# in collecting rownames in projectR (which gives invalid output)
# This means these duplicated genes will not be in the intersection of the dataset and pattern genes
adata.var_names_make_unique()
adata = adata[:, adata.var.index.duplicated(keep="first") == False]

num_target_genes = adata.shape[1]
num_loading_genes = loading_df.shape[0]
Expand Down

0 comments on commit d61aa40

Please sign in to comment.