diff options
author | Calvin <calvin@EESI> | 2013-02-27 15:40:19 -0500 |
---|---|---|
committer | Calvin <calvin@EESI> | 2013-02-27 15:40:19 -0500 |
commit | 40f03c93bbe11177105f7db159ec527bb612fe0e (patch) | |
tree | 46645ac4eb54f38ad61f92bebb1b9eb07d567e13 | |
parent | d5528274719639989634f296f37da270fe88dd5d (diff) |
Create a dictionary of our trained matrix id's
-rwxr-xr-x | multifasta_to_otu.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/multifasta_to_otu.py b/multifasta_to_otu.py index e313e4a..ef7f5f6 100755 --- a/multifasta_to_otu.py +++ b/multifasta_to_otu.py @@ -76,12 +76,16 @@ def main(): results = pool.map(quikr_call, fasta_list) # Create a dictionary and load up our keys - + records = [] + + trained_matrix_headers = open(args.trained_matrix, "rU") + for record in SeqIO.parse(trained_matrix_headers, "fasta"): + records.append((record.id, 0)) + + records = dict(records) + - for fasta in fasta_list: - fasta_file = open(input_directory + fasta, "rU") - for record in SeqIO.parse(fasta_file, "fasta") : # load the keys with values from each fasta result |