@groovy.util.logging.Slf4j @groovy.transform.CompileStatic class BidsCsvParser extends java.lang.Object
Tabular parser for the output of libBIDSsh_parse_bids_to_table.
Reads the header row to discover column indices, then converts each data row
into a nfneuro.plugin.model.BidsFile object with all BIDS entity fields
and the file path populated. Columns correspond to BIDS entities plus
suffix, extension, and path.
| Constructor and description |
|---|
BidsCsvParser() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.util.Map<java.lang.String, java.lang.String> |
getEntities(java.util.List<java.lang.String> values)Get all entity values from a row |
|
java.util.List<nfneuro.plugin.model.BidsFile> |
parse(java.io.File csvFile)Parse TSV table file from libBIDS.sh |
|
nfneuro.plugin.model.BidsFile |
parseRow(java.lang.String line)Parse a single TSV row into a BidsFile |
|
java.util.Map<java.lang.String, java.lang.String> |
rowToMap(java.util.List<java.lang.String> values)Convert parsed row to map |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait() |
Get all entity values from a row
values - Parsed row valuesParse TSV table file from libBIDS.sh
csvFile - TSV file to parseParse a single TSV row into a BidsFile
line - TSV lineConvert parsed row to map
values - Parsed row values