cigarsToEvents: Transform extended CIGAR strings into GRanges.

Description Usage Arguments Value

View source: R/helpers_general.R

Description

Transform extended CIGAR strings into GRanges representation with events of deletions, insertions and mismatches.

Usage

1
2
cigarsToEvents(cigars, aln_pos_start, query_seq, ref, read_id, mapq,
  seqnames, strands, counts)

Arguments

cigars

(character) Extended CIGARS.

aln_pos_start

(integer) Pos of CIGARS.

query_seq

(character) Aligned query sequences.

ref

(character) Reference sequences used for alignment.

read_id

(numeric) Read id for assignment for each of the CIGARS.

mapq

(numeric) Maping scores.

seqnames

(character) Names of the sequences, potentially ids of the reference sequences.

strands

(character) Strands to assign.

counts

(integer) Vector of cigar counts, if data collapsed.

Value

(GRanges) Same as events.


amplican documentation built on Nov. 8, 2020, 11:10 p.m.