# MicrobiotaProcess: invalid zip name argument

**URL:** https://forum.qiime2.org/t/microbiotaprocess-invalid-zip-name-argument/32339
**Category:** Other Bioinformatics Tools
**Tags:** qiime2r
**Created:** [January 17, 2025, 5:36pm UTC](https://forum.qiime2.org/t/microbiotaprocess-invalid-zip-name-argument/32339 "2025-01-17T17:36:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zahra](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/z/aeb1de/32.png) [@zahra](https://forum.qiime2.org/u/zahra)
#### Post date: [January 17, 2025, 5:36pm UTC](https://forum.qiime2.org/t/microbiotaprocess-invalid-zip-name-argument/32339/1 "2025-01-17T17:36:25Z")

</div>

Hello! I am attempting to integrate some files from qiime2 into a package called MicrobiotaProcess. I've been using qiime2R to read my table.qza and taxonomy.qza file. But when I try to integrate it into MPSE (like one would do with phyloseq), it gives me this unzip error.

When I open up asvtable$table, I can see the data in the correct format... So shouldn't it already be unzipped? I usually use command line for qiime2 so this is a naive question!

Here is my script:

```r
library(MicrobiotaProcess)
library(phyloseq)
library(BiocManager)
library(qiime2R)

# importing qiime2 files
asvtable <- read_qza("microbiotaprocess/table.qza")
taxonomy <- read_qza("microbiotaprocess/taxonomy.qza")
mapfile <- read.table("microbiotaprocess/mappingfile.txt", header = TRUE)

# viewing data
asvtable$data
taxonomy$data

mpse2 <- mp_import_qiime2(otuqza=asvtable, taxaqza=taxonomy, mapfilename=mapfile)
mpse2

```

Here is the error:

> mpse2 \<- mp\_import\_qiime2(otuqza=asvtable, taxaqza=taxonomy, mapfilename=mapfile)  
> Error in unzip(qzafile, exdir = tmpdir) : invalid zip name argument

Thank you!

---

<div class="post-metadata">

### Author: ![salias](https://forum.qiime2.org/user_avatar/forum.qiime2.org/salias/32/18594_2.png) [@salias](https://forum.qiime2.org/u/salias)
#### Post date: [January 22, 2025, 9:21am UTC](https://forum.qiime2.org/t/microbiotaprocess-invalid-zip-name-argument/32339/2 "2025-01-22T09:21:29Z")

</div>

Hi @zahra ,

If you search for the function that raises the error (`mp_import_qiime2`) in the corresponding tool [documentation](https://bioconductor.org/packages/release/bioc/manuals/MicrobiotaProcess/man/MicrobiotaProcess.pdf) (you can also type `?mp_import_qiime2` within your R session):

 ![imagen](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/8/8/888584c9fe4252bd452fa0511ae2df0cb519e8ba.png)

As you can see, the function is expecting file paths, not data already in R. This makes sense, since you can have data within R in a lot of different formats, while QIIME 2 files always follow the same standard and it is easier for a import function to handle files with a consistent format.

> [@zahra](#):
>
> Error in unzip(qzafile, exdir = tmpdir) : invalid zip name argument

> [@zahra](#):
>
> shouldn't it already be unzipped?

This error message is indeed a good clue. The function is expecting a zip filename, since it is calling `unzip()` and it is complaining about the file not being a zip. And what are QZA files? [Exactly!](https://docs.qiime2.org/2024.10/tutorials/qiime2-for-experienced-microbiome-researchers/#pro-tips-for-power-users)

Best,

Sergio
