In SelectHeaders instead of including the path to the file, only include the name of the reference since dbGaP does not like paths in headers.