text: user4600: I want to define the identity of some cells based on a gene marker (for example the colour yellow< EYFP gene). One group of cells has the EYFP gene the other doesn't and I want to find the differential gene expression between those groups that are found on the same cell sample. Do you have any tips for a code in Seurat? Thanks
  
  user678: Take a look at the section "Finding Differentialy Expressed Feautres (cluster biomarkers)" of Seurat tutorial.
  You have to define your clusters (if not computed automatically) by modifying the ident slot of the Seurat object.
  Then you call the function FindMarkers of your Seurat object (to define markers of a given cluster against the rest) or FindAllMarkers (to look for all the combinations) 
  
original_text: 4600: <p>I want to define the identity of some cells based on a gene marker (for example the colour yellow&lt; EYFP gene). One group of cells has the EYFP gene the other doesn't and I want to find the differential gene expression between those groups that are found on the same cell sample. Do you have any tips for a code in Seurat? Thanks</p>
   678: <p>Take a look at the section <strong>"Finding Differentialy Expressed Feautres (cluster biomarkers)"</strong> of <a href="https://satijalab.org/seurat/v3.0/pbmc3k_tutorial.html" rel="nofollow noreferrer">Seurat tutorial</a>.</p>
  
  <p>You have to define your clusters (if not computed automatically) by modifying the <strong><em>ident</em></strong> slot of the Seurat object.</p>
  
  <p>Then you call the function <em>FindMarkers</em> of your Seurat object (to define markers of a given cluster against the rest) or <em>FindAllMarkers</em> (to look for all the combinations) </p>
  