Skip to content

Commit

Permalink
Merge pull request #1185 from ldhtnp/issues/1142
Browse files Browse the repository at this point in the history
Behavior to allow different percentile threshold strategies for candidates
  • Loading branch information
susannasiebert authored Feb 19, 2025
2 parents f7a03bf + 332e4c6 commit 337358c
Show file tree
Hide file tree
Showing 38 changed files with 379 additions and 195 deletions.
6 changes: 6 additions & 0 deletions docs/pvacbind/filter_commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ to ``lowest``, this threshold is applied to the ``Best Percentile`` column. When
it is set to ``median``, the threshold is applied to the ``Median
Percentile`` column.

When the ``--percentile-threshold`` flag is set, the candidate inclusion strategy can be
specified by using the ``--percentile-threshold-strategy`` parameter. The parameter has two
options ``conservative`` (default) and ``exploratory``. The 'conservative' option requires a candidate
to pass BOTH the binding threshold and percentile threshold, while the 'exploratory' option requires
a candidate to pass EITHER the binding threshold or percentile threshold.

By default, entries with ``NA`` values will be included in the output. This
behavior can be turned off by using the ``--exclude-NAs`` flag.

Expand Down
9 changes: 8 additions & 1 deletion docs/pvacbind/output_files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ provided to the pVACfuse run:
* - ``--percentile-threshold``
- When set, use this threshold to filter epitopes on the %ile MT score in addition to having to meet the binding threshold.
- None
* - ``--percentile-threshold-strategy``
- Specify the candidate inclusion strategy. The ``conservative`` option requires a candidate to pass BOTH the binding threshold
and percentile threshold (if set). The ``exploratory`` option requires a candidate to pass EITHER the binding threshold or
the percentile threshold.
- conservative

Tiers
*****
Expand All @@ -259,7 +264,9 @@ Criteria Details
* - Binding Criteria
- Pass if Best Peptide is strong binder
- ``IC50 MT < binding_threshold`` and ``%ile MT < percentile_threshold``
(if ``--percentile-threshold`` parameter is set)
(if ``--percentile-threshold`` parameter is set and 'conservative' ``--percentile-threshold-strategy`` is used) or
``IC50 MT < binding_threshold`` or ``%ile MT < percentile_threshold``
(if 'exploratory' ``--percentile-threshold-strategy`` is used)


.. _pvacbind_reference_matches:
Expand Down
6 changes: 6 additions & 0 deletions docs/pvacfuse/filter_commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ to ``lowest``, this threshold is applied to the ``Best Percentile`` column. When
it is set to ``median``, the threshold is applied to the ``Median
Percentile`` column.

When the ``--percentile-threshold`` flag is set, the candidate inclusion strategy can be
specified by using the ``--percentile-threshold-strategy`` parameter. The parameter has two
options ``conservative`` (default) and ``exploratory``. The 'conservative' option requires a candidate
to pass BOTH the binding threshold and percentile threshold, while the 'exploratory' option requires
a candidate to pass EITHER the binding threshold or percentile threshold.

By default, entries with ``NA`` values will be included in the output. This
behavior can be turned off by using the ``--exclude-NAs`` flag.

Expand Down
9 changes: 8 additions & 1 deletion docs/pvacfuse/output_files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ provided to the pVACfuse run:
* - ``--percentile-threshold``
- When set, use this threshold to filter epitopes on the %ile MT score in addition to having to meet the binding threshold.
- None
* - ``--percentile-threshold-strategy``
- Specify the candidate inclusion strategy. The ``conservative`` option requires a candidate to pass BOTH the binding threshold
and percentile threshold (if set). The ``exploratory`` option requires a candidate to pass EITHER the binding threshold or
the percentile threshold.
- conservative
* - ``--read-support``
- The threshold used for filtering epitopes on the Read Support.
- 5
Expand Down Expand Up @@ -317,7 +322,9 @@ Criteria Details
* - Binding Criteria
- Pass if Best Peptide is strong binder
- ``IC50 MT < binding_threshold`` and ``%ile MT < percentile_threshold``
(if ``--percentile-threshold`` parameter is set)
(if ``--percentile-threshold`` parameter is set and 'conservative' ``--percentile-threshold-strategy`` is used) or
``IC50 MT < binding_threshold`` or ``%ile MT < percentile_threshold``
(if 'exploratory' ``--percentile-threshold-strategy`` is used)
* - Read Support Criteria
- Pass if the variant has read support
- ``Read Support < read_support``
Expand Down
6 changes: 6 additions & 0 deletions docs/pvacseq/filter_commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ to ``lowest``, this threshold is applied to the ``Best MT Percentile`` column. W
it is set to ``median``, the threshold is applied to the ``Median MT
Percentile`` column.

