Mangle
Modify assay CSV files to simulate poor formatting.
mangle_assays(assays_dir, persons)
Create 'raw' assay files by mangling data of pristine files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
assays_dir
|
Path | str
|
Directory containing assay CSV files |
required |
persons
|
AllPersons
|
People who performed experiments |
required |
Raises:
Type | Description |
---|---|
ValueError
|
If people data cannot be loaded |
Source code in src/snailz/mangle.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
_mangle_assay(data, staff)
Mangle a single assay file.
Source code in src/snailz/mangle.py
34 35 36 37 38 39 40 |
|
_mangle_id(data, staff)
Convert ID field to string.
Source code in src/snailz/mangle.py
43 44 45 46 47 48 49 |
|
_mangle_indent(data, staff)
Indent data portion.
Source code in src/snailz/mangle.py
52 53 54 |
|
_mangle_person(data, staff)
Replace person identifier with name.
Source code in src/snailz/mangle.py
57 58 59 60 61 62 63 64 |
|