bluepyemodel.efeatures_extraction.trace_file

TraceFile

Functions

list_ecodes_per_traces(traces[, threshold_count])

Utility method.

Classes

TraceFile(cell_name[, filename, filepath, ...])

Contains the metadata of a trace file

class TraceFile(cell_name, filename=None, filepath=None, resource_id=None, ecodes=None, other_metadata=None, species=None, brain_region=None, etype=None, id=None)

Bases: object

Contains the metadata of a trace file

Constructor.

Parameters:
  • cell_name (str) – cell name

  • filename (str) – file name

  • filepath (str) – file path

  • resource_id (str) – deprecated. kept for legacy reasons

  • ecodes (dict) –

    the ecodes, e.g.

    {
        "IDrest": {
            "t_unit": "s",
            "ljp": 14.0,
            "protocol_name": "IDrest"
    }
    

  • other_metadata (dict) –

    voltage and current files, e.g.

    {
        "v_file": "path_to_voltage_file",
        "i_file": "path_to_current_file"
    }
    

  • species (dict) –

    species, e.g.

    {
        "id": "http://purl.obolibrary.org/obo/NCBITaxon_10090",
        "label": "Mus musculus",
    }
    

  • brain_region (dict) –

    brain region, e.g.

    {
        "@id": "http://api.brain-map.org/api/v2/data/Structure/407",
        "label": "Field CA1, pyramidal layer"
    }
    

  • etype (str) – etype

  • id (str) – the nexus id of the trace resource

list_ecodes_per_traces(traces, threshold_count=0)

Utility method. Return the list of ecodes available for each trace. Only the ecodes present more than threshold_count times are considered.