Thank you for your reply.
As you mentioned, I am aware that ANCOM-BC is accessible as a Qiime 2 plugin. However, I keep encountering 'return code 1 errors', and I would like to resolve this issue.
Instead of using my data, I want to verify the functionality of ANCOM-BC using the tutorial available on GitHub.
Below is the output when I executed the commands you provided. (The sections in Korean indicate parts that could not be loaded or warning messages.) I am determined to resolve this issue.
Thank you very much for your assistance.
Stevehun
Last login: Fri Jul 12 08:57:35 on ttys000
(base) byunghunso@BYUNGHUNui-iMac ~ % conda activate qiime2-amplicon-2024.5
cd ./pilot_microbiome/2024_07_08_1/ancom-bc-tutorial
(qiime2-amplicon-2024.5) byunghunso@BYUNGHUNui-iMac ancom-bc-tutorial % qiime composition ancombc \
--i-table table.qza \
--m-metadata-file metadata.txt \
--p-formula "labels" \
--o-differentials differentials.qza \
--verbose
/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/q2_composition/_ancombc.py:77: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
term_alpha_value = (metadata.get_column(term)
Running external command line application(s). This may print messages to stdout and/or stderr.
The command(s) being run are below. These commands cannot be manually re-run as they will depend on temporary files that no longer exist.
Command: run_ancombc.R --inp_abundances_path /var/folders/q4/zlsnmdd940n1f8xjb67_glyr0000gn/T/tmphmseqm_c/input.biom.tsv --inp_metadata_path /var/folders/q4/zlsnmdd940n1f8xjb67_glyr0000gn/T/tmphmseqm_c/input.map.txt --md_column_types {"labels": "numeric", "effect_size": "numeric", "microbe_total": "numeric", "class_logits": "numeric", "intercept": "numeric", "groups": "categorical"} --formula labels --p_adj_method holm --prv_cut 0.1 --lib_cut 0 --reference_levels ['labels::-1.0'] --tol 1e-05 --max_iter 100 --conserve False --alpha 0.05 --output_loaf /var/folders/q4/zlsnmdd940n1f8xjb67_glyr0000gn/T/q2-DataLoafPackageDirFmt-ml05k8h6
R version 4.3.3 (2024-02-29)
κ²½κ³ λ©μμ§(λ€):
κ°μ νλ³νμ μν΄ μμ±λ NA μ
λλ€
κ²½κ³ λ©μμ§(λ€):
κ°μ νλ³νμ μν΄ μμ±λ NA μ
λλ€
κ²½κ³ λ©μμ§(λ€):
κ°μ νλ³νμ μν΄ μμ±λ NA μ
λλ€
κ²½κ³ λ©μμ§(λ€):
κ°μ νλ³νμ μν΄ μμ±λ NA μ
λλ€
κ²½κ³ λ©μμ§(λ€):
κ°μ νλ³νμ μν΄ μμ±λ NA μ
λλ€
ββ Attaching core tidyverse packages ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ tidyverse 2.0.0 ββ
β dplyr 1.1.4 β readr 2.1.5
β forcats 1.0.0 β stringr 1.5.1
β ggplot2 3.5.1 β tibble 3.2.1
β lubridate 1.9.3 β tidyr 1.3.1
β purrr 1.0.2
ββ Conflicts ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ tidyverse_conflicts() ββ
β dplyr::filter() masks stats::filter()
β dplyr::lag() masks stats::lag()
βΉ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
μλ¬: package or namespace load failed for βANCOMBCβ in dyn.load(file, DLLpath = DLLpath, ...):
곡μ λ κ°μ²΄ '/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/R/library/gsl/libs/gsl.dylib'λ₯Ό λ‘λ ν μ μμ΅λλ€:
dlopen(/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/R/library/gsl/libs/gsl.dylib, 0x0006): Library not loaded: @rpath/libgsl.25.dylib
Referenced from: <C3351F44-B1DF-318E-888E-BD7440442A0D> /Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/R/library/gsl/libs/gsl.dylib
Reason: tried: '/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/R/library/gsl/libs/../../../lib/libgsl.25.dylib' (no such file), '/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/R/library/gsl/libs/../../../../libgsl.25.dylib' (no such file), '/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/R/library/gsl/libs/../../../lib/libgsl.25.dylib' (no such file), '/Users/byunghunso/opt/miniconda3/e
μ€νμ΄ μ μ§λμμ΅λλ€
Traceback (most recent call last):
File "/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/q2_composition/_ancombc.py", line 255, in _ancombc
run_commands([cmd])
File "/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/q2_composition/_ancombc.py", line 32, in run_commands
subprocess.run(cmd, check=True)
File "/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['run_ancombc.R', '--inp_abundances_path', '/var/folders/q4/zlsnmdd940n1f8xjb67_glyr0000gn/T/tmphmseqm_c/input.biom.tsv', '--inp_metadata_path', '/var/folders/q4/zlsnmdd940n1f8xjb67_glyr0000gn/T/tmphmseqm_c/input.map.txt', '--md_column_types', '{"labels": "numeric", "effect_size": "numeric", "microbe_total": "numeric", "class_logits": "numeric", "intercept": "numeric", "groups": "categorical"}', '--formula', 'labels', '--p_adj_method', 'holm', '--prv_cut', '0.1', '--lib_cut', '0', '--reference_levels', "['labels::-1.0']", '--tol', '1e-05', '--max_iter', '100', '--conserve', 'False', '--alpha', '0.05', '--output_loaf', '/var/folders/q4/zlsnmdd940n1f8xjb67_glyr0000gn/T/q2-DataLoafPackageDirFmt-ml05k8h6']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/q2cli/commands.py", line 520, in __call__
results = self._execute_action(
File "/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/q2cli/commands.py", line 581, in _execute_action
results = action(**arguments)
File "<decorator-gen-22>", line 2, in ancombc
File "/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/qiime2/sdk/action.py", line 342, in bound_callable
outputs = self._callable_executor_(
File "/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/qiime2/sdk/action.py", line 576, in _callable_executor_
output_views = self._callable(**view_args)
File "/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/q2_composition/_ancombc.py", line 41, in ancombc
return _ancombc(
File "/Users/byunghunso/opt/miniconda3/envs/qiime2-amplicon-2024.5/lib/python3.9/site-packages/q2_composition/_ancombc.py", line 257, in _ancombc
raise Exception('An error was encountered while running ANCOM-BC'
Exception: An error was encountered while running ANCOM-BC in R (return code 1), please inspect stdout and stderr to learn more.
Plugin error from composition:
An error was encountered while running ANCOM-BC in R (return code 1), please inspect stdout and stderr to learn more.
See above for debug info.