mirror of
https://github.com/johrpan/geposan.git
synced 2025-10-26 10:47:25 +01:00
Reindent code to use just two spaces
This commit is contained in:
parent
a1e6147466
commit
c04b6337e9
17 changed files with 1583 additions and 1582 deletions
|
|
@ -82,7 +82,8 @@ correlation <- function(summarize = stats::median) {
|
|||
]
|
||||
|
||||
# Normalize scores.
|
||||
results[,
|
||||
results[
|
||||
,
|
||||
score := (max_correlation - min(max_correlation)) /
|
||||
(max(max_correlation) - min(max_correlation))
|
||||
]
|
||||
|
|
|
|||
|
|
@ -109,8 +109,8 @@ species_adjacency <- function(distance_estimate = stats::median,
|
|||
gene %chin% reference_gene_ids,
|
||||
combined_distance := as.numeric(
|
||||
distance_estimate(stats::na.omit(
|
||||
as.matrix(.SD)[1, ])
|
||||
)
|
||||
as.matrix(.SD)[1, ]
|
||||
))
|
||||
),
|
||||
.SDcols = reference_gene_ids,
|
||||
by = list(species, gene)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue