Wedge-lab / dpclust

Dirichlet Process based methods for subclonal reconstruction of tumours
GNU Affero General Public License v3.0
28 stars 16 forks source link

Commit change in line 138 #24

Closed Avramis closed 1 month ago

Avramis commented 8 months ago

Response to Issue with !is.na #23. Commit change in line 138 in file ./R/SampleMutations.R to return TRUE or FALSE instead of a vector of logical value that can cause the code to break

It would be advisable to look into the rest of the !is.na cases in the code (lines 20, 84, )

christopherwirth commented 1 month ago

Thanks Avraam. This is a smart fix as it returns NA if either:

Otherwise (i.e. clustering_result$all.assignment.likelihoods can be any length as long as at least one element is NOT NA), it continues into the conditional code.