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

Error in elementLengths(clist) : could not find function "elementLengths" #12

Closed gevro closed 2 years ago

gevro commented 3 years ago

Note that the call to elementLengths in the function getAltAllele of the dpclust3p pipeline returns this error with newer versions of R and the S4Vectors package.

Error in elementLengths(clist) : could not find function "elementLengths"

This is because elementLengths has been deprecated: https://support.bioconductor.org/p/110110/

I think the workaround is to add this line to the dpclust3p preprocessing script: elementLengths=elementNROWS

davidwedge commented 2 years ago

Thanks for pointing this out @gevro. This issue has now been fixed in dpclust3p by replacing the deprecated function elementLengths with elementNROWS.