Read the contents of the file and print the name

Assignment Help Python Programming
Reference no: EM132357110

Question

In this program, you should be able to open any FASTA file by inputting the command fasta and the file name (so the command line is "fasta filename") and

1) verify that the user entered a filename and that the file can be opened. If not, print informative error messages and exit.

2) Read the contents of the file, print the name, standard sequence, reverse sequence and complement sequence.

3) limit the length of each line of sequence to 80 characters. The label line (line beginning with a ">") can be longer.

4) add the sequence length L in basepairs to the end of the sequence label line (line beginning with a ">") using a format of ">DNA name, length(#) bp"

Reference no: EM132357110

Questions Cloud

What is the difference between porosity and permeability : What is the difference between porosity and permeability? How do these characteristics of the subsurface affect the fate and transport of chemicals?
Write a program which asks user to enter an 8 digit number : Write a program which asks the user to enter an integer between 0 and 100 and outputs the sum of the digits of the number entered.
Do you think the best candidate got the job : Based on the artwork, do you think the best candidate got the job? Why or why not? Do you have insight on what this process feels like, and did you learn.
Presentation on chemical characteristics of these chemicals : Create a PowerPoint presentation on chemical characteristics of these chemicals. Include title slide, an introduction slide, at least three slides for chemical.
Read the contents of the file and print the name : Read the contents of the file, print the name, standard sequence, reverse sequence and complement sequence. Limit the length of each line of sequence.
Which three elements did you find interesting : HIS104 - Read Section 1 from this week's Webtext titled "The Americas Before the European Migrations" and review the instructor insights.
Support through the partnership of developed countries : The Millennium Development Goals were created to provide developing countries support through the partnership of developed countries.
What are the key issues for peace and stability in east asia : What are the key issues for peace and stability in East Asia in General and china-japan-US relations in particular? How should china, Japan and US respectively.
Is it possible for company to start with emergent strategy : strategic management - college of banking and financial studies - Elaborate on the strategy perspectives that represents the most appropriate explanation

Reviews

Write a Review

Python Programming Questions & Answers

  Describe an algorithm that counts the number of leaves

Describe an algorithm, relying only on the BinaryTree operations, that counts the number of leaves in a binary tree that their parents are the right child ren.

  Write a program that prompts the cashier to enter all sales

A supermarket wants to reward its best customer of each day, showing the customer's name on a screen in the supermarket.

  Design a solution to highly-repetitive computational problem

IFB104 Building IT Systems Assignment Part A: Cityscapes. Design a solution to a highly-repetitive computational problem; Produce maintainable, reusable code

  Print a line containing twice the original number

What is the code that for each of the numbers in the List1, print a line containing twice the original number. For example, List1 =[3, 1, 5] would print 6 2 10.

  Write a python run test page

Write a python run test page. The run-test page will receive a data.csv from a configure page. The video is only to show you the whole project

  Define three types of programming errors

Define three types of programming errors and explain with examples

  How many times each word has occurred in the text file

The values in this dictionary should be a count of how many times each word has occurred in the text file. Second, add the word into a data structure that is keeping track of word information for the completion process.

  Write a python function that accepts the number of feet

Write a python function that accepts the number of feet and head as input as returns the number of rabbits and number of chickens.

  Compare the functionalities of those two objects

Compare the functionalities of those two objects. What are some ways to insert, update, and remove elements from lists and dictionaries?

  Write a program in python to draw a simplified face

Write a program in Python to draw a blue triangle in a drawing window. Write a program in Python that moves the triangle in an animated movement. Write a program in Python to draw a simplified face.

  Write a Python script for the ice cream ordering system

Assignment: Below Zero - ice cream store. In this first part of Task, you should write a Python script for the ice cream ordering system

  Write an algorithm for pseudo random number generator

Question - Write an algorithm for pseudo random number generator

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd