transpose_gene_ids: Rename gene IDs based on a 1-to-1 mapping file.

Description Usage Arguments Value See Also Examples

Description

This function accepts a 1-to-1 mapping file of gene ids and updates count data to reflect the new IDs. The mapping file should contain two columns "Gene stable ID" and "Gene name". The "Gene stable id" should correspond to gene ids in your count data file, and "gene name" will be used to replace the existing genes. This function has can be used to translate difficult to understand gene identifiers, such as ensembl IDs to to more human readable gene names. A mapping file can be generated at http://www.ensembl.org/biomart/martview/. This function should be run using count data read by prep_counts(). The returned data can then be used in prep_dds_from_data().

Usage

1
transpose_gene_ids(count_data, meta_file)

Arguments

count_data

Count data as read using the prep_counts() function.

meta_file

File containing 1-to-1 gene id mapping. Tab-delimited format expected. Column 1 should be titled, "Gene stable ID" and column 2 should be titled "Gene name".

Value

This function returns a count data set with gene IDs replaced by those provided in the meta_file parameter.

See Also

http://www.ensembl.org/biomart/martview/, prep_counts, prep_dds_from_data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

#Transpose IDs from current count data to their desired values based on the meta_file.
count_data  <- prep_counts(my_count_file)
new_count_data <- transpose_gene_ids(count_data, meta_file)

#Updated gene ID count information can be used in DE analysis.
dds <- prep_dds_from_data(new_count_data, target_data, ~ Design_Type, TRUE,
                           "Replicate", "vst")


## End(Not run)

DEVis documentation built on May 2, 2019, 3:18 p.m.