Skip to content

Commit 5f0a3fd

Browse files
committed
added export routine for drug respones data
1 parent e8d04b0 commit 5f0a3fd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/prepare_data_for_improve.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ def process_datasets(args):
136136
columns={'improve_drug_id': 'improve_chem_id'},
137137
inplace=True,
138138
)
139+
# exporting the drug response data to 'y_data/response.tsv'
140+
outfile_path = args.WORKDIR.joinpath("data_out", "y_data", "response.tsv")
141+
response_data.to_csv(
142+
path_or_buf=outfile_path,
143+
index=False,
144+
sep='\t',
145+
)
139146
# temporary addition of "index column" to serve as a reference for
140147
# the extraction of split files
141148
response_data['index'] = response_data.index

0 commit comments

Comments
 (0)