<p>Interesting application. I would suggest using Python's Flask system, which is described in a few pages in O'Reilly's Programming PyTorch, chapter 8. PyTorch in Production. Django is not really recommended (don't say that on Stackoverflow however). O'Reilly do an entire book on Flask, but thats to make the site pretty.</p>

<p>Obviously, the explanation here is Deep Learning rather than ML but the basic gist will hold. You should also think about building a docker for distribution which is easy (same chapter). We're in lockdown so I don't have this book with me. </p>

<p>The <strong>difficult part</strong> will be web architecture because you shouldn't have the CPU/GPU on the same server as the quiry interface, otherwise you are prone to a denial of service attack or just sytem overload. To do this you need to consider  Representational state transfer (RESTful) and that is not easy at all (at least for me). Flask facilitates RESTful, but thats like systems admin stuff. I guess before getting into RESTful I'd see how popular your website is, but if its the same server as your institute website you'd need to be really careful because an external user could bring your institutional website down (you wouldn't be popular).</p>

CC BY-SA 4.0
2020-04-27T10:03:34.813Z
That would be very helpful. As I have to go through the book you have mentioned, I am not quite sure it is related to feature extraction or feature selection procedures. I just wanted to know that without any class labels, how can I classify a protein sequence. Such as an F-test requires class labels for statistical analysis. A query protein which is completely new and not included in my trained model's dataset, is to be classified as either positive or negative.
Sabit Ahmed
CC BY-SA 4.0
2020-04-27T09:43:50.717Z
2020-04-27T09:49:04.530Z
2020-04-27T09:49:04.530Z
M__
<p>I have created a model with SVM classifier and evaluated it with 5-fold cross-validation. The dataset was sequence data containing lysine modified sites. Now I want to build a web server where anyone can input any sequence in FASTA format. Apparently, I have no label information at this point. So how can I will be able to extract features or use any feature selection method which requires label information? How can I extract or create the test set to predict? Suppose I have used f-score feature selection method in my model and selected 50 features from the given dataset. But for web server, having no label information, how can I select 50 features from the sequence that are provided by an user and then test it with my previously trained model?</p>

<p>As being a novice in the world of bioinformatics, I am seeking the answer which might be improper for others. But it will be very much helpful for me.
I am giving some link of some papers and its corresponding web servers.</p>

