-
Notifications
You must be signed in to change notification settings - Fork 16
Data Analysis Modules: panoply_blacksheep
This module utilizes the BlackSheep algorithm for differential extreme value analysis of -omic data (Blumenberg et al., 2019, preprint) to identify both positive and negative outliers in the data and subsequently perform enrichment analysis across all groups of interest, if a groups_file
is provided. Outlier count and analysis can optionally be filtered by either a user-supplied list of gene symbols or a list of kinases included in the module.
Using the blacksheepr package, outliers are first identified within each feature (row) as those values more than 1.5 * IQR above (for positive outliers) or below (for negative outliers) the median across the feature. The workflow stops here if no groups_file
is provided. If a groups_file
is provided, features are aggregated into their parent gene symbol, and both the number and fraction of features that are outliers in each gene are tabulated for each sample. Enrichment analysis using Fisher's Exact Test is then performed to identify genes enriched for outliers within each annotation group provided in the groups_file
. To avoid one or a small number of strong samples driving the enrichment analysis, genes are filtered out if their fraction of samples containing outliers in a given group is below a minimum value (default = 0.3). Finally, heatmaps visualizing the fraction of outliers within each significantly enriched gene are produced.
Note: This module currently does not work on groups_file
annotations that contain NA or empty data values.
Required inputs:
-
input_gct
: (.gct
file) normalized data table in the form of a GCT. -
master_yaml
: (.yaml
file) master parameters file -
output_prefix
: (String) prefix for naming the output tar file
Optional inputs:
-
apply_filtering
: (Boolean, default = FALSE) flag for filtering the data table. If FALSE, no filtering will occur and outlier results for all gene symbols will be output. If TRUE, data table will be filtered according toidentifiers_file
. -
identifiers_file
: (.txt
file, default = NULL) used in combination withapply_filtering
= TRUE, this is an option to supply a list of gene symbols for filtering the data table. If no file is provided, a list of kinases included in the module will be used for filtering. If a text file is supplied, it will be used for filtering. Gene symbols should be separated by new lines in the user-provided text file. -
groups_file
: (.csv
file, default = NULL) subset of sample annotations to be used for calculating enrichment of outliers in these groups. If no groups file is provided, enrichment analysis will not be performed and only outlier counts will be output. -
fraction_samples_cutoff
: (Float, default = 0.3) value for minimum fraction of samples containing outliers in a given group. -
fdr_value
: (Float, default = 0.05) FDR value cutoff to be considered significant
-
tar_out
: An output tar file that contains the outlier analysis results in a directory called "blacksheep." Subdirectories with the results for "positive" and "negative" outlier analysis include:- Outlier count table (
*_outliers_table.csv
): result of initial outlier calculation at the input feature level. Binary table indicating whether or not a given sample contains an outlier for a particular feature; 0 = not outlier, 1 = outlier. Note: This is the only output if nogroups_file
is provided. - Aggregated outlier count table (
aggregated_*_outliers_table.csv
): outlier count table collapsed to the gene level. Indicates number of outlier features that correspond to a particular gene symbol for a given sample. - Fraction of outliers table (
fraction_*_outliers_per_feature.csv
): ratio of features that are outliers to total features for a given gene symbol in a given sample; table of the fraction of features corresponding to a given gene symbol that are outliers. - Groups-File Specific Results:
- Outlier analysis results (
outlieranalysis_for_*.csv
): results from Fisher's Exact Test for every comparison group given by the groups file. Table includes gene symbols, p-values, fdr values, and breakdown of numbers in the contigency table (ie in-group, out-group, outliers, not outliers). - Heatmaps depicting the fraction of outlier features in significantly (fdr <
fdr_value
) enriched genes, saved as both pdf and png files (*.pdf
and*.png
) - Analysis Log (
outlier_analysis_log.csv
): Log of all attempted comparisons; lists the outlier directionality (pos_neg
), the comparison annotation-of-interest (annotation
), the ingroup used for a binary comparison (ingroup
), the filename prefix associated with that comparison (binary_annotation
), and whether the comparison produced figures (has_heatmap
). Used in the report module to retrieve results files by name.
- Outlier analysis results (
- List of genes significantly (fdr <
fdr_value
) enriched in each comparison group, corresponding to rownames of heatmaps (significant_genes_*.txt)
- Outlier count table (
- Home
- PANOPLY Tutorial
- Data Preparation Modules
-
Data Analysis Modules
- panoply_association
- panoply_blacksheep
- panoply_clumps_ptm_diffexp
- panoply_clumps_ptm
- panoply_clumps_ptm_postprocess
- panoply_cmap_analysis
- panoply_cna_correlation
- panoply_cons_clust
- panoply_immune_analysis
- panoply_metaboanalyst
- panoply_mimp
- panoply_nmf
- panoply_nmf_postprocess
- panoply_omicsev
- panoply_quilts
- panoply_rna_protein_correlation
- panoply_sankey
- panoply_ssgsea
-
Report Modules
- panoply_association_report
- panoply_blacksheep_report
- panoply_clumps_ptm_report
- panoply_cna_correlation_report
- panoply_cons_clust_report
- panoply_immune_analysis_report
- panoply_metaboanalyst_report
- panoply_mimp_report
- panoply_nmf_report
- panoply_normalize_ms_data_report
- panoply_rna_protein_correlation_report
- panoply_sampleqc_report
- panoply_sankey_report
- panoply_ssgsea_report
- Support Modules
- Navigating Results
- PANOPLY without Terra
- Customizing PANOPLY
-
Workflows
- panoply_association_workflow
- panoply_blacksheep_workflow
- panoply_clumps_ptm_workflow
- panoply_immune_analysis_workflow
- panoply_metaboanalyst_workflow
- panoply_nmf_workflow
- panoply_nmf_internal_workflow
- panoply_normalize_filter_workflow
- panoply_process_SM_table
- panoply_sankey_workflow
- panoply_ssgsea_workflow
- Pipelines