extract_sequence.Rd
Extract the sequences for a given region
extract_sequence(bam, index, reg)
bam | the cram/bam/sam file |
---|---|
index | the index of the cram/bam/sam file |
reg | the region of interest, typically in format of chr1:start-begin |
a character vector with the sequences in the given region
# NOT RUN { count_kmer(bam, index, "chr1:10001-100050") # }