I have a list of values for a bam tag called XC (say needed.txt). I would like to extract the alignments which have these values from a bam file (say bamfile.bam). I would like to use pysam to do this, but could not figure out from the documentation how to modify the samfile.fetch command for this. Could you help me the modification needed to read in the required list from needed.txt and extract the alignments. Thanks