powered by
This function is used to extract all exons and their positions in the genome from an input gtf file.
cast_gtf_to_genes(filename, feature = "exon", att_of_interest = "gene_id", ...)
path to the gtf file
the feature type name to filter the feature (3rd) column of the gtf/gff file; default is exon
the attribute to extract from the last column of the gtf/gff file; default in gene_id
arguments passed on to other methods
A tibble of the ids, gene names, chromosomes, start and end positions of each exon found in the gtf file.
# NOT RUN { fl <- system.file("extdata", "example.gtf.gz", package="Rsamtools", mustWork=TRUE) cast_gtf_to_genes(fl) # }
Run the code above in your browser using DataLab