cpp_scripts/Mapping_tools/removeUnmapped.c
/**                                                                                   
 * Check if read is properly mapped                                                      
 * @return true if read mapped, false otherwise                                           
 */
Check if read is properly mapped
@return true if read mapped, false otherwise
Check if read is properly mapped @return true if read mapped false otherwise
static bool is_mapped(const bam1_core_t *core, int minQual)
{
  if ((core->flag&BAM_FUNMAP) || (core->qual < minQual)) {
    return false;
  }
  return true;
}
static bool is_mapped ( const bam1_core_t * core , int minQual ) { if ( ( core -> flag & BAM_FUNMAP ) || ( core -> qual < minQual ) ) { return false ; } return true ; }
Check if read is properly mapped
 @return true if read mapped, false otherwise
Check if read is properly mapped @return true if read mapped false otherwise