text: user12540: Originally- I was looking if in at least one of these genes were expressed:
  test1 <- subset(myData,
                    (KLRC1 > 0) | (KIR2DL1 > 0) | 
                  (KIR2DL3 > 0) | (KIR2DL4 > 0) |
                  (KIR3DL1 > 0) | (KIR3DL2 > 0) | (KIR3DL3 > 0), slot = "data")
  
  Now- I would like to subset if expressed in at least two of these genes- is this possible with the subset function?
  
  user3541: With a little bit of workaround:
  i) Add a new column to the data slot (only because your original subset() call  does so but it can be raw counts or any other data matrix in your Seurat object). rowSums() determines how many non-zero counts you have.
  df$non_zero <- rowSums(cbind(df$gene1 > 0, df$gene2 > 0, df$gene3 > 0, ...)) > 1
  
  Change df with the your data slot, should be sth like YourSeuratObject@...$data.
  ii) Subset the newly modified data slot, basically treating the new column as another gene. Be careful not to use this column in preprocessing steps like normalization.
  YourSeuratObject <- subset(YourSeuratObject, non_zero > 1), slot = "data")
  
  
original_text: 12540: <p>Originally- I was looking if in at least one of these genes were expressed:</p>
  <pre><code>test1 &lt;- subset(myData,
                    (KLRC1 &gt; 0) | (KIR2DL1 &gt; 0) | 
                  (KIR2DL3 &gt; 0) | (KIR2DL4 &gt; 0) |
                  (KIR3DL1 &gt; 0) | (KIR3DL2 &gt; 0) | (KIR3DL3 &gt; 0), slot = &quot;data&quot;)
  </code></pre>
  <p>Now- I would like to subset if expressed in at least two of these genes- is this possible with the subset function?</p>
   3541: <p>With a little bit of workaround:</p>
  <p>i) Add a new column to the data slot (only because your original subset() call  does so but it can be raw counts or any other data matrix in your Seurat object). <code>rowSums()</code> determines how many non-zero counts you have.</p>
  <pre><code>df<span class="math-container">$non_zero &lt;- rowSums(cbind(df$</span>gene1 &gt; 0, df<span class="math-container">$gene2 &gt; 0, df$</span>gene3 &gt; 0, ...)) &gt; 1
  </code></pre>
  <p>Change df with the your data slot, should be sth like <code>YourSeuratObject@...$data</code>.</p>
  <p>ii) Subset the newly modified data slot, basically treating the new column as another gene. Be careful not to use this column in preprocessing steps like normalization.</p>
  <pre><code>YourSeuratObject &lt;- subset(YourSeuratObject, non_zero &gt; 1), slot = &quot;data&quot;)
  </code></pre>
  