Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Algorithme error with input output file handeling. #9

Open
4383 opened this issue Feb 25, 2019 · 0 comments
Open

Algorithme error with input output file handeling. #9

4383 opened this issue Feb 25, 2019 · 0 comments

Comments

@4383
Copy link

4383 commented Feb 25, 2019

  • mbin version: not tested or used
  • Python version: not tested or used
  • Operating System: not tested or used

Description

Hey,

You have an algorithm error here if user give the same file than the --input your file content will be erased before reading due to the fact that you open the same file in writing mode so the file will be replaced before you read it.
https://github.com/fanglab/mbin/blob/master/mbin/bhtsne.py#L102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant