1. File input and output if-then-else Genome 559: Introduction to Statistical and Computational Genomics Prof. William Stafford Noble 2. File input and output 3. Opening…