Session 18: Practicing with JSON and API Rest - myTeachingURJC/2018-19-PNE GitHub Wiki

  • Goals:
    • Practicing with JSON and the API REST
    • Reading information from the Ensembl project
    • Face our first Challenge!
  • Duration: 2h
  • Date: Week 9: Wednesday, March-20th-2019

Contents

Practice 7

  • Place all the files in your P7 Folder in your 2018-19-PNE repo in github
  • Review the Ensemble database, from practice 0, to get familiar with it
  • Challenge: Build a python client that connects to the ensemble database (using its REST API) for getting the FRAT1 gene. It should perform the following calcultions:
    • How many bases are there in the FRAT1 gene?
    • How many T bases are there in the FRAT1 gene?
    • Which base is the most popular in the FRAT1 gene? What is its percentage?
    • Calculate the percentage of all the bases in the FRAT1 gene
  • This is the complete API Rest from ensembl: http://rest.ensembl.org/
  • The resource for getting a sequence is sequence/id/. Find it in the API rest and search for more information and examples
  • The ensemble project can return the information in many different formats. Remember: WE ARE USING JSON!

IMPORTANT!!

DON'T ASK QUESTIONS after 5 seconds of reading the practice!! Read it again. Think. Search. You want to be an engineer! You have to learn how to find the answer for yourself!

YES! Your are going to have many doubts! Welcome to the real world!

Authors

Credits

  • Alvaro del Castillo. He designed and created the original content of this subject. Thanks a lot :-)

License

Links