count_transcripts: determine how many transcripts are annotated in a FASTA or...

Description Usage Arguments Value Examples

View source: R/count_transcripts.R

Description

determine how many transcripts are annotated in a FASTA or GTF file

Usage

1
2
3
4
5
6
count_transcripts(
  f,
  fasta = TRUE,
  identifier = "transcript_id",
  attrsep = "; "
)

Arguments

f

character, path to a file in FASTA or GTF format

fasta

TRUE if f is a fasta file; FALSE if f is a GTF file

identifier

if f is a GTF file, how are transcripts identified in the attributes field (9th column) of the file? Default transcript_id.

attrsep

if f is a GTF file, how are attributes separated in the attributes field (9th column) of the file? Default "; ".

Value

Number of transcripts annotated in f

Examples

1
2
fastapath = system.file("extdata", "chr22.fa", package="polyester")
count_transcripts(fastapath) #918

alyssafrazee/polyester documentation built on Sept. 17, 2021, 8:54 a.m.