smorabit / hdWGCNA

High dimensional weighted gene co-expression network analysis
https://smorabit.github.io/hdWGCNA/
Other
316 stars 31 forks source link

Add corSparse Internally (qlcMatrix archived from CRAN) #202

Closed samuel-marsh closed 3 months ago

samuel-marsh commented 4 months ago

Hi Sam/Swarup Lab,

Quick PR here to overcome recent archiving of qlcMatrix package from CRAN. Given that the package hasn't been updated in 5+ years and has been archived for 1.5 months it appears to be abandoned. This prevents hdWGCNA installation as it's listed in Imports. This can be solved by installing from source from CRAN archive but that's not obvious solution for many.

This recently came up as issue for Signac package (https://github.com/stuart-lab/signac/issues/1570) and they decided to simply implement function internally (https://github.com/stuart-lab/signac/commit/ba9cf7eae3ffc1285e912926ec953e6e01963736) with reference to original stackoverflow post and qlcMatrix package (which did not have any license listed).

This PR simply implements the function the same as Signac did (and now also references Signac's implementation.

Best, Sam