JanetMatsen / bacteriopop

population dynamics for abundances calculated from meta-omics sequencing
Apache License 2.0
1 stars 3 forks source link

print taxonomy names more nicely? #8

Closed JanetMatsen closed 8 years ago

JanetMatsen commented 8 years ago

omit the trailing commas. Can use regular expressions to delete one or more "," characters at the end of the string.

Alter def concat_phylo_columns(dataframe) in bacteriopop_utils.py

JanetMatsen commented 8 years ago

dataframe['phylo_concat'] = \ dataframe['phylo_concat'].astype(str).apply(lambda s: s.rstrip(','))