scimapToCsv
scimapToCsv ¶
scimapToCsv(
data,
layer="raw",
outputDir=None,
fileName=None,
cellId="CellID",
verbose=True,
sdataTable=None,
)
Export expression and metadata as one flat table.
Produces one row per cell: a cell id, one column per marker, then every obs
column. That is the shape most non-Python tools expect.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
(AnnData | SpatialData | str, required)
|
The cell table. An |
required |
layer
|
str
|
Which matrix to export. |
'raw'
|
outputDir
|
str
|
Directory to write the CSV into. With |
None
|
fileName
|
str
|
Name of the CSV. Defaults to |
None
|
cellId
|
str
|
Name of the first column, holding |
'CellID'
|
verbose
|
bool
|
Print the path written. |
True
|
sdataTable
|
str
|
Which |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
result |
DataFrame
|
The flattened table, always returned whether or not |
Raises:
| Type | Description |
|---|---|
ValueError
|
When |