Giter Site home page Giter Site logo

Z1 <= Z2 ? about c3co HOT 6 OPEN

pneuvial avatar pneuvial commented on August 25, 2024
Z1 <= Z2 ?

from c3co.

Comments (6)

mpierrejean avatar mpierrejean commented on August 25, 2024

This doesn't happen for the simulations but does on real data experiments (probably due to the trick to estimate DoH and then minor and major CNs).
We may put a "warning" at the beginning of the algorithm to warn user that some estimates of Z1 are greater than Z2.

from c3co.

pneuvial avatar pneuvial commented on August 25, 2024

Would you mind commenting on what you did to address this issue, and link to a specific commit?

from c3co.

mpierrejean avatar mpierrejean commented on August 25, 2024

Modification of get.Z.
Remove

Z1 <- sapply(idx, function(ii){
      jj <- which(Z1[,ii]>Z2[,ii])
      Z1[jj, ii] <- Z2[jj, ii]
       return(Z1[,ii])
    })

minor CN > major CN cannot happen if estimates are correctly done.

from c3co.

pneuvial avatar pneuvial commented on August 25, 2024

If it cannot happen, then you should add a sanity check that it doesn't, using e.g. stopifnot().
If it may happen in weird case, then you should at least add a warning.

It would also be nice to have a test about this, but I'm not sure how to do that.

from c3co.

mpierrejean avatar mpierrejean commented on August 25, 2024

Add a warning when Z1 is larger than Z2.
5e91d7d

from c3co.

mpierrejean avatar mpierrejean commented on August 25, 2024

In most of cases Z1 is larger than Z2 when the optimal number of archetype is reached.
An example is given below, after p>=4 :

set.seed(147)
len <- 500*10
nbClones <- 3
bkps <- list(c(100,250)*10, c(150,400)*10,c(150,400)*10)
regions <- list(c("(1,2)", "(0,2)", "(1,2)"),
  c("(1,1)", "(0,1)", "(1,1)"), c("(0,2)", "(0,1)", "(1,1)"))
dataAnnotTP <- acnr::loadCnRegionData(dataSet="GSE13372_HCC1143", tumorFraction=1)
dataAnnotN <- acnr::loadCnRegionData(dataSet="GSE13372_HCC1143", tumorFraction=0)
datSubClone <- buildSubclones(len, dataAnnotTP, dataAnnotN, nbClones, bkps, regions)
W = rSparseWeightMatrix(15, 3, 0.7)
datList <- mixSubclones(subClones=datSubClone, W)
l1 <- seq(from=1e-8, to=1e-5, length.out=10)
nb.arch <- 2:6
parameters.grid <- list(lambda1=l1, nb.arch=nb.arch) 
res <- c3co(datList, parameters.grid, verbose=FALSE)

from c3co.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.