Run pre-defined quality controls on frags that filters based on the number of frags and tss enrichment on each cell. Returns both the filtered fragments and the qc metrics.
run_fragment_qc.RdRun pre-defined quality controls on frags that filters based on the number of frags and tss enrichment on each cell. Returns both the filtered fragments and the qc metrics.
Arguments
- frags
(IterableFragments) Fragments to be filtered.
- gene_annotations
(data.frame-like) Table with at least chr, source, feature, start, end, score, strand, frame, gene_id, and gene_type (See
BPCells::read_gencode_transcripts)- blacklist
(data.frame-like) Table with at least chr, start, end, and reason. (See
BPCells::read_encode_blacklist).- n_frags
(numeric) Minimum threshold number of fragments in each cell for filtering
frags.- tss_enrichment
(numeric) Minimum threshold tss enrichment in each cell for filtering
frags.