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

Description Usage Arguments Value

View source: R/utils.R

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

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


BUSpaRse documentation built on March 3, 2021, 2:01 a.m.