搭建生物信息數據庫 | Tomcat + MySQL | Django


生物信息數據庫

搜遍全網都找不到一個開發生物信息數據庫的教程。

其實有些數據庫的工作量並不大,只是把線下的一些分析結果上傳到服務器上,供用戶搜索而已。 

網站上可視化的對象只有兩個:表格和圖片。

一些稍微復雜的結果就是network,這個有現成的插件可以實現,比較簡單。

 

開發流程

找一個類似的、自己覺得還行的數據庫網站,從模仿開始。

學會用Chrome看網頁源碼,了解其大致設計理念,實現方法。

 

安裝Tomcat

MAC下安裝配置Tomcat(小白向)

Tomcat的使用(詳細流程)

https://tomcat.apache.org/download-90.cgi

報錯:

$ sudo sh ./startup.sh
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
MacOS X does not come with Java Development Kits (JDKs) pre-installed. Run java -version in the terminal and you may be prompted to install Java. 
Unless you already have JVM installed, in which case you will see the build version number.  

安裝java,`java -version`

運行Tomcat

sudo sh ./startup.sh
#####
sh ./shutdown.sh

此時應該可以正常打開http://localhost:8080/

 

安裝MySQL

mac環境下安裝mysql

mysql基本操作命令匯總--筆記

加路徑:export PATH=/usr/local/mysql/bin:$PATH

 

JQuery安裝

JavaScript教程 

 

可視化

Datatables

HighCharts

d3

in-house R scripts

 

證書

CC Licenses 

 

開發工具

eclipse

 

重要考慮

網站流量的管理,不要被用戶的操作搞崩了。

webserver必須要考慮算法的速度,服務器性能,排隊系統。 

一定要構建出網站的本地版,迎合大數據客戶的需求。

 

Django

Django 文檔

Django 教程

安裝比較簡單,pip install django

解決遠程訪問問題,Django運行訪問項目出現的問題:DisallowedHost,修改 setting.py 文件,ALLOWED_HOSTS = ['*']

awesome-django

awesome-django-cn

`python manage.py runserver` 

 

GitHub協作開發環境

GitHub真的不只是一個code cloud而已,它是超級強大的團隊協作和版本管理的平台。

GitHub怎么合作代碼最安全?

如何使用 GitHub? - 基本操作

團隊協作中的 Github flow 工作流程 - 團隊協作

 

COPY一個網站

搜索:如何快速copy一個網站的html和css

論如何優雅的復制一個網站的所有頁面 - SiteCopy

如何扒一個網站完整的HTML+CSS源碼,讓所有網站都成為你的模板庫

如何快速克隆一個網站

 

基本的html、css、JS技能

HTML 教程

 

 

參考

示例:CancerSEA: a cancer single-cell state atlas

CancerSEA is freely available to the research community at http://biocc.hrbmu.edu.cn/CancerSEA or http://202.97.205.69/CancerSEA and requires no registration or login. CancerSEA is deployed using tomcat (version 7.0.47) and tested in Mozilla Firefox, Google Chrome, and Apple Safari browsers. All the data are stored and queried by MySQL (version 5.6.40). Tables are visualized by Datatables (version 1.10.16). Graph charts are generated by HighCharts (version 6.1.0), d3 (version 5.4.0) and in-house R scripts.

示例:FerrDb: a manually curated resource for regulators and markers of ferroptosis and ferroptosis-disease associations

Development of FerrDb

FerrDb was developed with HTML, CSS and JavaScript. JavaScript libraries jQuery (https://jquery.com/) and jQuery UI (https://jqueryui.com/) were used to enhance interactive features of the website. DataTables (https://datatables.net/) was used to display the data in tables. Cytoscape.js was used to visualize regulation networks on the web page (11). Annotation data sets were stored in JSON files, which were used as the core database to drive FerrDb. To keep gene symbols in FerrDb consistent with those in the HGNC database (https://www.genenames.org/), HGNC’s REST API (application programming interface) was used to verify genes in FerrDb. The FerrDb website was hosted by an Apache (http://www.apache.org/) web server that was deployed as an Amazon AWS EC2 instance (https://aws.amazon.com/) running Ubuntu 16.04 LTS (https://ubuntu.com/).

示例:A machine-compiled database of genome-wide association studies

 

 

http://mulinlab.org/vsampler/index.html 

http://biocc.hrbmu.edu.cn/CancerSEA/home.jsp

http://www.zhounan.org/ferrdb/

http://gwaskb.stanford.edu/

 

 

練手教程

如何用初級的JavaWeb知識寫一個較簡單的網站(一)

如何用初級的JavaWeb知識寫一個較簡單的網站(二)

如何用初級的JavaWeb知識寫一個較簡單的網站(三)

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM