AlexsLemonade / OpenScPCA-analysis

An open, collaborative project to analyze data from the Single-cell Pediatric Cancer Atlas (ScPCA) Portal
Other
1 stars 8 forks source link

Add update-symlink argument to data download script #543

Open sjspielman opened 5 days ago

sjspielman commented 5 days ago

Closes #530

This PR adds the --update-symlink argument to the data-download.py script, and it's working as expected on my end 👍 . I added a function update_symlink() which is called in two spots:

Let me know if there are other behaviors we'd like to see for this flag. Also, I'm not convinced my help string for this argument is as clear as it could be, what do you think?

sjspielman commented 4 days ago

I moved the check into the function, flipped the logic order, and also added some code to also print what would happen under the --update_symlink <arg> --dryrun flag combo.