check_tag_present {BUSpaRse} | R Documentation

## Check that a tag is present in attribute field of GTF/GFF

### Description

The attribute field of GTF/GFF files are very complicated and is very inconsistent between sources. This function is to make sure that transcript and gene IDs can be extracted properly.

### Usage

    check_tag_present(tags_use, tags, error = TRUE)

### Arguments

`tags_use` | The tags to be checked.
`tags` | The tags present in attribute field.
`error` | Whether to throw an error for absent tags. If `FALSE`, then a warning will be given.

### Value

Error or warning if tag is absent.

[Package BUSpaRse version 1.4.2 Index]