Skip to content

Commit a02942a

Browse files
committed
fix: Remove unused (and now type-erroring) phenotype subject aggregation
1 parent 1592072 commit a02942a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/schema/context.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)