Skip to content

vignettes(cellosaurus): describe annotation steps #30

@jjjermiah

Description

@jjjermiah

need to explain how to annotate to other fields:
example from the gdsc pipeline

field_map <- list(
    "id" = "id",
    "ac" = "accession",
    "sy" = "synonyms",
    "misspelling" = "misspellings",
    "di" = "diseases",
    "ca" = "category",
    "sx" = "sexOfCell",
    "ag" = "ageAtSampling",
    "derived-from-site" = "samplingSite"
)

fields <- names(field_map)

sampleMetadata[, paste0("cellosaurus.", fields) := {
    mapped <- AnnotationGx::mapCell2Accession(
        as.character(GDSC.COSMIC_ID), 
        from = "dr",
        to = fields,
        BPPARAM = BPPARAM
    )
    return(mapped[, 1:length(fields)])
    }
    

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions