From dd2cb1f4085bdc3fddde418c2d37aaee0233290f Mon Sep 17 00:00:00 2001 From: Olga Tsiouri Date: Wed, 29 Dec 2021 00:05:50 +0200 Subject: [PATCH] fix the directory option functionality and update GUI executable --- README.md | 4 ++-- fasta_manipulation/fasta_formatter_gui.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 94f7c72..7c230fe 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# bioinfo_gui_scripts [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5800157.svg)](https://doi.org/10.5281/zenodo.5800157) +# bioinfo_gui_scripts python scripts that can be easily transformed to gui programs for wet lab scientists to use(see the wiki page for documentation and depedences) ## GUI stadalone programs(.exe) 1. DSSP statistics GUI: [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4838997.svg)](https://doi.org/10.5281/zenodo.4838997) @@ -15,7 +15,7 @@ python scripts that can be easily transformed to gui programs for wet lab scient 12. tab to fasta GUI: [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5703366.svg)](https://doi.org/10.5281/zenodo.5703366) 13. single-fastas to tabular GUI: [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5672075.svg)](https://doi.org/10.5281/zenodo.5672075) 14. tabular file to single-fastas GUI: [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5652249.svg)](https://doi.org/10.5281/zenodo.5652249) -15. fasta formatter GUI: [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5799390.svg)](https://doi.org/10.5281/zenodo.5799390) +15. fasta formatter GUI: [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5807930.svg)](https://doi.org/10.5281/zenodo.5807930) 16. chain pdb to fasta GUI: [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5706468.svg)](https://doi.org/10.5281/zenodo.5706468) 17. subset pdb to fasta GUI: [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5725658.svg)](https://doi.org/10.5281/zenodo.5725658) 18. trim fasta GUI: [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5794123.svg)](https://doi.org/10.5281/zenodo.5794123) diff --git a/fasta_manipulation/fasta_formatter_gui.py b/fasta_manipulation/fasta_formatter_gui.py index c659817..377ee4f 100644 --- a/fasta_manipulation/fasta_formatter_gui.py +++ b/fasta_manipulation/fasta_formatter_gui.py @@ -28,7 +28,7 @@ def split_every_width(s,w): return [s[i:i+w] for i in range(0,len(s),w)] sys.stdout.close() elif args['program'] == 2: # import each fasta file from the working directory - for filename in sorted(os.listdir(str(os.getcwd()))): + for filename in sorted(os.listdir(os.chdir(args['directory']))): if filename.endswith(".fa") or filename.endswith(".fasta"): # export to new fasta files with the user imported width value sys.stdout = open(''.join([filename.split(".")[0],"_","w",str(args['width']),".fasta"]), 'a')