get_chromosomes: Get Chromosomes

View source: R/sc_atac_create_fragments.R

get_chromosomesR Documentation

Get Chromosomes

Description

Gets a list of NamedList of chromosomes and the reference length acquired through the bam index file.

Usage

get_chromosomes(bam, keep_contigs = "^chr")

Arguments

bam

file path to the bam file to get data from

keep_contigs

regular expression used with grepl to filter reference names

Value

a named list where element names are chromosomes reference names and elements are integer lengths


LuyiTian/scPipe documentation built on Dec. 11, 2023, 8:21 p.m.