def check_rna_file(rna_file):
try:<EOL><INDENT>subprocess.check_output(['<STR_LIT>', '<STR_LIT>'])<EOL><DEDENT>except OSError:<EOL><INDENT>log.error('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>raise<EOL><DEDENT>try:<EOL><INDENT>is_bam_valid(rna_file)<EOL><DEDENT>except ValueError:<EOL><INDENT>log.error('<STR_LIT>')<EOL>raise<EOL><DEDENT>
Check if bedtools is available and if the given RNA-Seq bam file is valid.