/**
 * This function takes two sets of genes and finds the common genes between them.
 *
 * @param geneSet1 The first set of genes.
 * @param geneSet2 The second set of genes.
 * @return A set of common genes between geneSet1 and geneSet2.
 *
 * Example:
 * val geneSet1 = setOf("ATP1A1", "ACTB", "BRCA1", "EGFR")
 * val geneSet2 = setOf("BRCA1", "TP53", "EGFR", "VEGFA")
 * println(findCommonGenes(geneSet1, geneSet2)) // Output: [BRCA1, EGFR]
 */
fun findCommonGenes(geneSet1: Set<String>, geneSet2: Set<String>): Set<String> {

    // Using the intersect method of sets to find the common genes
    return geneSet1.intersect(geneSet2)
}
/**
 * This function takes two sets of genes and finds the common genes between them.
 *
 * @param geneSet1 The first set of genes.
 * @param geneSet2 The second set of genes.
 * @return A set of common genes between geneSet1 and geneSet2.
 *
 * Example:
 * val geneSet1 = setOf("ATP1A1", "ACTB", "BRCA1", "EGFR")
 * val geneSet2 = setOf("BRCA1", "TP53", "EGFR", "VEGFA")
 * println(findCommonGenes(geneSet1, geneSet2)) // Output: [BRCA1, EGFR]
 */
fun findCommonGenes(geneSet1: Set<String>, geneSet2: Set<String>): Set<String> {
/**
 * This function takes two sets of genes and finds the common genes between them.
 *
 * @param geneSet1 The first set of genes.
 * @param geneSet2 The second set of genes.
 * @return A set of common genes between geneSet1 and geneSet2.
 *
 * Example:
 * val geneSet1 = setOf("ATP1A1", "ACTB", "BRCA1", "EGFR")
 * val geneSet2 = setOf("BRCA1", "TP53", "EGFR", "VEGFA")
 * println(findCommonGenes(geneSet1, geneSet2)) // Output: [BRCA1, EGFR]
 */
fun findCommonGenes(geneSet1: Set<String>, geneSet2: Set<String>): Set<String> {

    // Using the intersect method of sets to find the common genes
    return geneSet1.intersect(geneSet2)
}