Write a program that will open a blastn

Assignment Help Computer Engineering
Reference no: EM132154798

Use any BLASTP output file.

Write a program that will open a BLASTN (nucleotide to nucleotide search) output file, parse out specific information, and produce formatted output that will be written to STDOUT (i.e. Standard Output; the terminal window / command line). Before writing your program, copy the BLASTP output file, /home/jorvis1/example_blast.txt to your home directory. Look through the file and explore the format.

Your program should start by opening the input file (you may hardcode the filename in this case), parsing and storing both the query sequence ID (from near the top of the file; look for the string following "Query=") and the query length (found on the line below the query sequence), and displaying them both to STDOUT. Add some additional characters and formatting to your output such that these two fields appear exactly like this in STDOUT:

Query ID: IREALLYLIKEPYTHON Query Length: 15

Then, it is time to parse information about the significant alignments for this query. Each alignment begins with the ">" symbol. For just the first ten hits, parse out only the accession (located between the first set of pipe symbols, | | ), length and score. For each of these hits, these three fields should then be written to STDOUT in exactly this format including capitalization, spacing, and punctuation (as shown here using the real values for the first hit; study the file to understand exactly where these values came from):

Alignment #1: Accession = ref|XM_005094338.1| (Length = 2377, Score = 1098)

You must use regular expressions to pull out precisely the parts of the file that you want, which is the definition of parsing. Hint: you will very likely need to use parentheses to put some parts of those expressions into temporary memory (m.group(1), etc.) for later use.

Do not have your regular expression search for hardcoded values; your program should be able to read another BLASTN output file and run successfully, not just this specific one.

Pay careful attention to the exact appearance of the sample output, above. Although it is a good start to be able to, at a minimum, report the requested values, your program must also strive to match the formats specified.

Verified Expert

This project is done using python programming language.Here tokens are recognized using regular expression.Python has a package named re which has built in functions to search for regular expression in the given line of text.

Reference no: EM132154798

Questions Cloud

Create a list that have the same values as the pets array : Create a list that have the same values as the pets array (just create: if you want you can display the items - your choice)
Perform a binary search on a sorted array or vector : Write a function (recursive, or not) called search which performs a binary search on a sorted array or vector.
Explain all the nonnegative floating point number : Compare the difference of 4 bits IEEE Std 754-1985 similar floating point number representation and the binary number system.
Write a program called that accepts as arguments files : Write a C++ program called that accepts as arguments two files that contain these compressed upper triangular matrices.
Write a program that will open a blastn : Write a program that will open a BLASTN (nucleotide to nucleotide search) output file, parse out specific information.
How many passes would be required to complete the sort : If you were to use a bubble sort to re-sort these elements into descending order, how many passes would be required to complete the sort?
Design a program should contain a class : If the user indicates that they are not a member, they should be prompted to enter their information for registration.
How digital platforms used to increase market penetration : MIK 304 & MEB 301 E-MARKETING STRATEGIES ASSIGNMENT - Give details on how digital platforms can be used to increase market penetration
Write a function called coffee that takes no input variables : Create an M-file named coffee.m and write a function called coffee that takes no input variables and returns no output value.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Draw the lines-shade out a feasable region

Maximize and minimize p = 2x-y with respect to x+y ≥ 2, x+y ≤ 10, x-y ≥ -2 and x-y ≤ 2. (Draw the lines, shade out a feasable region, look at boundary points)

  Will hacking and breaches become more predominant

As the "Internet of Things" or as some are calling it "The Internet of Everything" evolves more and more, what do you see as the emerging technology.

  What do you think are the sources of the information jim

although the customer loyalty project at petries electronics had gone slowly at first the past few weeks had been fast

  Review problem of agile software development

Research the Internet to obtain information on one of the following: SDLC, SCM, or Agile software development. Review the critical considerations to prepare.

  Write a review on emerging application of technology

Write a review on Emerging Application of Technology in a Critical Infrastructure. This paper is the second of two Technology Reviews that you will research and write for this course.

  What is the time complexity of the algorithm

Suppose instead that wibble always returns False. What is the time complexity of the algorithm?

  Develop a problem-based strategy for creating

CE00882-4 Develop a problem-based strategy for creating and applying programmed solutions using an object-oriented paradigm - Use an object-oriented development environment in the development, testing and debugging of an object-oriented application.

  Create both these versions of your design in adobe animate

Using your multi-page presentation, create both these versions of your design in Adobe Animate. The point of this task is to present the same content to users in two different formats, and to evaluate which form of interaction they prefer.

  Write an application that converts grams to pounds

Write an application that converts grams to pounds and will display the price of product by pound. Test your application by doing a compile-time initialization.

  Prove that the plaintext used by alice is recovered by bob

Prove that the plaintext used by Alice is recovered by Bob in OFB mode. Prove that the plaintext used by Alice is recovered by Bob in CTR mode.

  Describe virtual and augmented reality

Describe virtual and augmented reality. Suggest a way in which this technology could be used in the future; either to improve a current process / procedure.

  Write down a program that inputs a word

Write down a program that inputs a word from the keyboard and determines the length of the word. Print the word using twice the length as the field width.

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