When the ``--percentile-threshold`` flag is set, the candidate inclusion strategy can be
specified by using the ``--percentile-threshold-strategy`` parameter. The parameter has two
options ``conservative`` (default) and ``exploratory``. The 'conservative' option requires a candidate
to pass BOTH the binding threshold and percentile threshold, while the 'exploratory' option requires
a candidate to pass EITHER the binding threshold or percentile threshold.

By default, entries with ``NA`` values will be included in the output. This
behavior can be turned off by using the ``--exclude-NAs`` flag.

Expand Down
11 changes: 9 additions & 2 deletions docs/pvacseq/output_files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,11 @@ To tier the Best Peptide, several cutoffs can be adjusted using arguments provid
* - ``--percentile-threshold``
- When set, use this threshold to filter epitopes on the %ile MT score in addition to having to meet the binding threshold.
- None
* - ``--percentile-threshold-strategy``
- Specify the candidate inclusion strategy. The ``conservative`` option requires a candidate to pass BOTH the binding threshold
and percentile threshold (if set). The ``exploratory`` option requires a candidate to pass EITHER the binding threshold or
the percentile threshold.
- conservative
* - ``--tumor-purity``
- Value between 0 and 1 indicating the fraction of tumor cells in the tumor sample. Information is used for a simple estimation of
whether variants are subclonal or clonal based on VAF. If not provided, purity is estimated directly from the VAFs.
Expand Down Expand Up @@ -483,9 +488,11 @@ Criteria Details
.. list-table::

* - Binding Criteria
- Pass if Best Peptide is a strong binder
- Pass if Best Peptide is strong binder
- ``IC50 MT < binding_threshold`` and ``%ile MT < percentile_threshold``
(if ``--percentile-threshold`` parameter is set)
(if ``--percentile-threshold`` parameter is set and 'conservative' ``--percentile-threshold-strategy`` is used) or
``IC50 MT < binding_threshold`` or ``%ile MT < percentile_threshold``
(if 'exploratory' ``--percentile-threshold-strategy`` is used)
* - Expression Criteria
- Pass if Best Transcript is expressed
- ``Allele Expr > trna_vaf * expn_val``
Expand Down
6 changes: 6 additions & 0 deletions docs/pvacsplice/filter_commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ to ``lowest``, this threshold is applied to the ``Best MT Percentile`` column. W
it is set to ``median``, the threshold is applied to the ``Median MT
Percentile`` column.

When the ``--percentile-threshold`` flag is set, the candidate inclusion strategy can be
specified by using the ``--percentile-threshold-strategy`` parameter. The parameter has two
options ``conservative`` (default) and ``exploratory``. The 'conservative' option requires a candidate
to pass BOTH the binding threshold and percentile threshold, while the 'exploratory' option requires
a candidate to pass EITHER the binding threshold or percentile threshold.

By default, entries with ``NA`` values will be included in the output. This
behavior can be turned off by using the ``--exclude-NAs`` flag.

Expand Down
11 changes: 9 additions & 2 deletions docs/pvacsplice/output_files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,11 @@ To tier the Best Peptide, several cutoffs can be adjusted using arguments provid
* - ``--percentile-threshold``
- When set, use this threshold to filter epitopes on the %ile MT score in addition to having to meet the binding threshold.
- None
* - ``--percentile-threshold-strategy``
- Specify the candidate inclusion strategy. The ``conservative`` option requires a candidate to pass BOTH the binding threshold
and percentile threshold (if set). The ``exploratory`` option requires a candidate to pass EITHER the binding threshold or
the percentile threshold.
- conservative
* - ``--tumor-purity``
- Value between 0 and 1 indicating the fraction of tumor cells in the tumor sample. Information is used for a simple estimation of
whether variants are subclonal or clonal based on VAF. If not provided, purity is estimated directly from the VAFs.
Expand Down Expand Up @@ -427,9 +432,11 @@ Criteria Details
.. list-table::

* - Binding Criteria
- Pass if Best Peptide is a strong binder
- Pass if Best Peptide is strong binder
- ``IC50 MT < binding_threshold`` and ``%ile MT < percentile_threshold``
(if ``--percentile-threshold`` parameter is set)
(if ``--percentile-threshold`` parameter is set and 'conservative' ``--percentile-threshold-strategy`` is used) or
``IC50 MT < binding_threshold`` or ``%ile MT < percentile_threshold``
(if 'exploratory' ``--percentile-threshold-strategy`` is used)
* - Expression Criteria
- Pass if Best Transcript is expressed
- ``Allele Expr > trna_vaf * expn_val``
Expand Down
Loading

0 comments on commit 337358c

Please sign in to comment.