drcme.bin.run_existing_spca_on_new_data¶
Script to apply an existing set of sPCA loadings to a new data set.
- class drcme.bin.run_existing_spca_on_new_data.DatasetParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]¶
Parameter schema for input datasets
DatasetParameters¶ key
description
default
field_type
json_type
fv_h5_file
HDF5 file with feature vectors
NA
InputFilestr
metadata_file
Metadata file in CSV format
None
InputFilestr
dendrite_type
Filter for dendrite type using information in metadata (all, spiny, aspiny)
all
Stringstr
allow_missing_structure
Whether or not structure value for cell in metadata can be missing
False
Booleanbool
allow_missing_dendrite
Whether or not dendrite type value for cell in metadata can be missing
False
Booleanbool
need_ramp_spike
Whether or not to exclude cells that did not fire an action potential from the ramp stimulus
True
Booleanbool
limit_to_cortical_layers
List of cortical layers to limit the data set (using the metadata file)
[]
Liststr
id_file
Text file with specimen IDs to use. Cells with IDs not in the file will be excluded.
None
InputFilestr
- class drcme.bin.run_existing_spca_on_new_data.SpcaTransformParameters(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]¶
Parameter schema for sPCA using existing transform
This schema is designed to be a schema_type for an ArgSchemaParser object
SpcaTransformParameters¶ key
description
default
field_type
json_type
input_json
file path of input json file
NA
InputFilestr
output_json
file path to output json file
NA
OutputFilestr
log_level
set the logging level of the module
ERROR
LogLevelstr
orig_transform_file
sPCA loadings file
NA
InputFilestr
orig_datasets
schema for loading one or more specific datasets for the analysis
(REQUIRED)
list
new_datasets
schema for loading one or more specific datasets for the analysis
(REQUIRED)
list
params_file
JSON file with sPCA parameters
NA
InputFilestr
output_file
CSV with transformed values
NA
OutputFilestr
Functions
|
Main runner function for script. |
Classes
|
Parameter schema for input datasets |
|
Parameter schema for sPCA using existing transform |