-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve validation of medium types on import #8
Comments
What file type did you import? Media have to be CSV files not tab-delimited. Also the initial index column (0, 1, 2, ...) has to be removed. |
I used CSV and removed the initial index column, but I received the same error again... Plugin error from micom: 'DataFrame' object has no attribute 'reaction' |
Assuming your imported file is called import qiime2 as q2
import pandas as pd
art = q2.Artifact.load("medium.qza")
art.view(pd.DataFrame) in your Qiime 2 env and post the output please. Also make sure your file does have a header row, so the first row should be literally |
I solved my error: Would it make sense that the user receives an error already during import if the data format is not appropriate? (Due to my successful import of my per sample medium I thought the error is associated with the micom grow command...) Thanks for your help Christian, sorry for bothering you and hopefully the air improves soon in the Pacific Northwest! |
No problem 😁 Yeah I should use a more strict validation for the medium type. I'll leave that issue open but will change the title. |
Hey, I created an adapted per sample diet model with the following structure for my dataset:
0 0.000135232 0.1 fru_m EX_fru_m ORS18-017
1 0.000329774 0.1 glc_m EX_glc_m ORS18-017
2 4.99876E-05 0.1 gal_m EX_gal_m ORS18-017
3 0.0148986 0.1 man_m EX_man_m ORS18-017
4 0.000161329 0.1 mnl_m EX_mnl_m ORS18-017
5 0.0148986 0.1 fuc_L_m EX_fuc_L_m ORS18-017
However, after import as --type MicomMedium[PerSample] I receive the following error with the qiime micom grow command:
Plugin error from micom:
'DataFrame' object has no attribute 'reaction'
Hope you can help!
Thanks!
The text was updated successfully, but these errors were encountered: