code: def nfilter1(data, reps):
      
      if sum(reps) >= data.paramsdict["mindepth_majrule"] and \
          sum(reps) <= data.paramsdict["maxdepth"]:
          return 1
      else:
          return 0
docs: applies read depths filter