Closed shraddhapai closed 4 years ago
Just updated this code. Minor test, hopefully fine. Close this comment after we've tested it.
writeProfiles=FALSE results in use of Pearson correlation metric with na.omit(). However, writeProfiles=TRUE calls Pearson corr via ProfileToNetworkDriver which does NOT have na.omit(). behaviour of the two should be consistent. Maybe add a removeNA flag which is set to FALSE by default so that Pearson corr isn't quietly removing NAs.
If custom function is provided and writeProfiles=TRUE, throw error. Message should specify when to use each and not to use both together.