_:nde9bf572384e4e409ec3ef4243925bc9xb2
<http://schema.org/text>
"There are multiple ways to do this:\n\n1. Manually create a list.\n\nsub_list = [&#39;S01&#39;, &#39;S02&#39;, &#39;S04&#39;, &#39;S05&#39;, &#39;S06&#39;, &#39;S07&#39;, &#39;S08&#39;, &#39;S09&#39;, &#39;S10&#39;]\n\n2. Use PyBids - layout.get_subjects(). Make sure you specifically look within derivatives folder. You may need to exclude missing data like ‘S03’.\n\n[x for x in&hellip;"
<https://www.askpbs.org/t/how-do-i-get-a-list-of-subjects/32>