Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dorien-er committed Nov 29, 2024
1 parent eb65024 commit 5612ce9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/annotate/random_forest_annotation/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def main():

else:
logger.warning("Model does not have feature names saved. Could not check overlap of model's features with query genes.")

elif par["reference"]:
logger.info("Reading reference data")

Expand All @@ -93,7 +93,7 @@ def main():
common_genes = cross_check_genes(input_modality.var.index, reference_modality.var.index, par["input_reference_gene_overlap"])
reference_modality = reference_modality[:, common_genes]
input_modality = input_modality[:, common_genes]

reference_matrix = reference_modality.layers[par["reference_layer"]] if par["reference_layer"] else reference_modality.X
input_matrix = input_modality.layers[par["input_layer"]] if par["input_layer"] else input_modality.X

Expand Down
2 changes: 1 addition & 1 deletion src/annotate/svm_annotation/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
def dummy_model(tmp_path):
reference_modality = mu.read_h5mu(reference_file).mod["rna"].copy()
reference_modality = set_var_index(reference_modality, "ensemblid")

input_modality = mu.read_h5mu(input_file).mod["rna"].copy()
input_modality = set_var_index(input_modality, None)

Expand Down

0 comments on commit 5612ce9

Please sign in to comment.