Closed tinyheero closed 10 months ago
Thanks @tinyheero ! That makes sense. I think I'll rename exon.lrs though, as it is technically not correct anymore. Maybe interval.lrs?
Thanks @lima1 for the feedback.
Yeah I agree, interval.lrs
is a much more sensible name given the context. I only renamed the output element name rather than the variable name across the codebase to keep the changes minimally. Unless you think the variable name should be changed across the entire function too?
For now we can keep it minimal. I'll start the merging now. Thanks a lot! Let me know if you find some patterns and have ideas of reducing the impact of artifactual segments.
The current implementation of .optimizeGridPurity():
Returns the total copy number likelihood of a given purity (
p
) and ploidy (D
) value. The individual segment maximum likelihood values are not available.This PR adds the
exon.lrs
to theinput
element of the list that is returned from therunAbsoluteCN
function call.Having the values of this variable available means one can run the
.calcLlikSegmentExonLrs()
function easily. This is helpful for deep diving to understand what segments are driving a higher copy number likelihood for particular purity/ploidy solutions.