As each unique sequence can have a lot of BLAST hits this function counts the number of hits grouped by user defined feature classes.
addCountsOfFeatureClasses(summary, feature_classes)
summary | Summary table generated by mergeResults (requires BLAST result generated by runBlast) |
---|---|
feature_classes | List of features representing classes to be counted. Features can be defined as regular expressions, as described in stringi-search-regex. |
The summary table with additional columns for each feature term given by the user. Each column holds the number of features in 'FeatureList' that match the corresponding feature term. The column 'Other' reflects the number of all features in the 'FeatureList' after substracting the sum of feature class matches.