@@ -159,6 +159,13 @@ def export():
159159 type = float ,
160160 help = "[format: matrix/legacy] Maximum PEP to consider for good alignments when use_alignment is enabled." ,
161161)
162+ @click .option (
163+ "--exclude-decoys/--no-exclude-decoys" ,
164+ "exclude_decoys" ,
165+ default = True ,
166+ show_default = True ,
167+ help = "Exclude decoy entries from the exported results. Use --no-exclude-decoys to retain decoys." ,
168+ )
162169@measure_memory_usage_and_time
163170def export_tsv (
164171 infile ,
@@ -176,6 +183,7 @@ def export_tsv(
176183 max_global_protein_qvalue ,
177184 use_alignment ,
178185 max_alignment_pep ,
186+ exclude_decoys ,
179187):
180188 """
181189 Export Proteomics/Peptidoform TSV/CSV tables
@@ -207,6 +215,7 @@ def export_tsv(
207215 max_global_protein_qvalue = max_global_protein_qvalue ,
208216 use_alignment = use_alignment ,
209217 max_alignment_pep = max_alignment_pep ,
218+ exclude_decoys = exclude_decoys ,
210219 )
211220
212221 reader = ReaderDispatcher .get_reader (config )
@@ -329,6 +338,13 @@ def export_tsv(
329338 type = click .Choice (["none" , "median" , "medianmedian" , "quantile" ]),
330339 help = "[format: matrix/legacy] Normalization method to apply to the quantification matrix." ,
331340)
341+ @click .option (
342+ "--exclude-decoys/--no-exclude-decoys" ,
343+ "exclude_decoys" ,
344+ default = True ,
345+ show_default = True ,
346+ help = "Exclude decoy entries from the exported matrix. Use --no-exclude-decoys to retain decoys." ,
347+ )
332348@measure_memory_usage_and_time
333349def export_matrix (
334350 infile ,
@@ -347,6 +363,7 @@ def export_matrix(
347363 top_n ,
348364 consistent_top ,
349365 normalization ,
366+ exclude_decoys ,
350367):
351368 """
352369 Export Proteomics/Peptidoform Quantification Matrix
@@ -381,6 +398,7 @@ def export_matrix(
381398 top_n = top_n ,
382399 consistent_top = consistent_top ,
383400 normalization = normalization ,
401+ exclude_decoys = exclude_decoys ,
384402 )
385403
386404 reader = ReaderDispatcher .get_reader (config )
0 commit comments