R/fCNA-object.R
fCNA.RdContains fields storing data and methods to get, process and visualize
fCNA information. Examples please see gcap.ASCNworkflow().
dataa data.table storing fCNA list, which typically contains following columns:
sample sample or case ID.
band chromosome cytoband.
gene_id gene ID, typically Ensembl ID. You can convert the ID with R package IDConverter.
total_cn total copy number value.
minor_cn copy number value for minor allele.
prob the probability the gene located in circular DNA.
gene_class gene level amplicon classification.
sample_summarya data.table storing sample summary data, which typically contains
at least the following columns:
sample sample or case ID. Should only include cases have been called with GCAP workflow,
otherwise the extra cases would be automatically classified as 'nofocal' (i.e. NA in sample_summary field) class.
purity, ploidy for tumor purity or ploidy.
AScore aneuploidy score.
pLOH genome percentage harboring LOH events.
CN1 ... CN19 activity of copy number signatures.
class the sample class based on amplicon type.
ec_genes number of genes predicted as located on circular DNA.
ec_possibly_genes same with ec_genes but with less confidence.
ec_cytobands number of cytobands predicted as located on circular DNA.
(the regions of ec_possibly_genes are not included in computation)
min_probcheck $new() method for details. If you updated this value,
a function will be called to update the sample summary.
new()Create a fCNA object.
Typically, you can obtain this object from gcap.workflow() or gcap.ASCNworkflow().
fcnaa data.frame storing focal copy number amplicon list.
pdataa data.frame storing phenotype or sample-level related data. (Optional)
min_probthe minimal aggregated (in cytoband level) probability to determine a circular amplicon.
only_oncogenesonly_oncogenes if TRUE, only known oncogenes are kept for circular prediction.
genome_buildgenome version
subset()Return a subset fCNA object
fCNA$subset(..., on = c("data", "sample_summary"))getSampleSummary()Get sample summary of fCNA
fCNA$getSampleSummary(
only_oncogenes = FALSE,
genome_build = c("hg38", "hg19", "mm10")
)getCytobandSummary()Get cytoband level summary of fCNA type