def passes_filter_ucsc(segment):
    """Decide whether segment passes filters for UCSC data."""
    if not segment.attrs['transcript_id'].startswith('NM'):
        return False
    if segment.attrs['gene_id'].startswith('LOC'):
        return False
    return True
