File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -336,22 +336,6 @@ export class BIDSContext implements Context {
336336 'participant_id'
337337 ] as string [ ]
338338 }
339-
340- // Load phenotype from phenotype/*.tsv
341- const phenotype_dir = this . dataset . tree . get ( 'phenotype' ) as FileTree
342- if ( phenotype_dir ) {
343- const phenotypeFiles = phenotype_dir . files . filter ( ( file ) => file . name . endsWith ( '.tsv' ) )
344- // Collect observed participant_ids
345- const seen = new Set ( ) as Set < string >
346- for ( const file of phenotypeFiles ) {
347- const phenotypeData = await loadTSV ( file )
348- const participant_id = phenotypeData [ 'participant_id' ] as string [ ]
349- if ( participant_id ) {
350- participant_id . forEach ( ( id ) => seen . add ( id ) )
351- }
352- }
353- this . dataset . subjects . phenotype = Array . from ( seen )
354- }
355339 }
356340
357341 async asyncLoads ( ) {
You can’t perform that action at this time.
0 commit comments