AMP-SCZ / utility

Storehouse for all utility scripts
Apache License 2.0
0 stars 4 forks source link

FEAT: Impl. script to remove subjects from CSV given holdout list #120

Closed dheshanm closed 3 months ago

dheshanm commented 3 months ago

Removes subjects from holdout_list file, from another CSV file

Expects holdout_list to be a file withe a subject_id in each row / line to be removed:

Sample holdout.txt:

AB12345
CD67890
...

Expects the CSV file to dual line headers and the subject_id as its second column:

Sample CSV file:

col_1,subject_id,col_3
val_1,AB12345,val_3
val_4,CD67890,val_6
...

Overwrites the target CSV file with the subjects removed, and backs up the original file with a <filename.ext>.orig extension

tashrifbillah commented 3 months ago

Thank you. Did you set chmod a+x ?