Skip to content
Snippets Groups Projects
Select Git revision
  • 544415ffa9ecb8428bd2b05bb695db324529cb1d
  • master default protected
  • develop protected
  • cmake_boost_refactor
  • ubuntu_ci
  • mmtf
  • non-orthogonal-maps
  • no_boost_filesystem
  • data_viewer
  • 2.11.1
  • 2.11.0
  • 2.10.0
  • 2.9.3
  • 2.9.2
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.0
  • 2.6.1
  • 2.6.0
  • 2.6.0-rc4
  • 2.6.0-rc3
  • 2.6.0-rc2
  • 2.6.0-rc
  • 2.5.0
  • 2.5.0-rc2
  • 2.5.0-rc
  • 2.4.0
  • 2.4.0-rc2
29 results

export_file_viewer.cc

Blame
  • cli.py 1.11 KiB
    # -*- coding: utf-8 -*-
    """
    Changed on Fr Dec 23 16:49:50 2022
    
    @author: RobinC
    """
    import argparse
    import logging
    import main
    
    class CLI():
        def create_parser(self):
            """This function creates the parser"""
    
            parser = argparse.ArgumentParser(
                prog = 'PrimingSitePredictor',
                description = 'Takes a cutoff energy and the predicts location of priming sites of transcripts',
                epilog = 'To predict or not to predict')
            parser.add_argument('--float', type=float, required=True, help='A energy-cutoff float number')
            parsed_args = parser.parse_args()
            energy_cutoff = parsed_args.float
            return energy_cutoff
    
        def letsgo(self):
            """This function creates a parser and prints the energycutoff"""
            energy_cutoff = CLI.create_parser()
            print(f"Your energy cutoff is {energy_cutoff}")
    
    if __name__ == '__main__':
        logging.basicConfig(
            format='[%(asctime)s: %(levelname)s] %(message)s (module "%(module)s")',
            level=logging.INFO,
            )
        LOG = logging.getLogger(__name__)
        main()