flattenChow: Convert the output from superNOVA chowCor to an annotated...

View source: R/flattenChow.R

flattenChowR Documentation

Convert the output from superNOVA chowCor to an annotated edgelist, suitable for writing out to a .tsv file.

Description

Takes in results from chowCor as a list of 2d matrices and converts it into a single data.frame, where the first two columns are an edgelist of all pairs compared.

Usage

flattenChow(chow_result, adjust_q = T, sort_output = T)

Arguments

chow_result

A list of matrices as output by chowCor. Required

adjust_q

Should the q-values be calculated? Otherwise, qValDiff will be the same as pValDiff

sort_output

Should the final output be sorted from smallest to largest p-values?

Value

Returns a data.frame, sorted by superNOVA p-value, where each row is a feature pair, with columns "Gene1","Gene2","groupCor","groupCorPval","globalCor","globalCorP","pValDiff","Classes".


ryananeff/superNOVA documentation built on March 29, 2024, 5:31 p.m.