Description Usage Arguments Value See Also Examples
read_gtf
, read_gff
, read_bed
and
read_bam
are specific functions corresponding to respective file
formats.
read_format
is a top-level convenience function that detects and
reads automatically from the extension and is sufficient in most cases.
1 2 3 4 5 6 7 8 9 10 11 | read_format(file, format = detect_format(file), filter = FALSE,
chromosomes = NULL, tags = c("NM", "MD"), verbose = FALSE)
read_gtf(file, filter = FALSE, verbose = FALSE)
read_gff(file, filter = FALSE, verbose = FALSE)
read_bed(file, filter = FALSE, verbose = FALSE)
read_bam(file, filter = FALSE, chromosomes = NULL, tags = c("NM", "MD"),
verbose = FALSE)
|
file |
Complete path to the input file. |
format |
Type of annotation. Currently allowed values are
|
filter |
Filter rows where |
chromosomes |
Argument to |
tags |
Additional (optional) tags to load from the bam file. By
default, the tags |
verbose |
If |
An object of class gtf
, gff
, bed
or bam
,
corresponding to the input file format, that inherits from GRanges
.
supported_formats
extract
construct_introns
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | path <- system.file("tests", package="gread")
gff_file <- file.path(path, "sample.gff")
gtf_file <- file.path(path, "sample.gtf")
bed_file <- file.path(path, "sample.bed")
bam_file <- file.path(path, "sample.bam")
read_format(gff_file) # read gff
read_gff(gff_file) # same as above
read_format(gtf_file) # read gtf
read_gtf(gtf_file) # same as above
read_format(bed_file) # read bed
read_bed(bed_file) # same as above
read_format(bam_file) # read bam
read_bam(bam_file) # same as above
gtf_filter_file <- file.path(path, "sample_filter.gtf")
read_format(gtf_filter_file, filter=TRUE) # filter invalid rows
read_gtf(gtf_filter_file, filter=TRUE) # same as above
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.