Your program must use command line options: $ python3 gene_information_query.py --help Your program submission must have a subdirectory assignment5 folder inside your assignment5 working directory (like I did in assignment #4- see below). Note the __init__.py, there are 3 of them.assignment5 ├── assignment5 │ ├── __init__.py │ ├── confi

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter9: Sequential Access Files And Menus
Section: Chapter Questions
Problem 3E
icon
Related questions
Question

Your program must use command line options:
$ python3 gene_information_query.py --help

  1. Your program submission must have a subdirectory assignment5 folder inside your assignment5 working directory (like I did in assignment #4- see below). Note the __init__.py, there are 3 of them.assignment5 ├── assignment5 │ ├── __init__.py │ ├── config.py │ └── my_io.py ├── gene_information_query.py └── tests ├── __init__.py └── unit ├── __init__.py ├── test_config.py └── test_my_io.py
  2. Implement an assignment5.my_io.py to open any files. And also a test script (test_my_io.py) for the module to be tested by pytest.
  3. Implement an assignment5.config.py module to be a small configuration module. Also write a test script (test_config.py) for the module to be tested by pytest.
  4. You can use modules argparse (Links to an external site.), os (Links to an external site.), re (Links to an external site.), sys,  (Links to an external site.)or collections (Links to an external site.) if you like. You cannot use any other Python module
  5. See additional notes at the bottom of the page.
  6. Write a function (call it modify_host_name) that receives one argument: 1). A host name. This function take the host name and checks for the available conversions from common to scientific names and return the scientific name (this will be the eventual species to be used in the directory name). This function should call get_host_keywords to get the dictionary of mapped terms from the assignment5.config.py module. If the host passed in does not exist then it should call the function _print_host_directories (see below) to alert the user what directories do exist (see outputs below) and the exit the program.

    2). Write another function (Put this in my_io.py) (call it is_valid_gene_file_name) which receives one argument. 1). A file name. This function will check to make sure the given file name exists, if it does it return True else it will return False

    See the os.path.exists (Links to an external site.) in Python

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L