discover_reference_concordance
Ask whether a reference-gene stability ranking holds across conditions, and which candidate genes rank well everywhere rather than in one tissue or treatment. Each condition (the Group column of a long-format Cq table) is ranked by geNorm on its own samples; the conditions are then the blocks of a Friedman test and Kendall's W says how far they agree (0 independent orders, 1 the same order everywhere), with an asymptotic χ² p and a Monte Carlo p from shuffling each condition's ranks. Returns every gene's rank in every condition, its mean rank (the meta-ranking) and its best and worst. geNorm cannot order its two most stable genes, so they share rank 1.5 in every condition. Use rank_reference_genes for one condition's ranking by all four algorithms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | seed for the shuffles. Each permutation draws from its own stream, so one can be re-run alone. Advanced. | |
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. | |
| cq_table | Yes | the long-format table `Target,Sample,Group,Cq`, one row per measurement; Group is the condition each sample was measured in, and every gene must be measured in every sample. | |
| permutations | No | shuffles of the ranks within each condition. The smallest p is 1 / (permutations + 1). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p | Yes | Monte Carlo p of W against within-condition shuffles | |
| w | Yes | Kendall's coefficient of concordance across conditions | |
| genes | Yes | every gene, most stable on average first: its rank in each condition, mean rank, best and worst | |
| result | Yes | the full result | |
| nullModel | Yes | the null, stated with every run | |
| conditions | Yes | each condition's geNorm order with M |