From d49125e6ae4a27241043d9304dde7d1b93a698f1 Mon Sep 17 00:00:00 2001 From: Aura Raulo <77113596+nuorenarra@users.noreply.github.com> Date: Sat, 5 Oct 2024 18:47:07 +0100 Subject: [PATCH] Update import.qmd Suggested minor edits to the text, no code chunks changed --- inst/pages/import.qmd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inst/pages/import.qmd b/inst/pages/import.qmd index ee19c186..6d8820d6 100644 --- a/inst/pages/import.qmd +++ b/inst/pages/import.qmd @@ -58,7 +58,7 @@ tree_file_path <- system.file( ``` Now we can read in the biom file and convert it into a `TreeSE` object. In -addition, we retrieve the rank names from the prefixes of the feature names +addition, we retrieve the rank names from the prefixes of the taxa names and then remove them with the `rank.from.prefix` and `prefix.rm` optional arguments. @@ -108,7 +108,8 @@ sample_meta <- read.csv( sample_meta_file_path, sep = ",", row.names = 1) # Add this sample data to colData of the taxonomic data object -# Note that the data must be given in a DataFrame format +# Note that the samples in the sample data must be in the same order as +in the original biom file and that data must be given in a DataFrame format colData(tse) <- DataFrame(sample_meta) ```