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

View source: R/parsers.R

parse_gffR Documentation

Reformat file or url in gff format to allow to draw

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

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

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


brennanpincardiff/drawProteins documentation built on March 8, 2024, 8:15 a.m.