# Load example data
file <- system.file("extdata", "ExampleDb.gz", package="alakazam")
df <- readChangeoDb(file)
# Without copy numbers
genes <- countGenes(df, gene="V_CALL", groups="SAMPLE", mode="family")
genes <- countGenes(df, gene="V_CALL", groups="SAMPLE", mode="gene")
genes <- countGenes(df, gene="V_CALL", groups="SAMPLE", mode="allele")
# With copy numbers and multiple groups
genes <- countGenes(df, gene="V_CALL", groups=c("SAMPLE", "ISOTYPE"),
copy="DUPCOUNT", mode="family")
genes <- countGenes(df, gene="V_CALL", groups=c("SAMPLE", "ISOTYPE"),
copy="DUPCOUNT", mode="gene")
genes <- countGenes(df, gene="V_CALL", groups=c("SAMPLE", "ISOTYPE"),
copy="DUPCOUNT", mode="allele")Run the code above in your browser using DataLab