summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormutantturkey <mutantturke@gmail.com>2013-02-26 10:45:11 -0500
committermutantturkey <mutantturke@gmail.com>2013-02-26 10:45:11 -0500
commit771d79d44806d74fddc212da997c69af6010cb6c (patch)
treec9d676124ece6224e42b949f1a4b00b90a7533e1
parent05016ca3fe5e48e46efd77cce267051f6e97056e (diff)
iteratively loop through
-rwxr-xr-x[-rw-r--r--]multifasta_to_otu.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/multifasta_to_otu.py b/multifasta_to_otu.py
index 34af060..18ddc35 100644..100755
--- 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())