Skip to content

Commit

Permalink
update scDesign2 script
Browse files Browse the repository at this point in the history
  • Loading branch information
littlecabiria committed Oct 4, 2024
1 parent d607631 commit a0456c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/methods/scdesign2/script.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ sim_out <- scDesign2::simulate_count_scDesign2(
cell_type_prop = prop.table(spatial_cluster_prop)
)

colnames(sim_out) <- colnames(t(input$layers[["counts"]]))
rownames(sim_out) <- rownames(t(input$layers[["counts"]]))
# colnames(sim_out) <- colnames(t(as.matrix(input$layers[["counts"]])))
#rownames(sim_out) <- rownames(t(as.matrix(input$layers[["counts"]])))

rownames(sim_out) <- input$obs_names
colnames(sim_out) <- input$var_names

cat("Generating output\n")

Expand Down

0 comments on commit a0456c0

Please sign in to comment.