getGFFDirectives: Get the directives from a GFF file

Description Usage Arguments Details Value GFF3 Note See Also Examples

View source: R/getGFFDirectives.R

Description

Get the directives from a GFF file

Usage

1

Arguments

file

character(1). File path.

nMax

integer(1). or Inf. Maximum number (i.e. of lines) to include. Use Inf to not apply a limit.

Details

Matches lines beginning with #!<key> <value> or ##<key>: <value>

Value

DataFrame or NULL.

GFF3

Lines beginning with '##' are directives (sometimes called pragmas or meta-data) and provide meta-information about the document as a whole. Blank lines should be ignored by parsers and lines beginning with a single '#' are used for human-readable comments and can be ignored by parsers. End-of-line comments (comments preceded by # at the end of and on the same line as a feature or directive line) are not allowed.

Note

Updated 2021-08-06.

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
url <- pasteURL(
    "ftp.ensembl.org",
    "pub",
    "release-102",
    "gtf",
    "homo_sapiens",
    "Homo_sapiens.GRCh38.102.gtf.gz",
    protocol = "ftp"
)
df <- getGFFDirectives(url)
print(df)

acidgenomics/AcidGenomes documentation built on Sept. 16, 2021, 7:30 p.m.