parse_gff: Reformat file or url in gff format to allow to draw

Description Usage Arguments Value Examples

View source: R/parsers.R

Description

parse_gff loads a file or downloads from an url if provided protein information that is then changed to allow it to work with draw_canvas and other draw functions in drawProteins.

Usage

1
parse_gff(file_or_link)

Arguments

file_or_link

link in gff format or a file in gff format that can be read by read_tsv function from the readr package.

Value

Dataframe of one or more rows with the following column names: 'accession', 'source', 'type', 'begin', 'end', 'order', 'entryName', 'description'. Must contain a minimum of one "CHAIN" as data$type to allow plotting.

Examples

1
data <- parse_gff("https://www.uniprot.org/uniprot/Q04206.gff")

drawProteins documentation built on Nov. 8, 2020, 5:25 p.m.