Hello developer, I have tested ulrb software on a dataframe extracted from a phyloseq object:
This is the code I run:
ant_ps <- read_rds("antartic_ps.RDS")
ant_mod <- ant_ps %>%
psmelt()
ant_mod$Sample <- as.factor(ant_mod$Sample)
ant_abs <- ant_mod %>%
dplyr::select(OTU, Abundance, Sample)
res <- ulrb::define_rb(ant_abs, samples_col = "Sample", abundance_col = "Abundance")
# 3794 out of 18451 observations with silhouette scores lower than 0.5
length(which(res$Silhouette_scores < 0.5))
and this is the Warning message I got:
If half the observations within a classification are below 0.5 Silhouette score, we consider that the clustering was 'Bad'.
Check 'Evaluation' collumn for more details.
Warning message:
In ulrb::define_rb(ant_abs, samples_col = "Sample", abundance_col = "Abundance") :
53 samples got a bad Silhouette score. Consider changing the number of classifications.
In context, I have 49 samples in my dataset, so , why the warning message is telling me 53 samples got bad classifications? I even considered transforming the Sample variable into a factor but still getting the same warning. Then I thought the program was counting the number of observations with silhouette scores lower than 0.5 expecting there were 52 observations with bad classifications but this is not the case as I see it with the length(which(res$Silhouette_scores < 0.5)) code. So why is the define_rb() command reporting 53 samples?.
bests,
Valentín.
Hello developer, I have tested ulrb software on a dataframe extracted from a phyloseq object:
This is the code I run:
and this is the Warning message I got:
In context, I have 49 samples in my dataset, so , why the warning message is telling me 53 samples got bad classifications? I even considered transforming the Sample variable into a factor but still getting the same warning. Then I thought the program was counting the number of observations with silhouette scores lower than 0.5 expecting there were 52 observations with bad classifications but this is not the case as I see it with the
length(which(res$Silhouette_scores < 0.5))code. So why is thedefine_rb()command reporting 53 samples?.bests,
Valentín.