Update CountTaxonOccurence.py

This commit is contained in:
Auden Cote-L'Heureux 2023-10-24 11:20:52 -04:00 committed by GitHub
parent b3fcdc7c3c
commit 4c4997ecff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ def count_tips(in_dir):
taxa = sorted(list(dict.fromkeys([tax for file in count_data for tax in count_data[file]]))) taxa = sorted(list(dict.fromkeys([tax for file in count_data for tax in count_data[file]])))
with open('tip_count_data.csv', 'w') as o: with open('TaxonOccurrence.csv', 'w') as o:
o.write(',' + ','.join(taxa) + '\n') o.write(',' + ','.join(taxa) + '\n')
for file in count_data: for file in count_data:
o.write(file) o.write(file)