You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the most common conversions to biom tables is from pandas data frames. Thus, having a Table.from_dataframe command would be a strong utility. As a first pass, the following can be done
@staticmethoddeffrom_dataframe(self, df):
""" pd.DataFrame with rows as samples and features as columns. """returnbiom.Table(df.values.T, df.columns, df.index)
I find myself copying / pasting this command quite often. So having this embedded within biom would be low hanging fruit, but slightly ease analysis effort.
The text was updated successfully, but these errors were encountered:
One of the most common conversions to biom tables is from pandas data frames. Thus, having a
Table.from_dataframe
command would be a strong utility. As a first pass, the following can be doneI find myself copying / pasting this command quite often. So having this embedded within biom would be low hanging fruit, but slightly ease analysis effort.
The text was updated successfully, but these errors were encountered: