Formats and displays the results from the fusion matching function in a human-readable summary format, showing all matches found for each fusion.

print_fusion_matches(results)

Arguments

results

A list of fusion match results, as returned by find_related_fusions(). Each element corresponds to a sequenced fusion and contains nested lists of matched database fusions with scores and details.

Value

Invisibly returns NULL. As a side effect, prints formatted match results to the console.

Details

For each sequenced fusion, this function prints:

  • A header showing the fusion index and match count

  • No matches found message (if applicable)

  • For each match: index, fusion ID, score, and gene/exon details

The function handles empty results and properly formats each match's details based on the structure provided by find_related_fusions().

See also

find_related_fusions for generating the match results

Examples

if (FALSE) { # \dontrun{
# Find related fusions
results <- find_related_fusions(sequenced_fusions, db_fusions)

# Print matches in readable format
print_fusion_matches(results)

# Print matches for just one fusion
print_fusion_matches(results[1])
} # }