Bioseparation using affinity techniques