berenslab / rna-seq-tsne

The art of using t-SNE for single-cell transcriptomics
GNU General Public License v3.0
121 stars 34 forks source link

python implementation #6

Open calvin-zcx opened 2 years ago

calvin-zcx commented 2 years ago

Following changes make the code run in the windows os 254: timestamp = str(datetime.now().strftime('%Y-%m-%d-%H-%M-%S')) + '-' + str(np.random.randint(0,1000000000)) 259: with open(os.path.join(os.getcwd(), infile), 'wb') as f: #os.getcwd() + '/' + infile 302: os.path.join(os.path.dirname(os.path.realpath(file)), 'bin', 'FItSNE'), # + "/bin/fast_tsne", #os.path.dirname(os.path.realpath(file)) + "/bin/fast_tsne",

remove i/o-files

330 os.remove(os.path.join(os.getcwd(), infile)) # os.getcwd() + '/' + infile) os.remove(os.path.join(os.getcwd(), outfile)) # os.getcwd() + '/' + outfile)