cor_pairs_above() pulls the entries of a correlation matrix whose absolute
value exceeds a threshold, without expanding the matrix into a long table.
Value
A tibble with Protein1, Protein2 and Correlation, sorted by
correlation in decreasing order. Each pair appears in both directions, as it
does in the correlation matrix itself.
Details
Reshaping the matrix to long format allocates one row per entry. At 10,000 features that is 100 million rows across three columns, which exhausts memory before any filtering happens. Scanning blocks of columns and keeping only the entries above the threshold makes the cost proportional to the number of reported pairs instead.
