fanglab / mbin

mBin: a methylation-based binning framework for metagenomic SMRT sequencing reads
Other
25 stars 3 forks source link

Algorithme error with input output file handeling. #9

Open 4383 opened 5 years ago

4383 commented 5 years ago

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