Difference between revisions of "Cwong34 Week 3"

From LMU BioDB 2017
Jump to: navigation, search
(Added responses to questions, notes, the command that extracts just the answers, and an acknowledgment)
(Updated signature)
Line 41: Line 41:
 
{{Template:cwong34}}
 
{{Template:cwong34}}
  
[[User:Cwong34|Cwong34]] ([[User talk:Cwong34|talk]]) 15:09, 16 September 2017 (PDT)
+
[[User:Cwong34|Cwong34]] ([[User talk:Cwong34|talk]]) 13:59, 17 September 2017 (PDT)
  
 
[[Category:Journal Entry]]
 
[[Category:Journal Entry]]

Revision as of 20:59, 17 September 2017

Hacking a Page

With Developer Tools

Cwong34 page-hack with tools.png

Without Developer Tools

Cwong34 page-hack no tools.png

The Genetic Code

curl command

curl -d "pre_text=cgatggtacatggagtccagtagccgtagtgatgagatcgatgagctagc&submit=Submit" http://web.expasy.org/cgi-bin/translate/dna_aa

Question responses

  1. The links within ExPASy's translation server's responses are "main.css," "ga.js," and "dna_aa." They go to more sources of code for the website's process.
  2. The identifiers are: "textarea name=pre_text," which gives the location of where the input goes, and "action=/cgi-bin/translate/dna_aa," which gives the command of translating the given input. There are also other identifiers that alter the settings, which would give different outputs. "select name=output" decides the format of the output, and "select name=code" informs what kind of genetic code it is.

Commands that extract just the answers

curl -d "pre_text=cgatggtacatggagtccagtagccgtagtgatgagatcgatgagctagc&submit=Submit" http://web.expasy.org/cgi-bin/translate/dna_aa | sed "1,47d" | sed 's/<[^>]*>//g' | sed "14,50d" | sed "s/[A-E G-Z]/& /g" | sed "s/-/STOP /g" | sed "s/M/Met/g"

Notebook

Hacking a Page

For the hacking a page assignment, I went to Netflix and clicked right clicked over the main image and then clicked on "investigate." I moved my mouse over the code for the webpage until I found the image/text I wanted to replace and pasted the link to the image or typed in the text I wanted to add.

curl

We used "curl -d" to enter in the desired text for the text area and then commanded submit. To get rid of the extra code, we deleted the lines before and after the desired section and the extra stuff between brackets. We added spaces between the amino acid sequences, changed "-" to "STOP" and "M" to "Met."

Acknowledgments

  1. I met with my partner, Arash Lari, and we worked together on the curl section of the week 3 assignment.

References

  1. LMU BioDB 2017. (2017). Week 3. Retrieved September 12, 2017, from https://xmlpipedb.cs.lmu.edu/biodb/fall2017/index.php/Week_3
  2. Netflix. (2017). Retrieved September 16, 2017, from https://www.netflix.com/

cwong34

BIOL/CMSI 367-01: Biological Databases Fall 2017

Assignments

Journal Entries:

Shared Journals:

Group Project

Cwong34 (talk) 13:59, 17 September 2017 (PDT)