Answers.Body: <p>I think the question needs improving. As the question stands pre-processing to feature selection ML (that's whats being asked).</p>
  <ul>
  <li>put the species diversity into a pandas dataframe the last column is the target (cancer vs healthy).</li>
  <li>assess a variety of ML algorithms (because they give different answers). Naive bayes, linear regression and K-nearest neighbour (KNN) are simple algorithms, easy to run and at this level fine.</li>
  <li>each have a &quot;feature selection&quot; - all features will be positive.</li>
  </ul>
  <p>At a personal level I like KNN, but avoid LR and NB.</p>
  <p>I personally would simply suggest unsupervised learning.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-08-21T03:20:09.430Z
Answers.LastActivityDate: 2023-08-21T03:20:09.430Z
Answers.UserDisplayName: M__
Body: <p>I want to build a machine learning model to predict colorectal cancer based on 16S rRNA microbiome data (stool samples).</p>
  <p>I have filtered the data using filtering approach by Duvallet(removing samples with fewer than 100 reads and OTUs with fewer than 10 reads,as well as OTUs which were present in fewer than 1% within the study) What do I have to do after the preprocessing step? How can I do the feature selection for the phenotype data and the microbiome data?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-21T03:03:34.733Z
Comments.Text: Welcome. Thanks for your question. I'm afraid this isn't how the site works. What we answer is specific technical stuff rather than advice on a project design. Preprocessing -> output of ML is an entire project. My advice is to focus on a single question supply and as much information as you can. For example is the microbiome the intestinal trait, is this bowel cancer? How are you sampling the microbiome, 16S, whole genome? You say OTUs - is that optimal taxononic units - this infers you've produced a tree.
Comments.UserDisplayName: M__
Tags: <python><metagenome><machine-learning><microbiome>
Title: Feature-selection microbiome data to build a model to predict cancer
ThreadText: # Feature-selection microbiome data to build a model to predict cancer
  
  (Asked by: username_0 on 2023-08-21)
  
  I want to build a machine learning model to predict colorectal cancer based on 16S rRNA microbiome data (stool samples).
  
  I have filtered the data using filtering approach by Duvallet(removing samples with fewer than 100 reads and OTUs with fewer than 10 reads,as well as OTUs which were present in fewer than 1% within the study) What do I have to do after the preprocessing step? How can I do the feature selection for the phenotype data and the microbiome data?
  
  **Tags:** python, metagenome, machine-learning, microbiome
  
  > **Comments:**
  > **username_1**: Welcome. Thanks for your question. I'm afraid this isn't how the site works. What we answer is specific technical stuff rather than advice on a project design. Preprocessing -> output of ML is an entire project. My advice is to focus on a single question supply and as much information as you can. For example is the microbiome the intestinal trait, is this bowel cancer? How are you sampling the microbiome, 16S, whole genome? You say OTUs - is that optimal taxononic units - this infers you've produced a tree.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-08-21. Score: 0
  
  I think the question needs improving. As the question stands pre-processing to feature selection ML (that's whats being asked).
  
  * put the species diversity into a pandas dataframe the last column is the target (cancer vs healthy).
  * assess a variety of ML algorithms (because they give different answers). Naive bayes, linear regression and K-nearest neighbour (KNN) are simple algorithms, easy to run and at this level fine.
  * each have a "feature selection" - all features will be positive.
  
  At a personal level I like KNN, but avoid LR and NB.
  
  I personally would simply suggest unsupervised learning.
  
  
  ---
  
  