You have more flexibility to implement your own function names and logic in these programs. The data files you need for this assignment can obtained from: Right-click and "Save Link As..." HUGO_genes.txt (Links to an external site.) chr21_genes.txt (Links to an external site.) Create an output directory inside your assignment4 directory called "OUTPUT" for result files, so that they will not mix with your programs. Output from your programs will be here! Your program must implement command line options for the infiles it must open, but for testing purposes it should run by default, so if no command line option is passed at the command line, the program will still run. This will help in the grading of your program. Create a Python Module called called my_io.py - You can use the same code from assignment 3's solution. Put this my_io.py Module in a subdirectory named assignment4 inside your assignment4 top-level directory (see the tree below, and see Lecture 7 on how to implement a Python module and a package). Anytime a file needs to be opened (read or write) in your programs in this assignment, the program should call on this module's function get_fh. You can then use my_io.get_fh by doing this at the top of your programs: from assignment4 import my_io # I can then use the module's get_fh() function by: fh_in = my_io.get_fh(infile1, "r") # note the function call "myio.get_fh()" from assignment4.my_io import get_fh # I can then use the module's get_fh() function by: fh_in = get_fh(infile1, "r") # note the function call "get_fh()" assignment4 ├── assignment4 | |── __init__.py # This file can be empty, and it's named __init__.py, you can do this at the terminal: touch assignment4/__init__.py | └── my_io.py ├── HUGO_genes.txt ├── OUTPUT # your output will go here (you can manually make this, i.e. your program does not need to do this │   ├── categories.txt │   └── intersection_output.txt ├── categories.py ├── chr21_gene_names.py ├── chr21_genes.txt ├── chr21_genes_categories.txt

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
  1. You have more flexibility to implement your own function names and logic in these programs.

  2. The data files you need for this assignment can obtained from:

    Right-click and "Save Link As..."
    • HUGO_genes.txt (Links to an external site.)
    • chr21_genes.txt (Links to an external site.)
  3. Create an output directory inside your assignment4 directory called "OUTPUT" for result files, so that they will not mix with your programs. Output from your programs will be here!

  4. Your program must implement command line options for the infiles it must open, but for testing purposes it should run by default, so if no command line option is passed at the command line, the program will still run. This will help in the grading of your program.

  5. Create a Python Module called called my_io.py - You can use the same code from assignment 3's solution. Put this my_io.py Module in a subdirectory named assignment4 inside your assignment4 top-level directory (see the tree below, and see Lecture 7 on how to implement a Python module and a package). Anytime a file needs to be opened (read or write) in your programs in this assignment, the program should call on this module's function get_fh. You can then use my_io.get_fh by doing this at the top of your programs:

    from assignment4 import my_io

    # I can then use the module's get_fh() function by:
    fh_in = my_io.get_fh(infile1, "r")
    # note the function call "myio.get_fh()"


    from assignment4.my_io import get_fh

    # I can then use the module's get_fh() function by:
    fh_in = get_fh(infile1, "r") # note the function call "get_fh()"


    assignment4 ├── assignment4 | |── __init__.py # This file can be empty, and it's named __init__.py, you can do this at the terminal: touch assignment4/__init__.py | └── my_io.py ├── HUGO_genes.txt ├── OUTPUT # your output will go here (you can manually make this, i.e. your program does not need to do this │   ├── categories.txt │   └── intersection_output.txt ├── categories.py ├── chr21_gene_names.py ├── chr21_genes.txt ├── chr21_genes_categories.txt └── intersection.py └── tests ├── __init__.py └── unit ├── __init__.py └── test_my_io.py # make sure to write this test, see solution to assignment 3
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps

Blurred answer
Knowledge Booster
Graphical User Interface
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education