added 'extract_rows_from_file' for subsetting a file based on entries in a column