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

View source: R/utils.R

check_tag_presentR 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.


lambdamoses/BUStoolsR documentation built on Aug. 1, 2024, 6:30 a.m.