Hello,
Just created my physeq file following the tutorial (Tutorial: Integrating QIIME2 and R for data visualization and analysis using qiime2R)
I'm getting the following error: when running the following command.
Code:
library(tidyverse)
library(qiime2R)
metadata<-read_q2metadata("metadata_16S.tsv")
shannon<-read_qza("shannon_vector.qza")
shannon<-shannon$data %>% rownames_to_column("sample-id") # this moves the sample names to a new column that matches the metadata and allows them to be merged
metadata<-metadata %>% left_join(shannon)
head(metadata)
Error:
metadata<-metadata %>% left_join(shannon)
Error:by
must be supplied whenx
andy
have no common variables.
i use by = character()to perform a cross-join. Run
rlang::last_error()to see where the error occurred. rlang::last_error() <error/rlang_error>
bymust be supplied when
xand
yhave no common variables. i use by = character()
to perform a cross-join.
Backtrace:
- dplyr::left_join(., shannon)
- dplyr:::join_mutate(...)
- dplyr:::join_cols(...)
- dplyr:::standardise_join_by(by, x_names = x_names, y_names = y_names)
Runrlang::last_trace()
to see the full context.
rlang::last_trace()
<error/rlang_error>
by
must be supplied whenx
andy
have no common variables.
i use by = character()` to perform a cross-join.
Backtrace:
x
- -metadata %>% left_join(shannon)
- +-base::withVisible(eval(quote(
_fseq
(_lhs
)), env, env)) - -base::eval(quote(
_fseq
(_lhs
)), env, env) -
\-base::eval(quote(`_fseq`(`_lhs`)), env, env)
-
\-`_fseq`(`_lhs`)
-
\-magrittr::freduce(value, `_function_list`)
-
+-base::withVisible(function_list[[k]](value))
-
\-function_list[[k]](value)
-
+-dplyr::left_join(., shannon)
-
\-dplyr:::left_join.data.frame(., shannon)
-
\-dplyr:::join_mutate(...)
-
\-dplyr:::join_cols(...)
-
\-dplyr:::standardise_join_by(by, x_names = x_names, y_names = y_names)
Anybody has any idea of what could be going on here? Metadata file is attached.
Thanks,
Leo