text: user6317: a. Is there a SAM flag that specifies all reads?
  b. Is there a SAM flag that specifies none of the reads?
  So that if I run samtools view -f (a) -F (b)
  the result will be all reads of the file (as if omitting the specification)  ?
  
  user-1: Instead of doing this kind of tweaking I would write my script in a way that these options are passed as strings that can be empty. Something like:
  #/ dummy syntax just for illustration:
  if(you_want_filtering){
    filter_f='-f something'
    filter_F='-F something_else'
  } else {
    filter_f=filter_F=''
  }
  
  samtools view (...) ${filter_f} ${filter_F}
  
  So if you want all reads then make these strings empty. That is far more generic than your idea because it can well be that the flag values you need do not exist.
  
original_text: 6317: <p>a. Is there a SAM flag that specifies all reads?
  b. Is there a SAM flag that specifies none of the reads?</p>
  <p>So that if I run samtools view -f (a) -F (b)
  the result will be all reads of the file (as if omitting the specification)  ?</p>
   -1: <p>Instead of doing this kind of tweaking I would write my script in a way that these options are passed as strings that can be empty. Something like:</p>
  <pre><code>#/ dummy syntax just for illustration:
  if(you_want_filtering){
    filter_f='-f something'
    filter_F='-F something_else'
  } else {
    filter_f=filter_F=''
  }
  
  samtools view (...) <span class="math-container">${filter_f} $</span>{filter_F}
  </code></pre>
  <p>So if you want all reads then make these strings empty. That is far more generic than your idea because it can well be that the flag values you need do not exist.</p>
  