Translate_RNA2ATAC: Function to translate the RNA barcode into ATAC barcode and...

View source: R/General_functions.R

Translate_RNA2ATACR Documentation

Function to translate the RNA barcode into ATAC barcode and add a column

Description

This function allows you to input the metadata with row name as cell barcode

Usage

Translate_RNA2ATAC(
  meta = bmmc.filtered@meta.data,
  PostFix = T,
  bclength = 16,
  from = c(1, 2, 3),
  to = c(1, 2, 3)
)

Arguments

meta

a dataframe with the row names as the RNA cell barcode usually with the post -1

bclength

The cell barcode length, default is 16

from

A vector of the postfix, usually is c(1,2,3,...), it depends on how many samples are aggregated in Cellranger RNA part

to

A vector of the postfix, those cooresponds to the postfix added in redeemR, in general, if it matches, then simply c(1,2,3,...), but in case not match, here provides a way to transform into scredeemR order

Value

meta a dataframe

Examples

Translate_RNA2ATAC(meta)

chenweng1991/scMitoTracing documentation built on July 2, 2024, 8:41 p.m.