filtereach.Rd
Internally filter each element of a GenomicRangesList
filtereach(x, ...)
GRangesList object
Logical conditions to filter each element in the GRanges by. Multiple conditions can be provided as comma-delimited inputs
Filtered GRangesList object
# Load dataset
data(query_exons)
# select first element of each GRangesList item
filtereach(query_exons, dplyr::row_number() == 1)
#> GRangesList object of length 4:
#> $transcript1
#> GRanges object with 1 range and 6 metadata columns:
#> seqnames ranges strand | type transcript_id
#> <Rle> <IRanges> <Rle> | <factor> <character>
#> [1] chr10 79854427-79854721 + | exon transcript1
#> gene_id old_gene_id match_level gene_name
#> <character> <character> <numeric> <character>
#> [1] ENSMUSG00000006498.14 GeneA 4 Ptbp1
#> -------
#> seqinfo: 1 sequence from an unspecified genome; no seqlengths
#>
#> $transcript2
#> GRanges object with 1 range and 6 metadata columns:
#> seqnames ranges strand | type transcript_id
#> <Rle> <IRanges> <Rle> | <factor> <character>
#> [1] chr10 79854629-79854721 + | exon transcript2
#> gene_id old_gene_id match_level gene_name
#> <character> <character> <numeric> <character>
#> [1] ENSMUSG00000006498.14 GeneA 4 Ptbp1
#> -------
#> seqinfo: 1 sequence from an unspecified genome; no seqlengths
#>
#> $transcript3
#> GRanges object with 1 range and 6 metadata columns:
#> seqnames ranges strand | type transcript_id
#> <Rle> <IRanges> <Rle> | <factor> <character>
#> [1] chr10 79854652-79854721 + | exon transcript3
#> gene_id old_gene_id match_level gene_name
#> <character> <character> <numeric> <character>
#> [1] ENSMUSG00000006498.14 GeneA 4 Ptbp1
#> -------
#> seqinfo: 1 sequence from an unspecified genome; no seqlengths
#>
#> $transcript4
#> GRanges object with 1 range and 6 metadata columns:
#> seqnames ranges strand | type transcript_id
#> <Rle> <IRanges> <Rle> | <factor> <character>
#> [1] chr10 79854668-79854721 + | exon transcript4
#> gene_id old_gene_id match_level gene_name
#> <character> <character> <numeric> <character>
#> [1] ENSMUSG00000006498.14 GeneA 4 Ptbp1
#> -------
#> seqinfo: 1 sequence from an unspecified genome; no seqlengths
#>