Hi Yan,
Thanks for the insightful comment.
Unfortunately the way it was designed the fitting, it allows to set the priors only for the copy number state, and it’s used at the segments level;
you can define a very simple histogram like data.frame to weighting the integer copy number solution (this greatly helps balancing the solution toward diploids rather then overfit aneuploidy solutions)
in sequenza.fit (the main function, but it’s the same in baf.fit) you could set something like
priors.table = data.frame(CN = (1, 2, 3), value = (1, 3, 2))
to set a priors for specific copy numbers (this would results in the priors on the CNt for each segments 1 = 1/6, 2 = 3/6, 3 = 2/6)
I’m in the process (a very slow process) of changing some of sequenza behaviour, but I haven’t thought of changing the fitting, as is doing an overall OK job (provide the data is fine).
However I’m open to suggestions, maybe I can add an optional refitting method to run between the first fit and the results step.
Could you share some of the code you are using the IQRs to refine the solution?
Maybe if I see the cellularity ploidy matrix you are talking about (is is the same as the results of sequenza.fit?) I can have a better idea of a possible implementation.
Best
Francesco
> --
> You received this message because you are subscribed to the Google Groups "Sequenza User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sequenza-user-g...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sequenza-user-group/35e42a7a-0bc5-42af-ade0-12b8af7f090dn%40googlegroups.com.