Skip to content

Commit

Permalink
Fix make_obs.py script
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacovercast committed Oct 28, 2018
1 parent 1a94d1f commit b46dfe2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/make_obs.py
Expand Up @@ -6,7 +6,7 @@
import os
from itertools import combinations
from collections import Counter
from MESS.stats import shannon
from scipy.stats import entropy


def pi(file):
Expand Down Expand Up @@ -111,8 +111,7 @@ def parse_command_line():
if args.abund_file:
dat = open(args.abund_file).read().strip().split(",")
dat = map(int, dat)
dat = Counter(dat)
outfile.write(str(shannon(dat)) + "\t")
outfile.write(str(entropy(dat)) + "\t")

## Get 1D pi vector
if args.fasta_files:
Expand Down

0 comments on commit b46dfe2

Please sign in to comment.