Preview

Homework04

Good Essays
Open Document
Open Document
519 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Homework04
Java for Biotechnology Applications Homework Assignment #4

1. When data are read from a text file, you can use the BufferedReader to read one line at a time. After a line of data is read, there is no way of going back to read it again. To overcome this you can first read all the data into a structured object to store them, and then process the data later. Please use the DNA class (we have developed in the past a few weeks, which has properties of ID and seq, and the set/get methods) to develop a Java program to read in a FASTA format DNA sequence file, and parse out each sequence record into the part of ID and sequence. The ID is identified between the ">" and the "|" in the header line, and the sequence is the concatenation of all lines of the sequence part into a single string. Each DNA sequence record can then be stored into an array element of the DNA class. Use a loop in your program to prompt the user to enter a sequence ID, and if the ID exists print out the sequence. If the ID does not exist, print out a warning message. Exit the loop if the user enters “quit”. Please use the sequence file (seq.fasta) as the input file. Below is a sample output of the program: (2 points)

fastaParse.java 2. PROSITE (http://au.expasy.org/prosite/) is a database of protein domains, families and functional sites. Each PROSITE record is often associated with a pattern or profile to describe the protein domain or functional site. Please look at the record of PDOC00300 (http://prosite.expasy.org/PDOC00300) which is a GATA-type zinc finger domain that binds to DNA sites with the consensus sequence (A/T)GATA(A/G). This type of “zinc finger” domains consist of a consensus sequence of C-x2-C-x17-C-x2-C , which means one Cys, two any amino acids, one Cys, 17 any amino acids, one Cys, two any amino acids, and one Cys. Please use this consensus sequence, and write an equivalent regular expression pattern.

1) Record the regular expression

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Homework

    • 463 Words
    • 2 Pages

    The GASB provides requirements for investment pools. First, internal investment pools, which account for investments of the reporting entity, are to be spread out to the funds providing the resources, when preparing financial statements. Any governments participate in external investment pools where investment…

    • 463 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    biolofy

    • 381 Words
    • 3 Pages

    3. Translate the mRNA into amino acids. Use Table 1 as a reference. Remember, when a “stop”…

    • 381 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Homework 3

    • 830 Words
    • 4 Pages

    Molecule x blocked the ion channel receptor site so acetylcholine could not attach therefor not allowing the muscle to ultimately contract.…

    • 830 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    chem exam 3

    • 461 Words
    • 3 Pages

    23. Primary protein structure, Secondary protein structure, tertiary protein structure, and quaternary protein structure (pg314-315).…

    • 461 Words
    • 3 Pages
    Good Essays
  • Good Essays

    bi101 homework

    • 532 Words
    • 2 Pages

    4. Using the genetic code table (Fig 10.11 on p 180), take the following DNA sequence and complete the following:…

    • 532 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Revision Questions

    • 510 Words
    • 3 Pages

    1. A portion of specific DNA molecule consists of the following sequence of nucleotide triplets.…

    • 510 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Homework

    • 911 Words
    • 4 Pages

    * Harbor Beach Jacket $69.50 Beach Street Jacket $49.50 * Seal Beach Sweater EASY FIT $49.50 * First Jetty Sweater EASY FIT $44.50 * El Morro T-Shirt $17.50 $15 Belmont Shore Top EASY FIT $39.50 * San Elijo Top EASY FIT $34.50 * Manhattan Beach Top EASY FIT $39.50 * Victoria Beach Tank EASY FIT $34.50 River Jetties Top EASY FIT $34.50 * Swami's Beach Tank EASY FIT $17.50 $12 * Swami's Beach Tank EASY FIT $17.50 $12 * Cardiff Tank ONLINE ONLY $17.50 * Laguna Niguel Tank EASY FIT $19.50 $15 *…

    • 911 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Homework 1

    • 733 Words
    • 3 Pages

    Please answer the questions below. Each response should be in paragraph form. When done please submit your assignment to the Canvas drop box.…

    • 733 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    homework 1

    • 454 Words
    • 2 Pages

    This is a matching activity. You will receive the Match Risks/Threats to Solutions worksheet, which contains a numbered list of common risks and threats found in a typical IT infrastructure. You must enter the letter for the correct solution or preventative action in the blank to the right of each risk or threat.…

    • 454 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    anthropology DNA RNA

    • 254 Words
    • 2 Pages

    5. For each of the three DNA strands identified in question 4. provide the Amino Acid chains (protiens)…

    • 254 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    In biology restriction enzymes are used in several ways to modify and manipulate DNA molecules. One common use is to compare pieces of DNA from one that is unknown, with fragments of DNA from another source that the lengths are known. This process requires preparation of small fragments that are appropriate for nucleotide sequence analysis is to provide a map of the distribution of target sites. The cuts occur when palindromes show up in the DNA sequence; the different restriction endonucleases cut these different sites. This is called constructing a restriction map. In this experiment we are given an unknown DNA and use the process of DNA mapping with gel electrophoresis to compare and identify if the given DNA plasmid is of this planet and to describe what the DNA map illustrates.…

    • 1175 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Homework #4

    • 365 Words
    • 1 Page

    Responding to the philosophical dilemma of the Euthyphro, the first conclusion “What is moral is not moral because it is commanded by (the) God(s)”, the premises to support this conclusion would be from James Rachel’s chapter, “Does Morality Depend on Religion?” Rachel evidences that “according to Exodus 20:16, God commands us to be truthful. On this option, the reason we should be truthful is simply that God requires it. Apart from the divine command, truth telling is neither good nor bad. It is God’s command that makes truthfulness right”. Rachel is stating that God commands us to be not to be liars and leaving the command on the side, telling the truth is neither good nor bad but it is God’s command to make the truth right. Also, Rachel states that lying would lead to trouble but God could have given us another command. For example, being liars and it would not be a bad thing because God gave us that command. Therefore, he could give us more reasons to command the opposite so, from a point of view of a moral; God’s command is a random choice. Thus, with this conclusion, we are stuck with consequences that even most religious people would find it offensive. The second conclusion “What is moral must be moral because it is commanded by (the) God(s)”, the premises to support this conclusion would be from James Rachel’s chapter, “Does Morality Depend on Religion?” Rachel defines “God, who is infinitely wise, realizes that truthfulness is better than deceitfulness, and so he commands us to be truthful; he sees that killing is wrong, and so he commands us not to kill; and so on for all the moral rules”. Rachel means that God knows what is right for a human being so he commands us to be honest and truthful because he knows that it is wrong. If we take this option, then we would abandon the conception of right and wrong because we are leaving ourselves open to a lack of reasoning. Many religious people opinions are to accept the fact of right…

    • 365 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Homework 1

    • 435 Words
    • 2 Pages

    At the completion of this activity, learners should be able to add additional users to the system. They will also have an opportunity to verify the customization done at install time and follow a procedure to install VMware Tools.…

    • 435 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    DNA Today

    • 702 Words
    • 2 Pages

    fingerprinting is a laboratory procedure that requires six steps: (1) isolation of DNA, (2) Cutting,…

    • 702 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Genomes

    • 12175 Words
    • 106 Pages

    Describe the two experiments that led molecular biologists to conclude that genes are made of…

    • 12175 Words
    • 106 Pages
    Good Essays