11import os
2+ import sys
23import platform
34import argparse
45import 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-
377384def 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
853861if __name__ == '__main__' :
854- main ()
862+ main ()
0 commit comments