devtools::install_github("mana-W/LinTInd")
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("LinTInd")
To generate the CB_UMI from fastq files, which will be used in the following. You can use CB_UMI.sh in: https://github.com/mana-W/chenlab_you.
Input fileļ¼ Example files is in LinTInd/inst/extdata data is from CB_UMI fa is ref file cutsite is a file define each sgRNA start and end positon celltype.tsv is a file include cell barcode and its' annotations, header: Cell.BC Cell.type
library(LinTInd)
data<-paste0(system.file("extdata",package = 'LinTInd'),"/CB_UMI")
fafile<-paste0(system.file("extdata",package = 'LinTInd'),"/V3.fasta")
cutsite<-paste0(system.file("extdata",package = 'LinTInd'),"/V3.cutSites")
celltype<-paste0(system.file("extdata",package = 'LinTInd'),"/celltype.tsv")
data<-read.table(data,sep="\t",header=T)
ref<-ReadFasta(fafile)
cutsite<-read.table(cutsite,col.names = c("indx","start","end"))
celltype<-read.table(celltype,header=T,stringsAsFactors=F)
Or load the example data
data("example_data",package = "LinTInd")
Alignment
scarinfo<-FindIndel(data=data,scarfull=ref,scar=cutsite,indel.coverage="All",type="test",cln=1)
scarinfo<-IndelForm(scarinfo,cln=1)
Define scar pattern for each cell
cellsinfo<-IndelIdents(scarinfo,method.use="umi.num",cln=1)
Pattern visualization
IndelPlot(cellsinfo = cellsinfo)
### Indel extracted wzxhzdk:7 ### Tree reconstruct wzxhzdk:8 ### Visualization **Similarity of each pair of clusters** wzxhzdk:9
***Visualization for tree*** wzxhzdk:10
Or wzxhzdk:11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.