Closed johannesbjork closed 3 years ago
There were a couple of errors that were here. One is the error that you reported in this issue, the other error is the negative dimensions that inspired this issue : https://github.com/biocore/songbird/issues/137
Regarding issue https://github.com/biocore/songbird/issues/137, have you made sure that your dimensions are correct? I know when converting between biom and R, it is easy to transpose the tables. Since the feature names won't match with your sample names, this will also cause all of the samples to be filtered out.
Regarding this error, this looks like a patsy parsing issue. You may need to add quotes around your levels. See this qiime2 forum post for an example : https://forum.qiime2.org/t/levels-in-songbird/16197
Thanks Jamie (@mortonjt). Indeed, changing double for single quotes around the levels solved the issue.
(songbird_env) user@user redsea % songbird multinomial \
--input-biom redsea.biom \
--metadata-file redsea_metadata2.txt \
--formula "Temperature + C(faky, Diff, levels=['A','B','C'])" \
--epochs 1 \
--differential-prior 0.5 \
--training-column Testing \
--summary-interval 1 \
--summary-dir results
awesome!!
On Wed, Aug 26, 2020 at 10:26 AM johannesbjork notifications@github.com wrote:
Thanks Jamie (@mortonjt https://github.com/mortonjt). Indeed, changing double for single quotes around the levels solved the issue.
(songbird_env) user@user redsea % songbird multinomial \ --input-biom redsea.biom \ --metadata-file redsea_metadata2.txt \ --formula "Temperature + C(faky, Diff, levels=['A','B','C'])" \ --epochs 1 \ --differential-prior 0.5 \ --training-column Testing \ --summary-interval 1 \ --summary-dir results
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/biocore/songbird/issues/138#issuecomment-680985640, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA75VXICSWXUEPEGOYE4KU3SCUZSXANCNFSM4QLQNPDQ .
I'm getting this error
patsy.PatsyError: Error evaluating factor: NameError: name 'X' is not defined
for nominal categorical variables. The error seems reproducible using thereadea
dataset adding a nominal categorical variable calledfaky
inR
as follows:I manually added
#
in front ofsampleid
Running songbird on command-line:
Maybe this indicates that I'm doing something obviously wrong?