My biom files were validated using http://biom-format.org package.
With QIIME1, I have a valid biom file but with (same data) QIIME2 exported (qiime tools export) invalid biom file!
A) otu_table.biom obtained with QIIME1.9
$biom validate-table -i otu_table.biom
The input file is a valid BIOM-formatted file.
B) feature-table.biom obtained with QIIME2-2017.4
$biom validate-table -i feature-table.biom
Unknown BIOM type:
The input file is not a valid BIOM-formatted file.
Why this difference?
Sincerely,
Ashok
ebolyen
(Evan Bolyen)
May 16, 2017, 12:05am
2
Hey @adinasarapu ,
That does seem strange, but itās possible you have an older BIOM package that isnāt aware of BIOM file-format 2.1 .
What environment are you running these commands in? QIIME 1 or QIIME 2?
For both environments, could you provide the following:
What does which biom
say?
What does python -c "import biom; print(biom.__version__)"
say?
Additionally:
Can you also run file otu_table.biom
and file feature-table.biom
to see what the underlying formats are (e.g. JSON or HDF5), what does it say?
Thanks!
2 Likes
I have the following output
$which biom
~/anaconda2/envs/qiime2-2017.4/bin/biom
$python -c "import biom; print(biom.__version__)"
2.1.5
QIIME2
$file feature-table.biom
feature-table.biom: Hierarchical Data Format (version 5) data
$biom validate-table -i feature-table.biom
Unknown BIOM type:
The input file is not a valid BIOM-formatted file.
QIIME1
$file otu_table.biom
otu_table.biom: Hierarchical Data Format (version 5) data
$biom validate-table -i otu_table.biom
The input file is a valid BIOM-formatted file.
1 Like
ebolyen
(Evan Bolyen)
May 16, 2017, 5:42pm
4
Thanks @adinasarapu !
Would you be able to share feature-table.biom
? Everything looks fine from the outside. QIIME 2 uses the biom
API directly so Iām very uncertain how we would have ended up with an āinvalidā file. (I wonder if the file became corrupted on disk during write somehow.)
@wasade , have you seen anything like this before?
wasade
(Daniel McDonald)
May 16, 2017, 5:56pm
5
@ebolyen , I havenāt, sorry. Iād be very curious to see the feature-table.biom
file though. Note that --detailed-report
can be passed to biom validate-table
to get more specific information about what is invalid
3 Likes
$biom validate-table --detailed-report -i feature-table.biom
Validating BIOM tableā¦
Validating āformat-urlāā¦
Validating āformat-versionāā¦
Validating ātypeāā¦
Unknown BIOM type:
Validating āshapeāā¦
Validating ānnzāā¦
Validating āgenerated-byāā¦
Validating āidāā¦
Validating ācreation-dateāā¦
Validating āshapeā versus number of samples and observationsā¦
The input file is not a valid BIOM-formatted file.
1 Like
wasade
(Daniel McDonald)
May 18, 2017, 5:27pm
7
Thanks! What is the provenance of the QIIME2 feature_table.biom
? That is technically out of spec ā thank you for catching it ā but Iām not aware of any downstream tool which actually leverages that format attribute.
@ebolyen , my guess is type
is not being passed to biom.Table
somewhere.
2 Likes
ebolyen
(Evan Bolyen)
May 18, 2017, 7:31pm
8
It looks like we donāt set it at all. In later releases of BIOM it looks like there is a special codepath for ""
which will give you:
Unknown table type, however that is likely okay.
Which seems fine for now since there isnāt really a good table type for QIIME 2 here.
1 Like
system
(system)
Closed
June 19, 2017, 1:32am
9
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.