Skip to content

Commit

Permalink
Update CBS.R
Browse files Browse the repository at this point in the history
fix using of seed in CBS.R
  • Loading branch information
koen-swaerts authored and matthdsm committed Aug 28, 2024
1 parent 8e2d42d commit 8d4ce38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wisecondorx/include/CBS.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ for.cbs <- for.cbs[cbs.mask,]

# CBS

if (is.na(seed) || seed == '') {
if (!(is.na(seed) || seed == '')) {
set.seed(seed)
}
CNA.object <- CNA(for.cbs$y, for.cbs$chromosome, for.cbs$x, data.type = "logratio", sampleid = "X")
Expand Down Expand Up @@ -129,4 +129,4 @@ for (row.i in 1:nrow(CNA.object)){
CNA.object$s <- CNA.object$s - 1 # Make python compliant

# Write output
write_json(CNA.object, out.file)
write_json(CNA.object, out.file)

0 comments on commit 8d4ce38

Please sign in to comment.