#organise dataframe from depmap colnames(HumagneCDLogfoldChangeguidedataintermediate) <-…
- User
#organise dataframe from depmap colnames(HumagneCDLogfoldChange_guide_data_intermediate) <- HumagneCDLogfoldChange_guide_data_intermediate[1,] HumagneCDLogfoldChange_guide_data_intermediate <- HumagneCDLogfoldChange_guide_data_intermediate[-1,] colnames(HumagneCDLogfoldChange_guide_data_intermediate)[1] <- "Gene" HumagneCDLogfoldChange_guide_data_intermediate$source <- "DepMap"
#change first colname colnames(result_df)[1] <- "Gene" result_df$source <- "Metz"
DepMap_and_Metz_Humagne_combined <- inner_join(HumagneCDLogfoldChange_guide_data_intermediate, result_df, by = "Gene")
DepMap_and_Metz_Humagne_combined <- inner_join(HumagneCDLogfoldChange_guide_data_intermediate, result_df, by = "Gene") Error in
inner_join(): ! Input columns inxmust be unique. ✖ Problem withSC.000067.CD02_CD.1_14_A,SC.000097.CD01_CD.1_14_A,SC.000147.CD01_CD.1_14_A,SC.000183.CD01_CD.1_14_A,SC.000292.CD02_CD.1_14_A,SC.000404.CD01_CD.1_14_A,SC.000502.CD01_CD.1_14_A,SC.000527.CD01_CD.1_14_A,SC.000583.CD01_CD.1_14_A,SC.000696.CD01_CD.1_14_A,SC.000774.CD01_CD.1_14_A,SC.000900.CD01_CD.1_14_A,SC.001509.CD01_CD.1_14_A,SC.001619.CD01_CD.1_14_A,SC.001975.CD01_CD.1_14_A,SC.001975.CD01_CD.1_21_A,SC.001975.CD01_CD.1_14_B,SC.001975.CD01_CD.1_21_B,SC.001975.CD01_CD.1_14_C, andSC.001975.CD01_CD.1_14_D. Runrlang::last_trace()to see where the error occurred.i am sure the Gene column of the dataframes i want to combine are containing the same stuff
- Assistant
The error message you are encountering indicates that before joining the two data frames
HumagneCDLogfoldChange_guide_data_intermediateandresult_df, there are non-unique column names in theHumagneCDLogfoldChange_guide_data_intermediatedataframe. This could be due to duplicated column names that might have occurred during prior data manipulation.