You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/flex-quant-command.rst
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,17 @@ The command needs:
27
27
28
28
If the chemistry registry contains the needed metadata, ``simpleaf`` can automatically download and cache the probe set, the cell barcode whitelist, and the sample barcode list. If you already have local resources, you can override these defaults with ``--index``, ``--probe-set``, or ``--sample-bc-list``.
29
29
30
+
The default output is the standard Matrix Market directory under ``af_quant/alevin``. If you pass ``--anndata-out``, ``simpleaf`` will additionally write an AnnData ``.h5ad`` file at ``af_quant/alevin/quants.h5ad``.
31
+
32
+
For multiplex output, the resulting AnnData object is intended to preserve the extra sample-level structure of the experiment:
33
+
34
+
- ``obs_names`` are sample-qualified cell identifiers
35
+
- ``obs["cell_barcode"]`` stores the corrected cell barcode without the sample prefix
36
+
- ``obs["sample_name"]`` stores the sample / probe-barcode assignment
37
+
- ``var["gene_id"]`` remains the matrix feature identifier
38
+
- ``var["gene_symbol"]`` is added when a ``gene_id_to_name.tsv`` mapping is available from the probe set or index
39
+
- ``uns`` stores the standard ``gpl_info``, ``collate_info``, ``quant_info``, and ``simpleaf_map_info`` records, and for multiplex runs it also stores ``sample_info`` plus ``simpleaf_multiplex_quant_info``
40
+
30
41
The relevant options (which you can obtain by running ``simpleaf multiplex-quant -h``) are below:
31
42
32
43
.. code-block:: console
@@ -70,6 +81,9 @@ The relevant options (which you can obtain by running ``simpleaf multiplex-quant
70
81
Permit List Options:
71
82
--min-reads <MIN_READS> Minimum read count threshold for unfiltered permit list [default: 10]
72
83
84
+
Output Options:
85
+
--anndata-out Generate an anndata (h5ad format) count matrix from the standard (matrix-market format) output
86
+
73
87
Resource resolution
74
88
-------------------
75
89
@@ -139,6 +153,18 @@ Use a pre-built probe index:
139
153
--reads2 sample_R2.fastq.gz \
140
154
--output flex_out
141
155
156
+
Request AnnData output in addition to the Matrix Market output:
157
+
158
+
.. code-block:: console
159
+
160
+
$ simpleaf multiplex-quant \
161
+
--chemistry 10x-flexv1-gex-3p \
162
+
--organism human \
163
+
--reads1 sample_R1.fastq.gz \
164
+
--reads2 sample_R2.fastq.gz \
165
+
--output flex_out \
166
+
--anndata-out
167
+
142
168
Request USA-mode probe quantification:
143
169
144
170
.. code-block:: console
@@ -159,6 +185,10 @@ The command creates the requested output directory and writes:
159
185
160
186
- ``af_map/``: the ``piscem`` mapping output
161
187
- ``af_quant/``: the ``alevin-fry`` permit-list, collate, and quantification output
188
+
- ``af_quant/simpleaf_map_info.json``: parsed mapping metadata copied into the quantification directory for downstream consumers such as AnnData conversion
189
+
- ``af_quant/simpleaf_multiplex_quant_info.json``: multiplex pipeline metadata copied into the quantification directory so it can be embedded into AnnData ``uns``
190
+
- ``af_quant/gene_id_to_name.tsv``: optional gene ID to gene symbol/name mapping copied when available from the probe set or index
191
+
- ``af_quant/alevin/quants.h5ad``: optional AnnData output written when ``--anndata-out`` is requested
162
192
- ``simpleaf_multiplex_quant_info.json``: a metadata record describing the resolved inputs, executed commands, and step timings
0 commit comments