Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-1173

Make the CSV importer generic

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.2
    • Component/s: None
    • Labels:
      None

      Description

      Currently we make use of a hard-coded file (dti_pipeline_regions.txt) at import-time.
      This file is specific for the connectivity_96; so any other import from CSV fails (with message "Invalid Connectivity Row size! 74 != 96 at row 1"

      One possible solution:

      • make the "regions_order" part of the datatype - optional
      • only the connectivity 96 will have, for now, this field populated
      • at import from CSV, in case the regions_order att is missing, consider a default order 1....N

      Another solution:
      Let the canonical region order be the one in the reference connectivity (as specified in the centers.txt).

      • if the CSV files do not contain a header row, then assume that the order is the canonical one
      • if the CSV files contain a header row, that row must contain ordinal numbers.
        We will permute the columns/rows so that the ordinal numbers will be in ascending order.
        Then we assume that the sorted file is in the canonical order.
        No extra mapping file is required. To adapt the ordering of the csv matrices to the reference connectivity add a header row with ordinal numbers.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              mihai.andrei Mihai Andrei
              Reporter:
              lia.domide Lia Domide
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 3 hours
                  1d 3h