def read_sequence_table(fn):
'''
Read in a table of sequences. Expect a header and the sequence IDs in the
first column. Samples are on the columns.
fn: filename (or handle)
returns: pandas.DataFrame
'''
df = pd.read_table(fn, dtype={0: str}, header=0)
df.index = df.iloc[:,0]
df = df.iloc[:,1:].astype(int)
return df
评论列表
文章目录