Skip to content

Commit c9140b7

Browse files
Merge pull request #375 from theGreatHerrLebert/feature/intensity-variation-timsim-dda
Feature/intensity variation timsim dda
2 parents 70129db + 83bfa34 commit c9140b7

6 files changed

Lines changed: 21 additions & 13 deletions

File tree

imspy/imspy/simulation/timsim/simulator.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import sys
23
import platform
34
import argparse
45
import time
@@ -77,7 +78,7 @@ def build_arg_parser() -> argparse.ArgumentParser:
7778
Builds and returns the command line argument parser.
7879
"""
7980
parser = argparse.ArgumentParser(
80-
description='🦀💻 TIMSIM 🔬🐍 - Run a proteomics experiment simulation with PASEF-like acquisition '
81+
description='TIMSIM - Run a proteomics experiment simulation with PASEF-like acquisition '
8182
'on a BRUKER TimsTOF.'
8283
)
8384

@@ -368,16 +369,23 @@ def check_required_args(args: argparse.Namespace, parser: argparse.ArgumentParse
368369
parser.error("sigma_lower_rt must be less than sigma_upper_rt")
369370
if args.k_lower_rt >= args.k_upper_rt:
370371
parser.error("k_lower_rt must be less than k_upper_rt")
371-
372+
373+
374+
def banner(use_unicode=True):
375+
if use_unicode:
376+
return "🦀💻 TIMSIM 🔬🐍 - Proteomics Simulation Engine"
377+
else:
378+
return "TIMSIM - Proteomics Simulation Engine"
379+
372380

373381
# ----------------------------------------------------------------------
374382
# Main Execution
375383
# ----------------------------------------------------------------------
376-
377384
def main():
378385

379-
print("🦀💻 TIMSIM 🔬🐍 - Run a proteomics experiment simulation with PASEF-like acquisition on a BRUKER TimsTOF.")
380-
print("Version: 0.3.20")
386+
print(banner(sys.stdout.isatty()))
387+
388+
print("Version: 0.3.21")
381389
print("Author: David Teschner, JGU Mainz, GitHub: @theGreatHerrLebert")
382390
print("License: MIT")
383391

@@ -851,4 +859,4 @@ def main():
851859
)
852860

853861
if __name__ == '__main__':
854-
main()
862+
main()

imspy/imspy/timstof/dbsearch/imspy_dda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def main():
8686
check_memory(limit_in_gb=16)
8787

8888
# use argparse to parse command line arguments
89-
parser = argparse.ArgumentParser(description='🦀💻 IMSPY - timsTOF DDA 🔬🐍 - PROTEOMICS IMS DDA data analysis '
89+
parser = argparse.ArgumentParser(description='IMSPY - timsTOF DDA - PROTEOMICS IMS DDA data analysis '
9090
'using imspy and sagepy.')
9191

9292
# Required string argument for path of bruker raw data

imspy/imspy/timstof/dbsearch/utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
def check_memory(
2929
limit_in_gb: int = 16,
30-
msg: str = "⚠️ Warning: System has only {total_ram_gb:.2f}GB of RAM, which is below the recommended {limit_in_gb}GB."):
30+
msg: str = "Warning: System has only {total_ram_gb:.2f}GB of RAM, which is below the recommended {limit_in_gb}GB."):
3131

3232
if hasattr(os, "sysconf"):
3333
total_ram_bytes = os.sysconf("SC_PAGE_SIZE") * os.sysconf("SC_PHYS_PAGES")
@@ -36,7 +36,7 @@ def check_memory(
3636
msg = msg.format(total_ram_gb=total_ram_gb, limit_in_gb=limit_in_gb)
3737
warnings.warn(msg)
3838
else:
39-
warnings.warn("⚠️ Unable to determine system memory.")
39+
warnings.warn("Unable to determine system memory.")
4040

4141
# Run the check
4242
check_memory()

imspy/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "imspy"
3-
version = "0.3.20"
3+
version = "0.3.21"
44
description = "A Python package for analyzing timsTOF ion mobility spectrometry data, including tools for raw data acccess and simulation."
55
authors = [
66
{ name = "theGreatHerrLebert", email = "davidteschner@googlemail.com" }
@@ -19,7 +19,7 @@ dependencies = [
1919
"wandb>=0.12.1",
2020
"mokapot>=0.10.0",
2121
"sagepy>=0.3.12",
22-
"imspy-connector>=0.3.20",
22+
"imspy-connector>=0.3.21",
2323
"scipy>=1.7.1",
2424
"tqdm>=4.66",
2525
"pyarrow>=13.0",

imspy_connector/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "imspy-connector"
3-
version = "0.3.20"
3+
version = "0.3.21"
44
edition = "2021"
55

66
[lib]

imspy_connector/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "imspy_connector"
77
dependencies = [
88
"opentims-bruker-bridge>=1.1.0",
99
]
10-
version = "0.3.20"
10+
version = "0.3.21"
1111
requires-python = ">=3.11"
1212
classifiers = [
1313
"Programming Language :: Rust",

0 commit comments

Comments
 (0)