generated from imjoy-team/imjoy-python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from imodpasteur/transform-headers
Transform headers
- Loading branch information
Showing
3 changed files
with
150 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"version": "0.1.8" | ||
"version": "0.1.9" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
|
||
supported_text_formats = { | ||
"ThunderSTORM (csv)": { | ||
# Required | ||
"type": "table", | ||
"extension": ".csv", | ||
"mode": "text", | ||
"dtype": "float32", | ||
"delimiter": ",", | ||
"comments": "", | ||
# specify which row is the header, set to -1 if there is no header | ||
"header_row": 0, | ||
# specify how to transform the headers to the standard header defined in smlm format, | ||
"header_transform": { "x [nm]": "x", "y [nm]": "y", "z [nm]": "z", "uncertainty_xy [nm]": "uncertainty_xy", "uncertainty_z [nm]": "uncertainty_z" }, | ||
|
||
# Optional | ||
"name": "ThunderSTORM (csv)", | ||
"description": "a csv format used in thunderSTORM" | ||
}, | ||
"ThunderSTORM (xls)": { | ||
# Required | ||
"type": "table", | ||
"extension": ".xls", | ||
"mode": "text", | ||
"dtype": "float32", | ||
"delimiter": "\t", | ||
"comments": "", | ||
# specify which row is the header, set to -1 if there is no header | ||
"header_row": 0, | ||
# specify how to transform the headers to the standard header defined in smlm format, | ||
"header_transform": { "x [nm]": "x", "y [nm]": "y", "z [nm]": "z", "uncertainty_xy [nm]": "uncertainty_xy", "uncertainty_z [nm]": "uncertainty_z" }, | ||
|
||
# Optional | ||
"name": "ThunderSTORM (xls)", | ||
"description": "a xls format used in thunderSTORM" | ||
}, | ||
"ZEISS (txt)": { | ||
# Required | ||
"type": "table", | ||
"extension": ".txt", | ||
"mode": "text", | ||
"dtype": "float32", | ||
"delimiter": "\t", | ||
"comments": "", | ||
# specify which row is the header, set to -1 if there is no header | ||
"header_row": 0, | ||
# specify how to transform the headers to the standard header defined in smlm format, | ||
"header_transform": { "Position X [nm]": "x", "Position Y [nm]": "y", "Position Z [nm]": "z", "First Frame": "frame" }, | ||
|
||
# Optional | ||
"name": "ZEISS (txt)", | ||
"description": "a txt format used in ZEISS microscope" | ||
}, | ||
"ZEISSv1 (csv)": { | ||
# Required | ||
"type": "table", | ||
"extension": ".csv", | ||
"mode": "text", | ||
"dtype": "float32", | ||
"delimiter": ";", | ||
"comments": "", | ||
# specify which row is the header, set to -1 if there is no header | ||
"header_row": 0, | ||
# specify how to transform the headers to the standard header defined in smlm format, | ||
"header_transform": { "Position X [nm]": "x", "Position Y [nm]": "y", "Position Z [nm]": "z", "First Frame": "frame" }, | ||
|
||
# Optional | ||
"name": "ZEISSv1 (csv)", | ||
"description": "a csv format used in ZEISS microscope" | ||
}, | ||
"ZEISSv2 (csv)": { | ||
# Required | ||
"type": "table", | ||
"extension": ".csv", | ||
"mode": "text", | ||
"dtype": "float32", | ||
"delimiter": ";", | ||
"comments": "", | ||
# specify which row is the header, set to -1 if there is no header | ||
"header_row": 0, | ||
# specify how to transform the headers to the standard header defined in smlm format, | ||
"header_transform": { "x [nm]": "x", "y [nm]": "y", "z [nm]": "z", "First Frame": "frame" }, | ||
|
||
# Optional | ||
"name": "ZEISSv2 (csv)", | ||
"description": "a csv format used for ZEISS microscope" | ||
}, | ||
"RapidSTORM (txt)": { | ||
# Required | ||
"type": "table", | ||
"extension": ".txt", | ||
"mode": "text", | ||
"dtype": "float32", | ||
"delimiter": " ", | ||
"comments": "", | ||
# specify which row is the header, set to -1 if there is no header | ||
"header_row": 0, | ||
|
||
# specify how to transform the headers to the standard header defined in smlm format, | ||
"header_transform": { "*all*": 'identifier="([\\w\\d\\-_]+)"', "Position-0-0": "x", "Position-1-0": "y", "Position-2-0": "z", "ImageNumber-0-0": "frame" }, | ||
|
||
# Optional | ||
"name": "RapidSTORM (txt)", | ||
"description": "a text format used in RapidSTORM" | ||
}, | ||
"Space Seperated List (txt)": { | ||
# Required | ||
"type": "table", | ||
"extension": ".txt", | ||
"mode": "text", | ||
"dtype": "float32", | ||
"delimiter": " ", | ||
"comments": "", | ||
# specify which row is the header, set to -1 if there is no header | ||
"header_row": 0, | ||
|
||
# specify how to transform the headers to the standard header defined in smlm format, | ||
"header_transform": {}, | ||
|
||
# Optional | ||
"name": "Space Seperated List (txt)", | ||
"description": "A list of coordinates seperated with space." | ||
}, | ||
"Nikon NSTORM (txt)": { | ||
# Required | ||
"type": "table", | ||
"extension": ".txt", | ||
"mode": "text", | ||
"dtype": "float32", | ||
"delimiter": "\t", | ||
"comments": "", | ||
# specify which row is the header, set to -1 if there is no header | ||
"header_row": 0, | ||
# specify how to transform the headers to the standard header defined in smlm format, | ||
"header_transform": { "X": "x", "Y": "y", "Z": "z", "Frame": "frame" }, | ||
|
||
# Optional | ||
"name": "Nikon NSTORM (txt)", | ||
"description": "a txt format exported from Nikon NSTORM software" | ||
}, | ||
} |