Commit 340da943 by Vinh-Son PHO

Added sklearn version to README.md

parent df9e3d23
...@@ -10,7 +10,7 @@ This Newick tree can be easily displayed using iTOL (or other tree visualisation ...@@ -10,7 +10,7 @@ This Newick tree can be easily displayed using iTOL (or other tree visualisation
Make sure that you have downloaded our conservation predictor, it should be in "PLMView/src/cons_models/Mulan/MODEL_NAME.pt". Make sure that you have downloaded our conservation predictor, it should be in "PLMView/src/cons_models/Mulan/MODEL_NAME.pt".
Required Software : Python, C, C++ & CUDA (for GPU acceleration), Bash (for simplified pipeline). Required Software : Python, C, C++ & CUDA (for GPU acceleration), Bash (for simplified pipeline).
[Mulan](gitlab.lcqb.upmc.fr/lombardi/mulan) is also required. [Mulan](gitlab.lcqb.upmc.fr/lombardi/mulan) is also required.
Python libraries : NumPy, Cython, SciPy, PyTorch, Transformers, ete3, h5py, [Matplotlib, pandas, Biopython, Logomaker, pypdf] for explanation generation. Python libraries : NumPy, Cython, SciPy, PyTorch, Transformers, sklearn, ete3, h5py, [Matplotlib, pandas, Biopython, Logomaker, pypdf] for explanation generation.
To be able to use CUDA acceleration (for both `PLMV_embed` and `PLMV_compare_cuda`), make sure that PyTorch is installed correctly with CUDA and that you use the python interpreter assiociated with that pytorch installation. To be able to use CUDA acceleration (for both `PLMV_embed` and `PLMV_compare_cuda`), make sure that PyTorch is installed correctly with CUDA and that you use the python interpreter assiociated with that pytorch installation.
To test wether CUDA can be used for parallelized alignment, try importing ```aligner.alignment_cuda``` in python. To test wether CUDA can be used for parallelized alignment, try importing ```aligner.alignment_cuda``` in python.
...@@ -120,6 +120,7 @@ During our experiments, we used : ...@@ -120,6 +120,7 @@ During our experiments, we used :
- NumPy 1.26.4 - NumPy 1.26.4
- SciPy 1.13.0 - SciPy 1.13.0
- Transformers 4.44.2 - Transformers 4.44.2
- sklearn 1.7.2
- ete3 3.1.3 - ete3 3.1.3
- h5py 3.13.0 - h5py 3.13.0
- Cython 3.0.12 - Cython 3.0.12
......
...@@ -9,10 +9,10 @@ WORKDIR="${2:-}" ...@@ -9,10 +9,10 @@ WORKDIR="${2:-}"
# Optional args (3rd and 4th positional) # Optional args (3rd and 4th positional)
MIN_SEQ_ID="${3:-0.6}" MIN_SEQ_ID="${3:-0.6}"
COVERAGE="${4:-0.5}" COVERAGE="${4:-0.8}"
if [[ -z "$FASTA_FILE" || -z "$WORKDIR" ]]; then if [[ -z "$FASTA_FILE" || -z "$WORKDIR" ]]; then
echo "Usage: $0 <input_fasta> <working_dir> [min_seq_id=0.6] [coverage=0.5]" echo "Usage: $0 <input_fasta> <working_dir> [min_seq_id=0.6] [coverage=0.8]"
exit 1 exit 1
fi fi
......
...@@ -141,6 +141,7 @@ class ProgressBar: ...@@ -141,6 +141,7 @@ class ProgressBar:
def __init__(self,total,init_val=0): def __init__(self,total,init_val=0):
self.count = init_val self.count = init_val
self.total = total self.total = total
printProgressBar(self.count,self.total)
def print_progress(self): def print_progress(self):
self.count += 1 self.count += 1
printProgressBar(self.count,self.total) printProgressBar(self.count,self.total)
......
...@@ -37,6 +37,7 @@ class ProgressBar: ...@@ -37,6 +37,7 @@ class ProgressBar:
def __init__(self,total,init_val=0): def __init__(self,total,init_val=0):
self.count = init_val self.count = init_val
self.total = total self.total = total
printProgressBar(self.count,self.total)
def print_progress(self): def print_progress(self):
self.count += 1 self.count += 1
printProgressBar(self.count,self.total) printProgressBar(self.count,self.total)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment