metaseqr
for a list of supported organisms. The function downloads
annotation for an organism genes or exons.get.annotation(org, type, refdb="ensembl",
multic=FALSE)
"gene"
or "exon"
."ensembl"
(default),
"ucsc"
or "refseq"
. In the later two
cases, an SQL connection is opened with the UCSC
public databases.FALSE
. Do not change it if you are not
sure whether package parallel has been loaded
or not. It is used in the case of
type="exon"
to process the return value of
the query to the UCSC Genome Browser database.type="genes"
, the data frame has the following
columns: chromosome, start, end, gene_id, gc_content,
strand, gene_name, biotype. When type="exon"
the
data frame has the following columns: chromosome, start,
end, exon_id, gene_id, strand, gene_name, biotype. The
gene_id and exon_id correspond to Ensembl gene and exon
accessions respectively. The gene_name corresponds to
HUGO nomenclature gene names.hg19.genes <- get.annotation("hg19","gene","ensembl")
mm9.exons <- get.annotation("mm9","exon","ucsc")
Run the code above in your browser using DataLab