The biomaRt query requires only gene identifiers to be passed as input. Some alignment output combines additional metadata with the counts file. This function will remove extraneous rows and is especially meant to address output from the STAR aligner.

parse_counts(count_df)

Arguments

count_df

A counts data frame with sample identifiers as column names and gene Ids are rownames.