Learn R Programming

immunarch (version 0.9.1)

top: Get the N most abundant clonotypes

Description

Get the N most abundant clonotypes

Usage

top(.data, .n = 10)

Value

Data frame with the .n most abundant clonotypes only.

Arguments

.data

The data to be processed. Can be data.frame, data.table, or a list of these objects.

Every object must have columns in the immunarch compatible format. immunarch_data_format

Competent users may provide advanced data representations: DBI database connections, Apache Spark DataFrame from copy_to or a list of these objects. They are supported with the same limitations as basic objects.

Note: each connection must represent a separate repertoire.

.n

Numeric. Number of the most abundant clonotypes to return.

Examples

Run this code
data(immdata)
top(immdata$data)
top(immdata$data[[1]])

Run the code above in your browser using DataLab