Hi, i have tried to follow the tutorial to create a reprex, but the uwunifrac seem not to open. can you take a look please. Thanks for your time.
library(qiime2R)
library(tidyverse)
library(datapasta)
library(wrapr)
#>
#> Attaching package: 'wrapr'
#> The following object is masked from 'package:dplyr':
#>
#> coalesce
#> The following objects are masked from 'package:tidyr':
#>
#> pack, unpack
#> The following object is masked from 'package:tibble':
#>
#> view
metadata55<-readr::read_tsv("D:/Qiime222/New_metadata55.tsv")
#> Rows: 21 Columns: 11
#> -- Column specification --------------------------------------------------------
#> Delimiter: "\t"
#> chr (3): SampleID, Treatment, Period
#> dbl (8): pH, Alkalinity_g CaCO3/kg, TAN(g N/kg), TVFAs_g/kg, TS, VS, daily_m...
#>
#> i Use `spec()` to retrieve the full column specification for this data.
#> i Specify the column types or set `show_col_types = FALSE` to quiet this message.
uwunifrac<-read_qza("D:/Qiime222/unweighted_unifrac_pcoa_results.qza")
shannon<-read_qza("D:/Qiime222/shannon_vector.qza")$data %>% rownames_to_column("SampleID")
datapasta::tribble_paste(metadata55)
#> tibble::tribble(
#> ~SampleID, ~Treatment, ~Period, ~pH, ~Alkalinity_g.CaCO3.kg, ~TAN.g.N.kg., ~TVFAs_g.kg, ~TS, ~VS, ~daily_methane_yield_L.k.kgVS, ~cummulative_methane_yeild_L.kgVS,
#> "S1A0-0d", "S1-A0", "0day", 8.42, 9.12, 3.27, 0.38, 17.83, 14.41, 0, 0,
#> "S1A0-30d", "S1-A0", "30days", 8.2, 11.48, 3.39, 0, 14.58, 10.93, 2.57, 190.47,
#> "S3A0-0d", "S3-A0", "0day", 8.65, 9.21, 2.88, 1.01, 17.57, 14.36, 0, 0,
#> "S3A0-30d", "S3-A0", "30days", 8.43, 11.49, 3.15, 0.82, 14.37, 10.86, 3.5, 186.38,
#> "S3A3-0d", "S3-A3", "0day", 8.76, 9.22, 2.78, 0.82, 18.12, 14.91, 0, 0,
#> "S3A3-30d", "S3-A3", "30days", 8.57, 11.22, 3.2, 0.32, 14, 10.48, 4.14, 193,
#> "S3A7-0d", "S3-A7", "0day", 8.72, 9.92, 2.98, 0.57, 18.4, 14.96, 0, 0,
#> "S3A7-30d", "S3-A7", "30days", 8.58, 12.49, 3.46, 0.11, 14.6, 10.99, 2.9, 196.75,
#> "S6A0-0d", "S6A0", "0day", 8.64, 7.97, 2.27, 0.8, 18.21, 14.74, 0, 0,
#> "S6A0-30d", "S6A0", "30days", 8.31, 10.12, 2.67, 0.95, 15.7, 12.03, 3.31, 160.21,
#> "S6A3-0d", "S6-A3", "0day", 8.63, 8.11, 2.18, 1.36, 18.18, 14.57, 0, 0,
#> "S6A3-30d", "S6-A3", "30days", 8.3, 10.32, 2.41, 0.38, 15.38, 11.57, 3.26, 179.49,
#> "S6A7-0d", "S6-A7", "0day", 8.65, 8.31, 2, 0.55, 18, 14.64, 0, 0,
#> "S6A7-30d", "S6-A7", "30days", 8.4, 9.75, 2.4, 0.42, 15.87, 12.38, 2.82, 146.44,
#> "S1A0-ef", "S1A0-ef", "Eff", 8.42, 11.42, 3.69, 0.15, 7.43, 4.29, NA, NA,
#> "S3A0-ef", "S3A0-ef", "Eff", 8.24, 11.82, 4.04, 0.56, 7, 3.98, NA, NA,
#> "S3A3-ef", "S3A3-ef", "Eff", 8.2, 12.28, 3.73, 0.17, 7.12, 4.06, NA, NA,
#> "S3A7-ef", "S3A7-ef", "Eff", 8.2, 12, 3.4, 0.16, 7.5, 4.26, NA, NA,
#> "S6A0-ef", "S6A0-ef", "Eff", 8.21, 10.33, 2.96, 0.32, 7.31, 4.18, NA, NA,
#> "S6A3-ef", "S6A3-ef", "Eff", 8.16, 10.29, 2.97, 0.56, 7.42, 4.24, NA, NA,
#> "S6A7-ef", "S6A7-ef", "Eff", 8.27, 11.32, 3.28, 0.27, 7.3, 4.18, NA, NA
#> )
datapasta::tribble_paste(shannon)
#> tibble::tribble(
#> ~SampleID, ~shannon_entropy,
#> "S1A0-0d", 6.10277331636607,
#> "S1A0-30d", 6.59613138576861,
#> "S1A0-ef", 6.10867894104666,
#> "S3A0-0d", 6.22192294521463,
#> "S3A0-30d", 6.28071927382113,
#> "S3A0-ef", 6.01221409333534,
#> "S3A3-0d", 5.9418718366662,
#> "S3A3-30d", 5.96527875223599,
#> "S3A3-ef", 6.31622270518156,
#> "S3A7-0d", 6.11400491959082,
#> "S3A7-30d", 6.31568415836149,
#> "S3A7-ef", 6.27747243703584,
#> "S6A0-0d", 5.8280489921665,
#> "S6A0-30d", 5.93570953768047,
#> "S6A0-ef", 6.14019272162196,
#> "S6A3-0d", 6.49012232199792,
#> "S6A3-30d", 6.41099932787163,
#> "S6A3-ef", 6.0928169310324,
#> "S6A7-0d", 5.9845666413645,
#> "S6A7-30d", 6.35907882878743,
#> "S6A7-ef", 5.92447790699498
#> )
datapasta::tribble_paste(uwunifrac)
#> Could not format input_table as table. Unexpected class.
Created on 2021-11-19 by the reprex package (v2.0.1)