Skip to content

Commit

Permalink
handle non-numeric species ids
Browse files Browse the repository at this point in the history
  • Loading branch information
theavanrossum committed Aug 11, 2021
1 parent 7a8d728 commit 9bba70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metaSNV_DistDiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def position_diversity(x):
def computeDiv(filt_file, horizontal_coverage, vertical_coverage, bedfile_tab, matched,outdir):
'''Per species computation'''

species = int(filt_file.split('/')[-1].split('.')[0])
species = filt_file.split('/')[-1].split('.')[0]
data = pd.read_table(filt_file, index_col=0, na_values=['-1'])

pre_index = [i.split(':') for i in list(data.index)]
Expand Down

0 comments on commit 9bba70c

Please sign in to comment.