Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cov/cor中有遗漏值 #26

Open
fervit361 opened this issue Aug 2, 2024 · 1 comment
Open

cov/cor中有遗漏值 #26

fervit361 opened this issue Aug 2, 2024 · 1 comment

Comments

@fervit361
Copy link

想请问一下大家,一开始我的环境数据有缺失,默认参数时
mantel_test() using 'euclidean' dist method for 'spec'.
mantel_test() using 'euclidean' dist method for 'env'.
我尝试着设置spec_dist = "bray", env_dist = "euclidean",这时候报错
Error in purrr::pmap():
ℹ In index: 1.
Caused by error in cor():
! cov/cor中有遗漏值
Run rlang::last_trace() to see where the error occurred.
Warning messages:
1: In .FUN(.data, ...) : you have empty rows: their dissimilarities may be
meaningless in method “bray”
2: In .FUN(.data, ...) : missing values in results
我的丰度数据是没有任何缺失值的。我把环境数据里的缺失值填补了,却还是不能实现丰度数据采用'bray',环境数据采用'euclidean',这是为什么呢

@Hy4m
Copy link
Owner

Hy4m commented Aug 3, 2024

说明spec的分组中间,至少有一个组存在行和为零的情况,这时候没办法用bray距离,这也是为什么自动挑选欧几里得算法的原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants