Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Error occurred while parsing the output of qiime2

Open
#102 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
r

Research direction

Reproduce the problem with the listed table.qza, taxonomy.qza, and metadata.tsv inputs, then inspect mp_import_qiime2 and the validityMethod/print.MPSE path shown in the trace. Done means the imported MPSE object passes validation with matching taxonomy tip labels and OTU assays.

Written by the indexing model from the issue text.

Description

Hi Shuangbin,

I met some troubles while parsing the output of qiime2. I've checked the output of qiime2 but I didn't find any reasons of the following error.

running:
otuqza="./table.qza"
taxaqzafile="./taxonomy.qza"
mapfile="./metadata.tsv"
mpse <- mp_import_qiime2(otuqza=otuqzafile, taxaqza=taxaqzafile, mapfilename=mapfile)
mpse

error:
Error in validityMethod():
! The number of tip labels of taxatree is not equal the number of otu in assays.
• Please check the taxatree or assays!
Run rlang::last_trace() to see where the error occurred.

rlang::last_trace()
<error/rlang_error>
Error in validityMethod():
! The number of tip labels of taxatree is not equal the number of otu in assays.
• Please check the taxatree or assays!


Backtrace:
▆

  1. ├─methods (local) <stndrdGn>(<MPSE[,0]>)
  2. ├─MicrobiotaProcess (local) <stndrdGn>(<MPSE[,0]>)
  3. │ └─object %>% print()
  4. ├─base::print(.)
  5. └─MicrobiotaProcess:::print.MPSE(.)
  6. └─MicrobiotaProcess:::print2.MPSE(...)
  7. ├─x[seq_len(n), seq_len(min(1, ncol(x))), drop = FALSE]
    
  8. └─x[seq_len(n), seq_len(min(1, ncol(x))), drop = FALSE]
    
  9.   └─methods::validObject(nx)
    
  10.     ├─methods (local) anyStrings(validityMethod(object))
    
  11.     │ └─base::isTRUE(x)
    
  12.     └─MicrobiotaProcess (local) validityMethod(object)
    

Run rlang::last_trace(drop = FALSE) to see 1 hidden frame.

Dominant language
R
Stars
195
Forks
36
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from YuLab-SMU/MicrobiotaProcess

All issues in YuLab-SMU/MicrobiotaProcess

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.