Correlation_perturbation: Calculating the relationships between different...

View source: R/MUSIC.r

Correlation_perturbationR Documentation

Calculating the relationships between different perturbations.

Usage

Correlation_perturbation(distri_diff, cutoff = 0.9, gene = "all", plot = FALSE, plot_path = "./correlation_network.pdf", output = FALSE, file_path = "./correlation_perturbation.txt")

Arguments

distri_diff

A dataframe . This dataframe can be obtained by the function "Get_distri_diff()" in this package.

cutoff

The cutoff of correlation which will be used to plot the network graph. The default is 0.9.

gene

A character or vector. The perturbation choosed to plot the network graph. The default is "all" which means plot all perturbations.

plot

FALSE by default. If it is TRUE, then plot the network graph based on the perturbation correlation.

plot_path

The save path of the graph you plot. It works only when the parameter "plot" is TRUE.

output

FALSE by default. If it is TRUE, then the result will be outputted to a file.

file_path

The save path of the result. It works only when the parameter "output" is TRUE.

Value

A dataframe showing the perturbation correlation.

Author(s)

Bin Duan


bm2-lab/MASCOT documentation built on April 19, 2024, 4:35 p.m.