Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
amva13 committed Jan 20, 2025
1 parent 6ef92ec commit b237dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tdc/model_server/tokenizers/geneformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def tokenize_cell_vectors(self,
])
coding_miRNA_ids = adata.var[ensembl_id][coding_miRNA_loc]
coding_miRNA_tokens = np.array(
[self.gene_token_dict[i] for i in coding_miRNA_ids])
[self.gene_token_dict.get(i, 0) for i in coding_miRNA_ids])

try:
_ = adata.obs["filter_pass"]
Expand Down

0 comments on commit b237dd6

Please sign in to comment.