SourceTracker2 dataframe erro

Hi,
I am using SourceTracker2 and it was going smoothly, but I can't generate the barplot.
I used the command:
qiime sourcetracker2 barplot
--i-proportions qiime2-results/sourcetracker-loo/mixing_proportions.qza
--m-sample-metadata-file sample-metadataST4.tsv
--o-visualization qiime2-results/sourcetracker-loo/proportions-barplot.qzv

with this metatada file
sample-metadataST4.tsv (2.1 KB)

the error message that I get is this one:
Plugin error from sourcetracker2:

'DataFrame' object has no attribute 'ids'

Debug info has been saved to /tmp/qiime2-q2cli-err-s3roefhs.log

I don't understand because I have a sample ids column in my metadata and I was able to generate those .qza files from the data.
mixing_proportion_stds.qza (21.9 KB)
mixing_proportions.qza (22.0 KB)
per_sink_assignments.qza (56.2 KB)
per_sink_assignments_map.qza (20.3 KB)

I saw someone with the same problem on the forum, but there was no answer :S
Thank you very much for the support :slight_smile:

1 Like

Hi @Audrey_Anne,

I too have been struggling with this same error for a few days now and think I've come across a temporary fix. It appears that there is an underlying version conflict for the SourceTracker2 plug-in, but it works for me if I use an older version (I used 2020.8). I hope this helps until the plug-in is updated!

Good luck,
Ryan

1 Like

Hi @Ryan.Knuth

It did actually work with the 2020.8 version! Thank you so much! I was becoming very desperate haha

Thank you again it is very very very appreciated :slight_smile:

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.