motif_plot | R Documentation |
Code for plotting the Motif based on a specific CDR3 length and V gene (see netplot_ClusTCR2 for ).
motif_plot(
ClusTCR,
Clust_column_name = "Clust_size_order",
Clust_selected = NULL
)
ClusTCR |
Matrix file produce from mcl_cluster |
Clust_column_name |
Name of clustering column from mcl_cluster file e.g. cluster |
Clust_selected |
Select which cluster to display. Only one at a time. |
A ggplot object representing the motif.
# Example usage of mcl_cluster function with a stored file
example_file <- read.csv(system.file("extdata", "my_data.csv",package = "ClusTCR2"))
# Perform clustering using mcl_cluster function
step1 <- ClusTCR(example_file,allele = FALSE)
# perform mcl
step2 <- mcl_cluster(step1)
# print the motif plot for the simple clustering
print(motif_plot(step2,Clust_selected = 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.