Mouse-Imaging-Centre / pydpiper

Python code for flexible pipeline control
Other
24 stars 10 forks source link

twolevel_model_building imports the input csv twice #414

Open nzxwang opened 5 years ago

nzxwang commented 5 years ago

It may be better to import the input csv once, then use the assign() method for all stages, then drop unnecessary columns when finally writing the output csv.

Similar to: https://github.com/Mouse-Imaging-Centre/MICe-lab/blob/99b5a1fd1a7d45dde044b4532d1f9211ad72ec92/python/tissue_vision/TV_pipeline.py#L123

Reference: 5920e09a9a23bc6e976d74231ba0ef29f675749f