Skip to content

Commit

Permalink
indentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlivingstone committed Feb 6, 2024
1 parent 6f064d0 commit b6dd36b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions OutlierDetectionAlgorithm/5.Simulated_Data_5method.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if (patients.to.remove > 0) {
sample.number <- patient.part
negative.simulated.sum <- negative.simulated.sum[, patient.part]
fpkm.tumor.symbol.filter <- fpkm.tumor.symbol.filter[,patient.part]
}
}

# Define a minimum value
set.seed(42)
Expand Down Expand Up @@ -281,7 +281,6 @@ data.cosine.negative.t <- t(data.cosine.negative);
data.cosine.negative.t <- data.frame(data.cosine.negative.t);
colnames(data.cosine.negative.t) <- c('cosine', 'distribution');


# 1, 2, 3, 4
quantify.outliers <- function(x, methods = 'mean', trim = 0, exclude.zero = FALSE) {
x.na <- na.omit(as.numeric(x));
Expand Down Expand Up @@ -428,9 +427,9 @@ kmean.simulated.negative.1M <- data.frame(t(data.fraction.kmean));
### Final gene-wise matrix #####
gene.zrange.fraction.negative.simulated.sum.1M <- cbind(
mean.simulated.negative.1M$zrange,
median.simulated.negative.1M$zrange,
trimmean.simulated.negative.1M$zrange,
kmean.simulated.negative.1M$fraction
median.simulated.negative.1M$zrange,
trimmean.simulated.negative.1M$zrange,
kmean.simulated.negative.1M$fraction
)
rownames(gene.zrange.fraction.negative.simulated.sum.1M) <- rownames(negative.simulated.sum);
colnames(gene.zrange.fraction.negative.simulated.sum.1M) <- c('zrange.mean', 'zrange.median', 'zrange.trimmean', 'fraction.kmean');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ p.value.all <- NULL
for (i in 1:length(files)) {
load(
file = files[i]
)
)
assign(
x = 'variable.name',
value = paste('gene.rank.p.value.one.gene', patients.to.remove, sep = '.')
)
)
p.value.all <- rbind(
p.value.all,
get(x = variable.name)
Expand Down

0 comments on commit b6dd36b

Please sign in to comment.