From 771d79d44806d74fddc212da997c69af6010cb6c Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Tue, 26 Feb 2013 10:45:11 -0500 Subject: iteratively loop through --- multifasta_to_otu.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) mode change 100644 => 100755 multifasta_to_otu.py (limited to 'multifasta_to_otu.py') diff --git a/multifasta_to_otu.py b/multifasta_to_otu.py old mode 100644 new mode 100755 index 34af060..18ddc35 --- a/multifasta_to_otu.py +++ b/multifasta_to_otu.py @@ -53,9 +53,11 @@ def main(): if args.kmer is not None: kmer = args.kmer - fasta_list = os.listdir(args. - pool = Pool(processes=jobs) - result = pool.map(quikr_call, fasta_list) + fasta_list = os.listdir(args.input_directory) + + for fasta in fasta_list: + quikr_call(fasta) + return 0 def quikr_call(fasta_file): @@ -63,6 +65,6 @@ def quikr_call(fasta_file): np.savetxt(output_directory + os.path.basename(fasta_file), xstar, delimiter=",", fmt="%f") return 0 - if __name__ == "__main__": - sys.exit(main()) +if __name__ == "__main__": + sys.exit(main()) -- cgit v1.2.3