Last chance! 50% off unlimited learning
Sale ends in
Unwrap a list of genomic intervals into a list of loci grouped by chromosome.
bed2positions(targetbed, chrom_to_extract, get_only_chromosomes = FALSE)
Genomic regions in the BED tab-delimited format.
The chromosome name to extract as i.e. "chr1" or "1" accordingly with BED file annotation
Set TRUE to return only the list of chromosomes
present in the targetbed
. default: FALSE
PosByChrom
: A list of data.frames (each row is a locus) one for each chromosome present in the targetbed
.
chromosomes
: A vector listing chromosomes present in the targetbed
.
# NOT RUN {
targetbed <- system.file("extdata", "regions_toy.bed",package = "abemus")
chromosomes <- bed2positions(targetbed = targetbed,chrom_to_extract="8")
targetbp_list <- bed2positions(targetbed = targetbed,get_only_chromosomes = TRUE)
# }
Run the code above in your browser using DataLab