Zvanysse Week 3
From LMU BioDB 2017
Contents
Screenshots with Inspector Open
Screenshots without Inspector Open
Curling in an input
curl -d "pre_text=cgatggtacatggagtccagtagccgtagtgatgagatcgatgagctagc&submit=Submit" http://web.expasy.org/cgi-bin/translate/dna_aa
Question responses
- Yes, there are a few links that show up within the ExPASy translation server’s responses upon inspecting the page. The first is "ga.js." This is where all the javascript code is stored. Javascript code is the code that turns inputs into outputs. There are a few .css files: "sib_print.css," "base.css," and "sib.css." This is what makes the webpage look pretty. These files are joined together in the HTML code, or "/translate" page.
Extracting Answers via Command Line
curl -d "pre_text=cgatggtacatggagtccagtagccgtagtgatgagatcgatgagctagc&submit=Submit" http://web.expasy.org/cgi-bin/translate/dna_aa | sed "1,47d" | sed "14,44d" | sed 's/<[^>]*>//g' | sed "2s/[A-Z]/& /g" | sed "4s/[A-Z]/& /g" | sed "6s/[A-Z]/& /g" | sed "8s/[A-Z]/& /g" | sed "10s/[A-Z]/& /g" | sed "12s/[A-Z]/& /g" | sed "s/M/Met/g"| sed "s/-/Stop /g"
Acknowledgements
- Consulted with Blair on usage of the curl function
References
- LMU BioDB 2017. (2017). Week 3. Retrieved September 14, 2017, from https://xmlpipedb.cs.lmu.edu/biodb/fall2017/index.php/Week_3
- Manual -- curl usage explained. Retrieved September 17, 2017, from https://curl.haxx.se/docs/manual.html