add input range restriction for bamcollate2 and bamtofastq