<ol>
<li><p>iPTM-mLys: identifying multiple lysine PTM sites and their different type (<a href="https://academic.oup.com/bioinformatics/article/32/20/3116/2196525" rel="nofollow noreferrer">https://academic.oup.com/bioinformatics/article/32/20/3116/2196525</a>)</p>

<p>Web server link : <a href="http://www.jci-bioinfo.cn/iPTM-mLys" rel="nofollow noreferrer">http://www.jci-bioinfo.cn/iPTM-mLys</a></p></li>
<li><p>iHyd-PseCp: Identify hydroxyproline and hydroxylysine in proteins by incorporating sequence-coupled effects into general PseAAC 
(<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5190098/" rel="nofollow noreferrer">https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5190098/</a>)</p>

<p>Web server link : <a href="http://www.jci-bioinfo.cn/iHyd-PseCp" rel="nofollow noreferrer">http://www.jci-bioinfo.cn/iHyd-PseCp</a></p></li>
</ol>

CC BY-SA 4.0
2020-04-27T08:37:40.003Z
There are too many questions really and not enough background, but I presume the gist of the question is this, you've a trained model and you want to know how to turn it into a website. So really you are looking for basic information on how to reproduce your model via a website. Is that correct?
M__
CC BY-SA 4.0
2020-04-27T09:01:18.117Z
Yes, it is @Michael. Basically I am using sequence-coupling effect to extract features and ANOVA F-test to select features where label information is necessary. Therefore, to reproduce my model in a website, I have to extract the query protein sequence given by an user and apply F-test again on it and later use it for detecting the class. Is this the process or there is other rules for it? 
I have given two links that contain some background I hope.
Sabit Ahmed
CC BY-SA 4.0
2020-04-27T09:22:38.237Z
Interesting application. I would simply suggest using Flask, which is described in O'Reilly's Programming PyTorch, chapter 8. PyTorch in Production. Obviously this is Deep Learning rather than ML but the basic gist will hold. You should also think about building a docker for distribution (same chapter). We're in lockdown so I don't have this book with me.
M__
CC BY-SA 4.0
2020-04-27T09:34:40.023Z
Thanks @Michael for suggesting me a path! Hope this will work. I look forward to reading it.
Sabit Ahmed
<fasta><sequence-analysis><proteomics>
After completing the evaluation, how to predict PTM lysine or any other modification with unlabeled data for making a web server?
# After completing the evaluation, how to predict PTM lysine or any other modification with unlabeled data for making a web server?

(Asked by: username_0 on 2020-04-27)

I have created a model with SVM classifier and evaluated it with 5-fold cross-validation. The dataset was sequence data containing lysine modified sites. Now I want to build a web server where anyone can input any sequence in FASTA format. Apparently, I have no label information at this point. So how can I will be able to extract features or use any feature selection method which requires label information? How can I extract or create the test set to predict? Suppose I have used f-score feature selection method in my model and selected 50 features from the given dataset. But for web server, having no label information, how can I select 50 features from the sequence that are provided by an user and then test it with my previously trained model?

As being a novice in the world of bioinformatics, I am seeking the answer which might be improper for others. But it will be very much helpful for me.
I am giving some link of some papers and its corresponding web servers.

1. iPTM-mLys: identifying multiple lysine PTM sites and their different type (<https://academic.oup.com/bioinformatics/article/32/20/3116/2196525>)

   Web server link : <http://www.jci-bioinfo.cn/iPTM-mLys>
2. iHyd-PseCp: Identify hydroxyproline and hydroxylysine in proteins by incorporating sequence-coupled effects into general PseAAC
   (<https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5190098/>)

   Web server link : <http://www.jci-bioinfo.cn/iHyd-PseCp>

**Tags:** fasta, sequence-analysis, proteomics
> **Comments:**
> **username_1**: There are too many questions really and not enough background, but I presume the gist of the question is this, you've a trained model and you want to know how to turn it into a website. So really you are looking for basic information on how to reproduce your model via a website. Is that correct?  
> **username_0**: Yes, it is @Michael. Basically I am using sequence-coupling effect to extract features and ANOVA F-test to select features where label information is necessary. Therefore, to reproduce my model in a website, I have to extract the query protein sequence given by an user and apply F-test again on it and later use it for detecting the class. Is this the process or there is other rules for it?  I have given two links that contain some background I hope.  
> **username_1**: Interesting application. I would simply suggest using Flask, which is described in O'Reilly's Programming PyTorch, chapter 8. PyTorch in Production. Obviously this is Deep Learning rather than ML but the basic gist will hold. You should also think about building a docker for distribution (same chapter). We're in lockdown so I don't have this book with me.  
> **username_0**: Thanks @Michael for suggesting me a path! Hope this will work. I look forward to reading it.  

---

## 1 answers

### Answer by username_1 on 2020-04-27. Score: 1

Interesting application. I would suggest using Python's Flask system, which is described in a few pages in O'Reilly's Programming PyTorch, chapter 8. PyTorch in Production. Django is not really recommended (don't say that on Stackoverflow however). O'Reilly do an entire book on Flask, but thats to make the site pretty.

Obviously, the explanation here is Deep Learning rather than ML but the basic gist will hold. You should also think about building a docker for distribution which is easy (same chapter). We're in lockdown so I don't have this book with me.

The **difficult part** will be web architecture because you shouldn't have the CPU/GPU on the same server as the quiry interface, otherwise you are prone to a denial of service attack or just sytem overload. To do this you need to consider Representational state transfer (RESTful) and that is not easy at all (at least for me). Flask facilitates RESTful, but thats like systems admin stuff. I guess before getting into RESTful I'd see how popular your website is, but if its the same server as your institute website you'd need to be really careful because an external user could bring your institutional website down (you wouldn't be popular).

> **Comments:**
> **username_0**: That would be very helpful. As I have to go through the book you have mentioned, I am not quite sure it is related to feature extraction or feature selection procedures. I just wanted to know that without any class labels, how can I classify a protein sequence. Such as an F-test requires class labels for statistical analysis. A query protein which is completely new and not included in my trained model's dataset, is to be classified as either positive or negative.  

---

