Skip to content

return NA for non-mappable genes #19

@fteufel

Description

@fteufel

Hi,

I'm trying to use homologene to rename the rows of a gene expression table. As indicated in the docs, queries for genes that cannot be mapped are not returned in the results

mapped_genes <- mouse2human(c('NoKnownHomolog1,'NoKnownHomolog2'))
## [1] mouseGene humanGene mouseID   humanID  
## <0 rows> (or 0-length row.names)

This means the resulting dataframe will be of a different length than the input vector, which prevents doing something like
new_rownames<- mouse2human(rownames(input_data))$humanGene, followed by dropping all NA rows from the df.
Is there any feature/best practice to apply homologene to this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions