我想将文件从python获取到我的本地计算机。
如何编写代码?
预先感谢您的大力帮助!
最好
是
li@li-HP--p0xxx:~$ python
Python 2.7.14 |Anaconda, Inc.| (default, Mar 27 2018, 17:29:31)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cellranger.matrix as cr_matrix
>>> filter="/home/li/donor/GSM3489182_Donor_01_filtered_gene_bc_matrices_h5.h5"
>>> filtered_feature_bc_matrix = cr_matrix.CountMatrix.load_h5_file(filter)
>>> import csv
>>> filtered_feature_bc_matrix.to_csv("1.txt", sep="\t")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'CountMatrix' object has no attribute 'to_csv'