Added ability to pass function when indexing bioseq collection; add a partition biosequence function