Scientific web programming Part 6 - PowerPoint PPT Presentation

1 / 24
About This Presentation
Title:

Scientific web programming Part 6

Description:

Use forms to get user's preferences. Process forms to build ... Parse XML content from RSS feeds. Add instant newsfeeds to your site. PubMed. Based on LastRSS ... – PowerPoint PPT presentation

Number of Views:74
Avg rating:3.0/5.0
Slides: 25
Provided by: bcb9
Category:

less

Transcript and Presenter's Notes

Title: Scientific web programming Part 6


1
Scientific web programmingPart 6
  • Putting it all together

2
MySQL and PHP
  • Whats the use of database?
  • If you cant offer customized views?
  • If you cant search it?
  • If you cant modify it?
  • Luckily theres PHP
  • Use forms to get users preferences
  • Process forms to build custom SQL queries

3
Where we left off
4
Getting the user involved
5
This is getting complicated
6
When things go wrong
  • What is your SQL statement is wrong?
  • Solution Mysql_error() and mysql_errno()

7
SQL error handing
8
Beyond querying
  • SQL DML SQL Data Manipulation Language
  • Querying
  • SELECT fields FROM table WHERE field
    value ORDER BY field
  • Editing
  • UPDATE table SET field value WHERE field
    value
  • Deleting
  • DELETE FROM table WHERE field value
  • Inserting
  • INSERT INTO table (field) VALUES (value)

9
Beyond data manipulation
  • SQL DDL Data Definition Language
  • Create databases, tables
  • Alter databases, tables, columns
  • Manipulate indices
  • Work with stored procedures

10
Questions before we continue?
11
Furthermore
  • Some pointers for further developing your PHP
    skills
  • PEAR standard library
  • Object oriented programming
  • Processing RSS feeds
  • JPGraph charting
  • Native code

12
PEAR
  • PHP Extension Application Repository
  • Other people have written libraries, too
  • You can download them and use them
  • http//pear.php.net/
  • Dont go re-inventing the wheel

13
PEAR packages
14
Object oriented programming
  • Advanced encapsulation
  • Useful for longer-term, large-scale projects
  • Not useful for proof-of-concept apps
  • Initially takes longer
  • The bigger and longer the project, the larger the
    pay-off
  • Every class you write gets better
  • Need a strategy for refactoring

15
OOP in NetBeans
16
RSS
  • RSS RDF Site Summary
  • RDF Resource Description Framework
  • Computer-people like TLAs
  • TLA Three-Letter Abbreviation
  • Use fopen() to read from any URL
  • Parse XML content from RSS feeds
  • Add instant newsfeeds to your site

17
PubMed
  • Based on LastRSS
  • RSS black box library for PHP
  • http//lastrss.webdot.cz/
  • Add literature feeds to your site
  • http//lab.bcb.iastate.edu/sandbox/jlv/PubMedRSS/P
    ubMedRSS.php?qArabidopsis
  • Written by John Van Hemert (jlv_at_iastate.edu)

18
Other applications
19
GraphViz
  • Graph creating library - http//www.aditus.nu/jpgr
    aph/

20
GraphViz in practice
21
I still want more!
  • You got it ?
  • Command-line utilities
  • E.g. GraphViz
  • Connectivity to .NET
  • http//us2.php.net/manual/en/book.dotnet.php
  • Connectivity to Java
  • http//us2.php.net/manual/en/book.java.php
  • PHP extension development

22
Using GraphViz
23
Where to from here?
  • Exercises on covered material
  • BCBLab involvement
  • Learn applied bioinformatics skills
  • Small projects
  • Databases, PHP, GUI design
  • Also Perl, Fortran, VBA
  • Microarrays, protein folding, ecology
  • Mentoring by graduate students

24
Questions
  • http//lab.bcb.iastate.edu/training/webdev/nmsu
Write a Comment
User Comments (0)
About PowerShow.com