Make the script to require two parameters.

The script needs a bam file and a text file containing a list of chromosomes one line per chromosome.