Skip to content

Commit

Permalink
temporarily converted function to R
Browse files Browse the repository at this point in the history
  • Loading branch information
Qile0317 committed Jul 16, 2023
1 parent f3646be commit 7cf5d78
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 26 deletions.
17 changes: 16 additions & 1 deletion R/get_clone_sizes.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,22 @@ add_raw_clone_sizes <- function(apotc_obj, integrated_seurat_obj) {
apotc_obj
}

# multiply all tables in a raw clonotype freq list by a scale factor and sqrt
get_transformed_clone_sizes <- function(
sizelist, clone_scale_factor, num_clusters
) {
output_sizes <- vector("list", num_clusters)
for (i in 1:num_clusters) {
curr_sizes <- sizelist[[i]]
if (is.null(curr_sizes)) {
output_sizes[[i]] <- list()
next
}
output_sizes[[i]] <- sqrt(curr_sizes) * clone_scale_factor
}
output_sizes
}

# multiply all tables in a raw clonotype freq list by a scale factor and sqrt (for the next update)
get_processed_clone_sizes <- function(apotc_obj) {
raw_tabled_clone_sizes <- apotc_obj@clone_sizes
processed_sizes <- vector("list", apotc_obj@num_clusters)
Expand Down
24 changes: 0 additions & 24 deletions src/get_clone_sizes.h

This file was deleted.

1 change: 0 additions & 1 deletion src/run_all.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

// function scripts
#include "utils.h"
#include "get_clone_sizes.h"
#include "cpp_circle_layout.h"
#include "repulsion.h"

Expand Down

0 comments on commit 7cf5d78

Please sign in to comment.