Description Usage Arguments Value Examples
This function is used to construct a binary adjacency matrix of drug similarity where 1 means strong similarity and 0 means weak similarity.
1 | drsim(r.mat, p.mat, top = 0.005, r.thres = 0.7, p.thres = 0.01)
|
r.mat |
The input matrix of drug correlations. |
p.mat |
The input matrix of probability values(p-value) of drug correlations. |
top |
A value to measure drug similarity. It's a threshold of correlation, top=0.005(default) means that top 0.005 of drugs for each row are considered as strong similarity. |
r.thres |
A value to measure drug similarity. It's a threshold of correlation, r.thres=0.7(default) means that the similarity between drugs are strong when r greater than 0.7. |
p.thres |
A value to measure the significance level of drug similarity. It's a threshold of probability values, p.thres=0.01(default) means that the similarity between drugs are significant when p less than 0.01. |
A binary adjacency matrix of drug similarity.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.