Skip to content

Commit dd23d91

Browse files
change merge to inner bc was causing issue with int
1 parent 4af75d8 commit dd23d91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/novartispdx/02-omics-novartispdx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def map_copy_number_novPDX(copy_number_data, improve_id_data, entrez_data):
120120

121121
# get improve sample id
122122
improve_id_data['to_merge'] = improve_id_data['common_name'].str.replace("NIBR","")
123-
sample_entrez_cn_df = pd.merge(entrez_cn_df.drop_duplicates(), improve_id_data[['to_merge','improve_sample_id']].drop_duplicates(), how = 'left', left_on= "variable", right_on= "to_merge")
123+
sample_entrez_cn_df = pd.merge(entrez_cn_df.drop_duplicates(), improve_id_data[['to_merge','improve_sample_id']].drop_duplicates(), how = 'inner', left_on= "variable", right_on= "to_merge")
124124

125125
# clean up columns and data types
126126
sample_entrez_cn_df = sample_entrez_cn_df.drop(columns=['Sample','variable','other_id','to_merge'])

0 commit comments

Comments
 (0)