ClonotypeFromDataframe: Create Clonotype Object from Data Frame

View source: R/object.r

ClonotypeFromDataframeR Documentation

Create Clonotype Object from Data Frame

Description

Create Clonotype Object from Data Frame

Usage

ClonotypeFromDataframe(Df, properties = NULL, verbose = TRUE)

Arguments

Df

data.frame.

properties

list.

verbose

logical.

Value

An object of clonotype

Examples

# file paths
airr_file   = system.file('extdata', '10x_airr_rearrangement.tsv.gz', package = 'TrustVDJ')
contig_file = system.file('extdata', '10x_all_contig_annotations.csv.gz', package = 'TrustVDJ')
# read file
data        = Read10x(airr_file = airr_file, contig_file = contig_file)
# create clonotype object
clonotype = ClonotypeFromDataframe(data, properties = list(
  ConsenID = 'raw_consensus_id', ClonoID = 'clone_id', Barcode = 'cell_id' ))
clonotype


HatsuneCode/TrustVDJ documentation built on Aug. 13, 2022, 9:36 p.m.