anno_import {scPipe} | R Documentation

## Import gene annotation

### Description

Because of the variations in data format depending on annotation source, this function has only been tested with human annotation from ENSEMBL, RefSeq and Gencode. If it behaves unexpectedly with any annotation please submit an issue at www.github.com/LuyiTian/scPipe with details.

### Usage

    anno_import(filename)

### Arguments

`filename` | The name of the annotation gff3 or gtf file. File can be gzipped.

### Details

Imports and GFF3 or GTF gene annotation file and transforms it into a SAF formatted data.frame. SAF described at http://bioinf.wehi.edu.au/featureCounts/. SAF contains positions for exons, strand and the GeneID they are associated with.

### Value

data.frame containing exon information in SAF format

### Examples

    ens_chrY <- anno_import(system.file("extdata", "ensembl_hg38_chrY.gtf.gz", package = "scPipe"))

[Package scPipe version 1.6.0 Index]