Skip to content

Commit

Permalink
Merge pull request #42 from daichengxin/dev
Browse files Browse the repository at this point in the history
make diann2mztab optional for large-scale datasets
  • Loading branch information
ypriverol authored Dec 16, 2024
2 parents 16ae4a1 + f316ae2 commit 1ee7ee8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion quantmsutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.17"
__version__ = "0.0.18"
23 changes: 13 additions & 10 deletions quantmsutils/diann/diann2mztab.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
@click.option("--charge", "-c")
@click.option("--missed_cleavages", "-m")
@click.option("--qvalue_threshold", "-q", type=float)
@click.option("--enable_diann2mztab", "-e", is_flag=True)
@click.pass_context
def diann2mztab(
ctx,
Expand All @@ -55,6 +56,7 @@ def diann2mztab(
charge,
missed_cleavages,
qvalue_threshold,
enable_diann2mztab
):
"""
Convert DIA-NN output to MSstats, Triqler or mzTab.
Expand Down Expand Up @@ -177,16 +179,17 @@ def diann2mztab(
logger.info(f"Triqler input file is saved as {exp_out_prefix}_triqler_in.tsv")
del out_triqler

mztab_out = f"{Path(exp_design).stem}_out.mzTab"
# Convert to mzTab
diann_directory.convert_to_mztab(
report=report,
f_table=f_table,
charge=charge,
missed_cleavages=missed_cleavages,
dia_params=dia_params,
out=mztab_out,
)
if enable_diann2mztab:
mztab_out = f"{Path(exp_design).stem}_out.mzTab"
# Convert to mzTab
diann_directory.convert_to_mztab(
report=report,
f_table=f_table,
charge=charge,
missed_cleavages=missed_cleavages,
dia_params=dia_params,
out=mztab_out,
)


def _true_stem(x):
Expand Down

0 comments on commit 1ee7ee8

Please sign in to comment.