extract_field_from_gencode: Extract field from gencode GTF file

Description Usage Arguments Details Value Examples

Description

Extract field from gencode GTF file

Usage

1
extract_field_from_gencode(file, level = "gene", primary_key = "gene_id", field = "gene_name")

Arguments

file

the input gtf file

level

level of the annotation (e.g. gene, transcript, exon, ...)

primary_key

primary field

field

field to be retrieved

Details

Although gtf file can be imported by makeTranscriptDbFromGFF, some information in the original gtf file will not be imported. This function aims to extract additionally information from gtf file.

The function calls external perl script, so you need to have perl installed.

Value

A vector in which 'primary_key' corresponds to the name and 'field' corresponds to the value

Examples

1
2
# There is no example
NULL

jokergoo/cotools documentation built on May 19, 2019, 6:24 p.m.