A Web-Server of Cell Type Discrimination System
Discriminating cell types is a daily request for stem cell biologists. However, there is not a user-friendly system available to date for public users to discriminate the common cell types, embryonic stem cells (ESCs), induced pluripotent stem cells (iPSCs), and somatic cells (SCs). Here, we develop WCTDS, a web-server of cell type discrimination system, to discriminate the three cell types and their subtypes like fetal versus adult SCs. WCTDS is developed as a top layer application of our recent publication regarding cell type discriminations, which employs DNA-methylation as biomarkers and machine learning models to discriminate cell types. Implemented by Django, Python, R, and Linux shell programming, run under Linux-Apache web server, and communicated through MySQL, WCTDS provides a friendly framework to efficiently receive the user input and to run mathematical models for analyzing data and then to present results to users. This framework is flexible and easy to be expended for other applications. Therefore, WCTDS works as a user-friendly framework to discriminate cell types and subtypes and it can also be expended to detect other cell types like cancer cells.
Induced pluripotent stem cells (iPSCs) and embryonic stem cells (ESCs) provide important resources for medical research and applications . In a stem cell research laboratory, biologists face daily the request for discriminating iPSCs, ESCs, and somatic cells (SCs). However, a user-friendly discriminant system to fill this task still remains to be further developed.
Traditional approaches like those based on single antibody (e.g., OCT4) unlikely provide a satisfactory result due to their low sensitivity and the high similarity between iPSC and ESCs . Cluster analyses based on global gene expression signatures have been developed to discriminate SCs from pluripotent cells (PCs) [3–6], including iPSCs and ESCs, but this system cannot be used to discriminate iPSCs and ESCs because the gene signatures are not consistently expressed across different cell lines and conditions [5–7] and clustering is associated with the low sensitivity in determining classification .
Recently, we developed a quantitative discriminant system to discriminate these three cell types and their subtypes . The system contains DNA-methylation biomarkers and two mathematical models, artificial neural network (ANN) and support vector machines (SVM). When appropriate biomarkers are applied, this system can discriminate SCs from PCs with 100% accuracy and can distinguish ESCs from iPSCs with an accuracy of 95%. Furthermore, this system can even accurately discriminate the subtypes of cells, such as female and male iPSCs and fetal and adult SCs . Therefore, this system can be used as a framework for discriminating the three cell types and subtypes. However, running this system requires computational skills and this system could not be used directly by public users because the user input and the discrimination functions for dealing with user input have not been implemented. Here, we developed a web-server, WCTDS, to provide a user-friendly interface to allow users without any computer background to easily discriminate three cell types and their subtypes.
2. Materials and Methods
The WCTDS has been implemented by using Django web framework (https://www.djangoproject.com/), R 3.0 (http://www.r-project.org/), Python 2.7, and Linux shell programming, and it runs under Linux-Apache web server and mod_wsgi module. MySQL is used to build a database for communicating between user input and the data storage. Python and Django are used to implement the web interface. The whole software runs under Linux shell. The computational core, including mathematical models, data processes, and result generation, is implemented by R, which was detailed in our previous publication . To speed up the computation, parallel computation was implemented to run the mathematical models.
To reduce the complexity of its usage, WCTDS runs all functions and computations behind the screen under Linux shell and only requires a simple data frame as input. The submitted data frame is directly passed by Python functions to R serial functions, including quality check, matrix preparation, parallel computation of math models, result summary, graph plots, and compressing all results in a zip file, which is sent back to web server coded by Python and Django for user download.
3. Results and Discussion
3.1. Overall View of WCTDS
WCTDS enables biologists without any computer backgrounds to perform cell type discriminations. WCTDS provides a user-friendly interface (Figure 1(a)) to receive a single input from users and it automatically finishes the entire discrimination processes. WCTDS runs all computational functions and multiple data processes behind the web interface under Linux shell. Typically, WCDTS first discriminates somatic cells against pluripotent stem cells (iPSCs and ESCs), then iPSCs versus ESCs, and then cell sub-type (Figure 1(b)). These steps move smoothly and efficiently because WCTDS embeds multiple computer languages, including Python, R, and Linux shell scripts (Section 2). WCTDS is also powered by Django web framework and MySQL database, which make it dynamic and flexible.
3.2. Features of WCTDS
The WCTDS not only includes all features that we previously published but also contains a friendly web interface for input and output as well as an implementation of a discriminant function for discriminating any user input data. Briefly, WCTDS currently at least includes the following primary features.(i)A web submission form that is implemented in Python and allows a large file to submit fast.(ii)Submitted files are transmitted to a file that can be accepted by R codes, which is running under Linux shell that speeds up the operation.(iii)Convert the chromosome coordinates to the biomarker IDs.(iv)Two mathematical models, ANN and SVM, are run in parallel to discriminate cell types, ESCs, iPSCs, and SCs, and their subtypes including fetal and adult somatic cells and female and male stem cells.(v)Random samples would be used when necessary to allow users to compare their samples against the random samples.(vi)The probability of discriminating samples was calculated and reported in text table and pdf figure.(vii)All final results including tables and figures will be compressed in a zip file and a dynamic web-link that will be provided to download the zip file if a run is successful.(viii)A friendly reminder when jobs are in queue and done.(ix)Exception handling when errors and exceptions occur for inputs.
3.3. Cell Type Discrimination
To improve the accuracy of discriminating a cell type or subtype, WCTDS uses an array of biomarkers to discriminate an input sample. By default, WCTDS selects 50% of total input biomarkers as a start point and uses the total input biomarkers as the end point to run the discriminant models . For example, if a user inputs a data frame that contains 100 valid biomarkers for discriminating iPSCs versus ESCs, the system sorts the biomarkers and automatically selects the first 50 (50% of 100) as the start point to run the discriminant models, these discriminant processes runs until total 100 valid biomarkers are used up. After that, the probability of this sample in this group (iPSC and ESCs in this case) was calculated and cell type (iPSCs or ESCs in this case) would be assigned to the sample in basis of higher probability (Figure 2).
3.4. Availability and User Manual
(i)Program name for web search engines is WCTDS.(ii)Project home page is http://www.janywa.org/software/wctds/.(iii)Operating systems is platform independent.(iv)Requirements to run are any internet web-browser.(v) No installation is needed.(vi)Running time: normally it takes around 10 minutes to run 100 samples, but, when jobs are in queue, it might take hours.(vii)Running WCTDS: a tab-delimited file containing user’s DNA-methylation data is required to run. In the data, the first column of the data frame represents biomarker IDs, followed by one or more data columns containing sample DNA methylation data. If chromosome coordinates, instead of biomarkers IDs, are available, these chromosome coordinates can be converted into the biomarkers IDs (Figure 1(a)) . The sample names must be labeled as column names (Figure 1(a)). A completed example could be found in the project home pages as shown above. In addition, some basic user info is required to fill the online form before running data. When input data is ready, users simply browse and select an input file from user’s local computer and click the “upload and analysis” icon as shown online, and the program would start to run.(viii)Result reports: after successfully running, samples within the same cell type and sub-type will be grouped together. A summary file will be generated and reported to users in two file formats, tab-delimited text files and figure files in pdf file format for each cell type and subtype. The tab-delimited file contains sample discrimination info, including three columns, respectively, which represent sample name, predicted cell type, and estimated probability (Figure 3(a)). The pdf figure file plots the estimated probability for each sample in each cell type and subtype (Figure 3(b)).(ix)Result to download: all results would be packaged together into a zip file after being successfully run and a dynamic link linked to this zip file would show up for downloading if users keep their browsers open when running WCTDS. If users close their browsers, they can still download the zip package directly via http://www.janywa.org/download/yourFullFileName (e.g., myTestData.txt) after being done.
3.5. Flexibility and Expansion
WCTDS is implemented by Django web framework and Python and communicated by MySQL database. This implementation makes WCTDS flexible and easily expansible. WCTDS can therefore work as a base of framework to be expanded for other applications like cancer cell type discrimination. We are reusing the codes of mathematical models and are expanding this framework base to include a new system for discriminating cancers like ovarian cancer subtypes. We also welcome other scientists to use the framework to develop their applications and to add their applications into this framework in the web server.
We develop a web server, WCTDS, for public users to easily discriminate their cell type samples. Although the software is written in multiple computer languages including Python and R, running this system does not require any computational background. Users simply submit a tab-delimited file containing the testing data via a web submission form and the system takes care of all computational tasks and return results to be downloaded following a web link. In addition, implemented by Python-Django framework, WCTDS is flexible and expansible and it can serve as a framework to be expanded for other applications. Thereafter, this WCTDS is a user-friendly system to discriminate cell types and subtype and it can be applied to discriminate cell types in any biological experiments, not limited to stem cell researches.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
The authors contributed equally to this work.
The authors specially thank Drs. Chunxiao Zhou and Ying Du for discussions and suggestions.
K. Takahashi, K. Tanabe, M. Ohnuki et al., “Induction of pluripotent stem cells from adult human fibroblasts by defined factors,” Cell, vol. 131, no. 5, pp. 861–872, 2007.View at: Publisher Site | Google Scholar
B. Goldman, “Magic marker myths,” Nature Reports Stem Cells, vol. 2008, p. 26, 2008.View at: Google Scholar
F.-J. Müller, L. C. Laurent, D. Kostka et al., “Regulatory networks define phenotypic classes of human stem cell lines,” Nature, vol. 455, no. 7211, pp. 401–405, 2008.View at: Publisher Site | Google Scholar
F.-J. Müller, B. M. Schuldt, R. Williams et al., “A bioinformatic assay for pluripotency in human cells,” Nature Methods, vol. 8, no. 4, pp. 315–317, 2011.View at: Publisher Site | Google Scholar
A. M. Newman and J. B. Cooper, “Lab-specific gene expression signatures in pluripotent stem cells,” Cell Stem Cell, vol. 7, no. 2, pp. 258–262, 2010.View at: Publisher Site | Google Scholar
M. G. Guenther, G. M. Frampton, F. Soldner et al., “Chromatin structure and gene expression programs of human embryonic and induced pluripotent stem cells,” Cell Stem Cell, vol. 7, no. 2, pp. 249–257, 2010.View at: Publisher Site | Google Scholar
A. Wang, K. Huang, Y. Shen et al., “Functional modules distinguish human induced pluripotent stem cells from embryonic stem cells,” Stem Cells and Development, vol. 20, no. 11, pp. 1937–1950, 2011.View at: Google Scholar
D. R. Goldstein, D. Ghosh, and E. M. Conlon, “Statistical issues in the clustering of gene expression data,” Statistica Sinica, vol. 12, no. 1, pp. 219–240, 2002.View at: Google Scholar
A. Wang, Y. Du, Q. He, and C. Zhou, “A quantitative system for discriminating induced pluripotent stem cells, embryonic stem cells and somatic cells,” PLoS ONE, vol. 8, Article ID e56095, 2013.View at: Google Scholar