Skip to content

Commit

Permalink
fix: CLIN-2536 revert change to flattenInfo method
Browse files Browse the repository at this point in the history
  • Loading branch information
meek0 committed Jan 13, 2025
1 parent e3a187c commit 9f0f01a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,12 +646,10 @@ object GenomicImplicits {

val dp: Column = col("INFO_DP") as "dp"

def flattenInfo(df: DataFrame, except: String*): Seq[Column] = {
def flattenInfo(df: DataFrame, except: String*): Seq[Column] =
df.columns.filterNot(except.contains(_)).collect {
case c if c.startsWith("INFO_") && df.schema(c).dataType.isInstanceOf[ArrayType] => col(c)(0) as c.replace("INFO_", "").toLowerCase
case c if c.startsWith("INFO_") => col(c) as c.replace("INFO_", "").toLowerCase
case c if c.startsWith("INFO_") => col(c)(0) as c.replace("INFO_", "").toLowerCase
}
}


def familyInfo(cols: Seq[Column] = Seq(col("calls"), col("affected_status"), col("gq")),
Expand Down

0 comments on commit 9f0f01a

Please sign in to comment.