biocore / mmvec

Neural networks for microbe-metabolite interaction analysis
BSD 3-Clause "New" or "Revised" License
118 stars 51 forks source link

help with heatmap conditionals to create ranks.qza file #161

Closed CarlaCristinaUranga closed 2 years ago

CarlaCristinaUranga commented 3 years ago

Hi I am having trouble creating the ranks.qza file for the heatmap, I get this error:

(qiime2) curanga@x86_64-apple-darwin13 bioinf_job % qiime tools import \ --input-path model_4/conditionals.txt \ --type 'FeatureTable[Conditional]' \ --output-path ranks.qza Traceback (most recent call last): File "/Users/curanga/opt/anaconda3/envs/qiime2/lib/python3.6/site-packages/q2cli/builtin/tools.py", line 158, in import_data view_type=input_format) File "/Users/curanga/opt/anaconda3/envs/qiime2/lib/python3.6/site-packages/qiime2/sdk/result.py", line 213, in import_data output_dir_fmt = pm.get_directoryformat(type) File "/Users/curanga/opt/anaconda3/envs/qiime2/lib/python3.6/site-packages/qiime2/sdk/plugin_manager.py", line 313, in get_directory_format % semantic_type) TypeError: Semantic type FeatureTable[Conditional] does not have a compatible directory format.

An unexpected error has occurred:

Semantic type FeatureTable[Conditional] does not have a compatible directory format.

See above for debug info. (qiime2) curanga@x86_64-apple-darwin13 bioinf_job %

I am not sure if it is because you have to create a .biom file first or what is wrong. I have attached my conditionals file. So these are probabilities, but do they need to be converted to % values? Thank you!

conditionals.txt

mortonjt commented 3 years ago

It looks like a small typo, it should be FeatureData instead of FeatureTable :)

qiime tools import
--input-path model_4/conditionals.txt
--type 'FeatureData[Conditional]'
--output-path ranks.qza