psipred / s4pred

A tool for accurate prediction of a protein's secondary structure from only it's amino acid sequence
GNU General Public License v3.0
46 stars 8 forks source link

catch broken pipe exception and continue #6

Closed isthisthat closed 1 month ago

isthisthat commented 2 months ago

allows stdout output to be piped to unix commands e.g.

python3 run_model.py -t fas inp.fa | xargs -n3 > out.txt

for table output that is preferable in some scenarios

limitloss commented 1 month ago

Thanks for putting in the PR for this. I think it makes sense to pull it in. @DanBuchan do you have any thoughts on this one?

DanBuchan commented 1 month ago

@limitloss honestly you have a better view of the code, if you're happy with this and it doesn't break/change any outputs feel free to merge it

limitloss commented 1 month ago

Cool, I'll merge it in. Cheers Stathis

isthisthat commented 1 month ago

thank you both!