Skip to content

Commit eb28794

Browse files
committed
update docs
1 parent 63e4f06 commit eb28794

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

bin/compare_performance.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ get_stats_abundance <- function(expected_abund,observed_abund,df,sample) {
123123
"jensen-shannon"
124124
)
125125
values <- c(
126-
as.list(pearson_cor$estimate)[[1]], # Spearman's Rank Correlation (rho)
126+
as.list(pearson_cor$estimate)[[1]], # Pearson's Correlation (cor)
127127
as.list(spearman_rho$estimate)[[1]], # Spearman's Rank Correlation (rho)
128128
median(percent_dev, na.rm = TRUE), # Median Percent Abundance Deviation
129129
mean(abs(observed_abund - expected_abund), na.rm = TRUE), # Mean Absolute Error (MAE)

docs/output.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,8 @@ When expected sequences are supplied, the following files will be produced:
679679

680680
</details>
681681

682-
When additionally expected abundances are available, additional performance metrics will be generated:
682+
When additionally expected abundances are available, additional performance metrics will be generated.
683+
Metrics base on presence/absence:
683684

684685
- `observed`: Number of observed sequences
685686
- `expected`: Number of expected sequences
@@ -696,6 +697,18 @@ When additionally expected abundances are available, additional performance metr
696697
- `FNs_exp`: FN IDs (max 100) corresponding to expected sequences
697698
- `FPs_obs`: FP IDs (max 100) corresponding to observed sequences
698699

700+
Metrics based on abundances:
701+
702+
- `pearson_cor`: Pearson's Correlation (cor)
703+
- `spearman_rho`: Spearman's Rank Correlation (rho)
704+
- `deviation`: Median Percent Abundance Deviation
705+
- `mae`: Mean Absolute Error (MAE)
706+
- `rmse`: Root Mean Square Error (RMSE)
707+
- `ps`: Proportional Similarity (PS)
708+
- `bray-curtis`: Bray-Curtis Dissimilarity
709+
- `hellinger`: Hellinger Distance
710+
- `jensen-shannon`: Jensen-Shannon Divergence
711+
699712
> [!NOTE]
700713
> The F1 score is unreliable with strongly unbalanced data.
701714
@@ -709,11 +722,15 @@ The following additional files will be produced:
709722

710723
- `comparison/<parameter md5sum>_<pipeline version>`
711724
- `performance_summary.tsv`: Tab-separated table with aggregated performance metrics.
725+
- `performance_per-sample.tsv`: Tab-separated table with performance metrics per sample, in long format.
712726
- `performance.log`: Log file, complementary to `nucleotide-differences.log`.
713727
- `performance_boxplot.png`: Boxplot of number of aggregated performance metrics in png format.
714728
- `performance_boxplot.svg`: Boxplot of number of aggregated performance metrics in svg format.
715729
- `comparison/<parameter md5sum>_<pipeline version>/per-sample`
716-
- `performance_per-sample.tsv`: Tab-separated table with performance metrics per sample, in long format.
730+
- `<sample>_abundance_barplot.svg`: Side-by-Side bar plots in svg format.
731+
- `<sample>_abundances.tsv`: Tab-separated table with expected and observed abundances.
732+
- `<sample>_rank_abundance_curve.svg`: Rank Abundance Curves in svg format.
733+
- `<sample>_scatter_loglog.svg`: Scatter plot: Observed vs. Expected Abundance (log-log) in svg format.
717734

718735
</details>
719736

0 commit comments

Comments
 (0)