Generated: {{ timestamp }} UTC | Tool v{{ version }} | {{ n_samples }} samples
{% if anonymized %}โ ๏ธ Sample IDs have been anonymized.
{% endif %}Flagged samples ({{ qc_flagged_samples | length }}):
| Sample | Library Outlier | Dominant Gene | Dom. Gene % | Zero Count % | Mahal. Outlier |
|---|---|---|---|---|---|
{{ row.sample_id }} |
{{ 'โ ๏ธ' if row.lib_outlier_flag else 'โ' }} | {{ row.dominant_gene }} | {{ row.dominant_gene_pct | round(1) }}% | {{ row.zero_count_pct | round(1) }}% | {{ 'โ ๏ธ' if row.mahal_outlier_flag else 'โ' }} |
โ No samples flagged for QC issues.
{% endif %}| Parameter | Value |
|---|---|
| Samples analyzed | {{ n_samples }} |
| Genes in input | {{ n_genes_input }} |
| Genes analyzed (after filtering) | {{ n_genes_analyzed }} |
| Normalization | {{ normalization_method }} |
| n_variable_genes | {{ n_variable_genes }} |
| n_pcs | {{ n_pcs }} |
| min_cpm | {{ min_cpm }} |
| Covariates tested | {{ covariates_tested | join(', ') }} |
| Covariates skipped | {{ covariates_skipped | join(', ') }} |
| Conditioned on | {{ condition_on | join(', ') }} |
ICC values are computed using a one-way random effects model [ICC(1,1)]. This model treats batch labels as randomly sampled from a population of batches. If your batches are fixed (specific dates, specific laboratories), ICC values may slightly underestimate batch effect magnitude.
{% if plots.icc_barplot %}| Covariate | Label | Groups | Median ICC | IQR | 95% CI | Tier | % Genes โฅ Moderate |
|---|---|---|---|---|---|---|---|
| {{ row.covariate }} | {{ row.label }} | {{ row.n_groups }} | {% if low_power %}โ ๏ธ{% endif %} {{ row.median_icc | round(3) }} | {{ row.iqr_lower | round(3) }} โ {{ row.iqr_upper | round(3) }} | {{ row.ci_lower_95 | round(3) }} โ {{ row.ci_upper_95 | round(3) }} | {{ row.icc_tier }} | {{ (row.prop_genes_moderate_plus * 100) | round(1) }}% |
No ICC data computed (no categorical covariates with sufficient samples).
{% endif %}Interpretation (Koo & Mae, 2016): <0.10 negligible | 0.10โ0.30 mild | 0.30โ0.60 moderate | >0.60 strong
These are the genes most strongly associated with {{ cov_name }}. If these are housekeeping genes (GAPDH, ACTB, RPL*, RPS*), the batch effect may primarily affect highly-expressed genes.
| Gene | ICC | Mean Expr (log CPM) | Expression Rank | Housekeeping |
|---|---|---|---|---|
{{ row.gene_id }} |
{{ row.gene_icc | round(3) }} | {{ row.mean_expression_log_cpm | round(2) }} | {{ row.expression_rank_by_mean }} | {{ 'โ' if row.is_housekeeping else '' }} |
Note: FDR correction is applied within each covariate independently. With {{ n_covariates_tested }} covariates tested, the probability of at least one false positive increases. Interpret borderline results (q=0.03โ0.10) in context of effect sizes (ICC, ฮทยฒ). {% if condition_on %} Results condition on: {{ condition_on | join(', ') }}. {% endif %}
{% if assoc_table_rows %}| Covariate | Type | PC | PC Var% | Effect Size | Type | p-value | q-value (BH) | Significant q<0.05 | 95% CI |
|---|---|---|---|---|---|---|---|---|---|
| {{ row.covariate }} | {{ row.covariate_type }} | PC{{ row.pc }} | {{ (row.pc_variance_explained * 100) | round(1) }}% | {% if low_power %}โ ๏ธ{% endif %} {{ row.effect_size | round(3) if row.effect_size is not none else 'โ' }} | {{ row.effect_size_type }} | {{ row.pval_raw | round(4) if row.pval_raw is not none else 'โ' }} | {{ row.pval_adjusted_bh | round(4) if row.pval_adjusted_bh is not none else 'โ' }} | {{ 'โ' if row.significant_q05 else '' }} | {{ '[' + (row.ci_lower|round(3)|string) + ', ' + (row.ci_upper|round(3)|string) + ']' if row.ci_lower is not none else 'โ' }} |
No association results computed.
{% endif %}{{ key.replace('_', ' ') }}
{{ outlier_rows | length }} sample(s) flagged as potential outliers:
| Sample | Detection Method | Mahalanobis Distance | {% for col in outlier_meta_cols %}{{ col }} | {% endfor %}
|---|---|---|---|
{{ row.sample_id }} |
{{ row.detection_method }} | {{ row.mahal_distance | round(2) if row.mahal_distance == row.mahal_distance else 'โ' }} | {% for col in outlier_meta_cols %}{{ row[col] if col in row else 'โ' }} | {% endfor %}
โ No outlier samples detected.
{% endif %}