GlowwormSubpopulation: Generate ranked Glowworm scores for specific subpopulation/s

View source: R/GlowwormSubpopulation.R

GlowwormSubpopulationR Documentation

Generate ranked Glowworm scores for specific subpopulation/s

Description

Generate ranked Glowworm scores for specific subpopulation/s

Usage

GlowwormSubpopulation(GlowwormScaleOutput, TargetPopulations)

Arguments

GlowwormScaleOutput

Output from GlowwormScale

TargetPopulations

A vector of populations for ranking

Value

This function takes the output from GlowwormGlobal and generates a rank score specific for the population/s of interest

Exports a list containing:

  • MetaData - A copy of the metadata

  • GlowwormScaleOutput - A scaled data frame of n genes by n populations in metadata

  • SumStats - A data frame containing Total enrichment score (Abundance), SD enrichment score (Specificity) and the population specific rank score.



Output list can be used to generate a stacked bar plot via GlowwormOutputStacked.


Hannahglover/Glowworm documentation built on Jan. 16, 2024, 11:47 p.m.