VDJ_import_IgBLAST_annotations: Function to import the annotations and alignments from...

View source: R/VDJ_import_IgBLAST_annotations.R

VDJ_import_IgBLAST_annotationsR Documentation

Function to import the annotations and alignments from IgBLAST output into the VDJ dataframe.

Description

Imports the IgBLAST annotations and alignments from IgBLAST output files, stored in the output folders of Cell Ranger, into a VDJ dataframe obtained from the minimal_VDJ() function in Platypus.

Usage

VDJ_import_IgBLAST_annotations(VDJ, VDJ.directory, file.path.list, method)

Arguments

VDJ

dataframe - VDJ object as obtained from the VDJ_build() function in Platypus.

VDJ.directory

string - path to parent directory containing the output folders (one folder for each sample) of Cell Ranger. This pipeline assumes that the sample IDs and contigs IDs have not been modified and that the IgBLAST output file names have not been changed from the default changeo settings. Each sample directory should contain a 'filtered_contig_igblast_db-pass.tsv' file.

file.path.list

list - list containing the paths to the 'filtered_contig_igblast_db-pass.tsv' files, in which the names of each item should refer to an sample ID.

method

string - denotes the way the IgBLAST germline annotations from the 'filtered_contig_igblast_db-pass.tsv' files should be appended to the VDJ dataframe. Options: 'replace' or 'attach'. Defaults to 'append'. 'replace' : The original annotation columns in the VDJ dataframe are replaced with the IgBLAST annotations. The original columns are kept with the suffix '_10x'. 'append' : The IgBLAST annotation columns are stored in columns with the suffix '_IgBLAST'.

Value

The VDJ dataframe with the appended IgBLAST annotations and alignments.

Examples

## Not run: 
VDJ <- VDJ_import_IgBLAST_annotations(VDJ = AntibodyForests::small_vdj,
                                      VDJ.directory = "path/to/VDJ_directory")

## End(Not run)

AntibodyForests documentation built on April 4, 2025, 4:45 a.m.