




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、生物資訊程式語(yǔ)言應(yīng)用Part 7,Database Management by PHP,2,Database Management and data presentation,Database : MySql Tools : phpmyadmin Step 1 : Creating a database and tables in MySql To create a database To create a table and to define attributes Insert data (By program-Perl or manual) Step 2 : Develop a webs
2、ite for this database Selection / insertion / deletion / updating According to user requirements.,3,Flow Chart,4,Management and presentation for PubMed data,Management Selection Insertion Deletion Updating Link,Files Index.php abstract.php abstractDel.php abstractUpd.php abstractUpdInt.php abstractI
3、ns.php abstractNew.php,5,Management and presentation for PubMed data,Management Selection Insertion Deletion Updating Link,Files Index.php abstract.php abstractDel.php abstractUpd.php abstractUpdInt.php abstractIns.php abstractNew.php,6,The query frame (index.php),SQL: SHOW COLUMNS FROM article FROM
4、 summer;,7,The query frame (index.php),Send two massages (choice, text_query) to article.php Example : To select abstract and key in “interaction”.,8,Selection (article.php),Select abstract and key in “interaction”.,SELECT * FROM article where abstract like %interaction%,9,Selection (article.php) (c
5、on.),10,11,Exercise,article.php article_html.php article_php.php index.php index_html.php index_php.php To build article.php and index.php by *_php.php and *_html.php,Manage database by Phpmyadmin.,How do we manage the database by phpmyadmin? How do we manage the database by PHP?,13,14,15,16,Inserti
6、on,17,Insertion (con.),18,Updating,19,Deletion,20,Exercise,Use phpmyadmin to insert a record to article table, and write down their executing SQL. Use phpmyadmin to update a record to article table, and write down their executing SQL. Use phpmyadmin to delete a record to article table, and write dow
7、n their executing SQL.,21,Build a new frame for insertion, deletion and updating. (article.php),22,Exercise,Include insertion, updating, deletion buttons in article.php You may apply article_IDUtag.php to finish you practice.,23,Management and presentation for PubMed data,Management Selection Insert
8、ion Deletion Updating Link,Files Index.php abstract.php abstractDel.php abstractUpd.php abstractUpdInt.php abstractIns.php abstractNew.php,24,Insertion-Abstract Insert frame (article_new.php),Send two massages (pmid, year, title, abstract) to articleIns.php,25,Exercise,articleNew.php What is the tar
9、get file you want to send these massages?,26,Insertion - Insert into MySql (articleIns.php),27,Exercise,Please to finish insertion step by modifying articleIns.php.,28,Management and presentation for PubMed data,Management Selection Insertion Deletion Updating Link,Files Index.php abstract.php abstr
10、actDel.php abstractUpd.php abstractUpdInt.php abstractIns.php abstractNew.php,29,Updating (article.php),30,Updating (articleUpd.php),31,Exercise,articleUpd.php articleUpd_php.php articleUpd_php.php To build articleUpd.php and by articleUpd_php.php and articleUpd_php.php,32,Updating (con.) (articleUp
11、dInt.php),33,Exercise,Please to finish Updating step by modifying articleUpdIns.php.,34,Management and presentation for PubMed data,Management Selection Insertion Deletion Updating Link,Files Index.php abstract.php abstractDel.php abstractUpd.php abstractUpdInt.php abstractIns.php abstractNew.php,35
12、,Deletion (article.php),36,Deletion (con.) (articleDel.php),37,Exercise,Please to finish Deletion step by modifying articleDel.php.,Extract sequences from the NCBI,By user query / By FTP /refseq/H_sapiens/H_sapiens/protein/protein.fa.gz ftp.ncbi.nlm.nih.
13、gov/refseq/H_sapiens/H_sapiens/RNA/rna.fa.gz,38,Insert the sequences to database,To construct the table for the sequences. To use the program to insert the sequences in the table. Perl code (practice),39,40,Exercise,Use phpmyadmin to select , insert , update, delete a record to sequence table, and w
14、rite down their executing SQL. Modified the article%.php for the sequences table.,41,Combine article.php and articleNew.php article.php?option=add,分頁(yè),42,分頁(yè),43,To calculate particular information for sequences,Frequency 語(yǔ)法 :string substr (string string, int start , int length) 說明 : substr( )傳回 string
15、的一部份字串,由參數(shù) start和 length指定。 如果 start是正數(shù),傳回的字串將會(huì)從 string的第 start個(gè)字元開始。 Example : 如果 start是負(fù)數(shù),傳回的字串將會(huì)從 string結(jié)尾的第 start個(gè)字開始。,44,To calculate particular information for sequences,CG% Length 語(yǔ)法 :int strlen (string str) 說明 : 傳回字串 str的長(zhǎng)度。 Example : ,45,Translate the nucleotide to amino acid,$codons = subs
16、tr ($sequence, $first, $first+2);,46,Submit a sequence to blast by the interface,/Blast.cgi?PROGRAM=blastn&BLAST_PROGRAMS=megaBlast&PAGE_TYPE=BlastSearch&SHOW_DEFAULTS=on&LINK_LOC=blasthome,47,Hyperlink for the sequence id,/sites/entrez?db=gene&term= Example: http:/www.ncbi.nlm.nih.
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 漢服花田活動(dòng)方案
- 母嬰醫(yī)院活動(dòng)方案
- 水務(wù)公司節(jié)水活動(dòng)方案
- 民國(guó)臉譜活動(dòng)方案
- 民族團(tuán)結(jié)共同體活動(dòng)方案
- 油田公司慶典活動(dòng)方案
- 愛心捐贈(zèng)課件背景
- 愛國(guó)篇主題班會(huì)課件
- 智能時(shí)代下的文化科技融合:智能文化的興起與發(fā)展
- 愛勞動(dòng)愛生活課件小學(xué)生
- 建材公司成立策劃方案
- 廣告法法律培訓(xùn)課件
- ISO28000:2022供應(yīng)鏈安全管理體系
- 湖北省中小學(xué)教師高級(jí)職稱專業(yè)水平能力測(cè)試模擬題(含(附答案))
- GB/T 32247-2015低溫鐵素體球墨鑄鐵件
- GB/T 22638.4-2008鋁箔試驗(yàn)方法第4部分:表面潤(rùn)濕張力的測(cè)定
- 立訊精密研究報(bào)告
- 陰道松弛癥的整復(fù)治療演示文稿
- 注塑行業(yè)MES系統(tǒng)解決方案
- 三下開采規(guī)范2019版
- 歐式宗譜模板
評(píng)論
0/150
提交評(píng)論