This function saves a csv file of clones (genes, amino acid, and nucleotide sequences) by barcodes. format determines the structure of the csv file - paired will export sequences by barcodes and include multiple chains, airr will export a data frame that is consistent with the AIRR format, and TCRMatch will export a data frame that has the TRB chain with count information.
exportClones(
input.data,
format = "paired",
group.by = NULL,
write.file = TRUE,
dir = NULL,
file.name = "clones.csv"
)
The product of combineTCR()
,
combineBCR()
, or combineExpression()
.
The format to export the clones - "paired", "airr", or "TCRMatch".
The variable to use for grouping.
TRUE, save the file or FALSE, return a data.frame
directory location to save the csv
the csv file name
CSV file of the paired sequences.
if (FALSE) { # \dontrun{
#Making combined contig data
combined <- combineTCR(contig_list,
samples = c("P17B", "P17L", "P18B", "P18L",
"P19B","P19L", "P20B", "P20L"))
exportClones(combined,
format = "paired")
} # }