skbio.stats.distance.DistanceMatrix.write¶
- DistanceMatrix.write(file, format='lsmat', **kwargs)[源代码]¶
编写一个实例
DistanceMatrix
保存到文件中。这是一种方便的方法
skbio.io.registry.write()
. 有关scikit-bio中I/O系统的更多信息,请参阅skbio.io
.支持的文件格式包括:
'binary_dm'
(skbio.io.format.binary_dm
)'lsmat'
(skbio.io.format.lsmat
)
- 参数:
file (openable (filepath, URL, filehandle, etc.)) -- 写入给定的 format 进入。被理解的东西
skbio.io.util.open()
. Filehandles不会自动关闭,这是调用者的责任。format (str) -- 格式必须是具有编写器的注册格式名称
DistanceMatrix
。缺省值为 'lsmat' 。kwargs (dict, optional) -- 传递给的关键字参数
skbio.io.registry.write()
以及文件格式编写器。