A FLNc mutation pathogenicity predictor algorithm
Project description
AMIVA-F-test package
AMIVA-F is a machine learning based algorithm, trained to correlate single point mutations with disease in FLNc.
General Information:
AMIVA-F requires additionally JAVA and PYMOL installed.
Tkinter is used for the GUI, which is preinstalled on most python distributions.
A step by step tutorial on how to install AMIVA-F is given below for different operating systems.
Currently it is tested on Anaconda3(Windows 10) but more OS and outside of virtual environments (like anaconda) will be tested soon aswell.
It was tested as well on Linux Mint, but is not fully documented by now.
This will be soon updated.
Furthermore you can also try to run AMIVA-F outside of a virtual environment like Anaconda.
For that purpose, you would need to make sure that you use the same python interpreter
that PYMOL uses(you need to check which python version your downloaded PYMOL uses).
This will also be documented soon.
AMIVA-F alone is relatively small in size, but its required dependencies together with the virtual environment of Anaconda and PYMOL might take up to 3 GB on your computer.
If you want to remove AMIVA-F, simply type
pip uninstall AMIVA-F
If you want to update AMIVA-F to the newest version type
pip install AMIVA-F --upgrade
Anaconda is a distribution of python programming language that helps with package management and deployment.
Its available for Windows, Linux and macOS.
Package versions in Anaconda are managed by an internal package managment system which does not mess with your local computer package depository.
It further simplifies Path dependency problems and is outlined below for a full installation of AMIVA-F tested on Windows in Anaconda3.
Installation for Windows10(Anaconda3):
If you already installed anaconda, you can skip the next step.
Installation of Anaconda
- Download Anaconda from https://www.anaconda.com/products/individual
- Click on the downloaded .exe data.
- Close all other applications in the background and click Next>
- Accept by clicking I Agree
- Select Just Me (recommended) and then Next>
- Accept the default destination folder and click Next>
- Select Register Anaconda3 as my default Python 3.8 and click Install
Workflow inside Anaconda3
Setup of the virtual environment
-
Open the anaconda prompt (anaconda3) which you find by entering anaconda prompt into the windows search bar (Found at the left bottom of your screen).
-
This should open a black command line interface where you now need to enter the following command
conda create -n amivaenv python=3.8
-
This creates a new virtual environment with python 3.8 named amivaenv which will be used to install AMIVA and its dependencies without polluting your local pythonspace.
-
You will get a message telling you what is going to be installed. Enter y and press enter.
-
After creation enter:
conda activate amivaenv
-
Which will then activate the new environment.
Getting Java required dependencies
- Download javabridge from https://www.lfd.uci.edu/~gohlke/pythonlibs/#javabridge
The site will offer you different versions of javabridge but you need the correct version corresponding to your systems bitness.
You can check the bitness of your PC by pressing windows key + i together, then navigate to System and then chose About.
Under Device specifications you will find informations about your system type
e.g 64 bit operating system, x64-based processor
If you work on a 64-bit operating system you simply need to download
javabridge‑1.0.19‑cp38‑cp38‑win_amd64.whl.
If you work on a 32-bit operating system you simply need to download
javabridge‑1.0.19‑cp38‑cp38‑win32.whl.
Note: The cp38 part specified the cpython version we use
(3.8 as we created a virtual environment with python 3.8 before, In case that you want to use another python version you need to select cp37 version for 3.7 and so on). - Open https://adoptopenjdk.net/
Under Choose a Version select OpenJDK11 (LTS) and for Choose a JVM select HotSpot
Click the blue button Latest Release and wait for the download to be completed.
This will download a .msi file which you should open by left clicking on it (Left bottom of the screen, alternatively found in the Download directory).
Click Next
Check the I accept the terms in the License Agreement and click Next
Attention! Click now the Set JAVA_HOME variable and select Will be installed on local hard drive This is the 3rd row in the directory structure.
Click Next
Click Install If everything proceeded normally you managed to install AdoptOpenJDK. Click Finish - Open http://downloads.gvsig.org/download/gvsig-desktop/runtimes/java/
Select the appropriate version corresponding to your bitness (if you found before that your bitness is 64-bit you would select For Windows 64 bits (jre-8u72)
After Downloading the file, leftclick on the .exe file.
Without altering anything, click Install
Finish by clicking Close
This procedure might be tedious but is essential in order to make sure
WEKA(the machine learning platform which is written in JAVA) can be utitlized from within our python script)
Congratulations on installing all required JAVA dependencies.
Installing everything required for AMIVA-F
If you followed the previous steps, you should now have everything required to make a full installation of AMIVA-F.
Open the Anaconda3 prompt (enter anaconda3 prompt into the windows search bar, found in the lower left corner of the screen).
This will open again the black cmd line.
If you closed this window during the installation process before, you might need to activate again the virtual environment.
Take a look at the beginning of the command line.
If you find (base) at the beginning you need to reactivate your virtual environment.
conda activate amivaenv
Now you should either find (amivaenv) or it was already there because you did not close the terminal before.
-
Open the File explorer and navigate to the Download directory (default directory for downloads).
Search for the downloaded javabridge-1.0.19 file
Right click on the javabridge-1.0.19 file and select Properties
In order to access this downloaded file, we need to specify the path where the file can be found.
For that reason we could open an editor and simply assemble the path together there which we will then copy/paste afterwards into anaconda.
You could now open an editor of your choice and do the following:
Copy the path from the Location Point e.g in my case C:\Users\adm2\Downloads.
In you case this could look similar like C:\Users\yourname\Downloads.
Copy this into the editor and add \ and _javabridge-1.0.19-cp38-cp38-win_amd64.whl__(in my case it was this version) which can be found at the top of the window.
In your editor, the line should now finally look like this:
C:\Users\adm2\Downloads\javabridge-1.0.19-cp38-cp38-win_amd64.whl
(again in your case the adm2 name is different) -
In the anaconda prompt you now need to enter the following:
you need to enter pip install and then copy the path you assembled before in the editorpip install C:\Users\adm2\Downloads\javabridge-1.0.19-cp38-cp38-win_amd64.whl
If everything worked you will get a message telling you:
Successfully installed javabridge-1.0.19 numpy-1.20.3
3. Now we install AMIVA-F:
pip install AMIVA-F
If everything worked you will get a message telling you:
Successfully installed AMIVA-F-0.0.6 biopython-1.79 freesasa-2.1.0 python-weka-wrapper3-0.2.3
4. We require Pymol:
conda install -c schrodinger pymol
This will ask your permission to install a bunch of files which you accept by entering y and pressing enter.
5. Open AMIVA-F
Open the File explorer and search for your location where you installed Anaconda3.
Usually you will find this under your username
e.g in my case this was adm2 , then select anaconda3, envs, amivaenv,Lib, site-packages, AMIVA-F.
If everything worked well you should see a directory containing the AMIVA-F.py file.
Right click on this file, select Properties and copy the location
e.g C:\Users\adm2\anaconda3\envs\amivaenv\Lib\site-packages\AMIVA-F
Now enter in the command line in anaconda:
this will look slightly different in your case you need to change adm2 to your user name
cd C:\Users\adm2\anaconda3\envs\amivaenv\Lib\site-packages\AMIVA-F
and then enter:
python AMIVA-F.py
This should open now a GUI and you can use AMIVA-F.
For instructions on how to use AMIVA-F see at the bottom of this page.
Linux installation of AMIVA-F (Ubuntu tested, preliminary documentation):
- Open the terminal and enter the following commands.
Accept everytime with y if you get prompted to continue - sudo apt-get install python3-pip
(optional step if you already have pip installed skip)
-
sudo apt-get install default-jdk
-
sudo apt-get install python3-tk
-
sudo apt-get install pymol
-
pip install AMIVA-F
-
In my case, the default site where packages where installed through pip was:
cd /home/user/.local/lib/pythonx.x/site-packages/AMIVA-F/
In your case this might differ. python.xx specifies the python version you used (in my case python3.8) while /user/ will be your specific username. Alternatively you can try:
cd ~/.local/lib/pythonx.x/site-packages/AMIVA-F/
-
Open AMIVA-F
pythonx.x AMIVA-F.py
Again specifiy the python version you use here. e.g Python3.8 AMIVA-F.py
#Usage of AMIVA-F
AMIVA-F works fully automated and is easy to use, even in the absence of knowledge about the underlying parameters which are used as input for the neural network.
-
AMIVA-F works at the protein annotation level, therefore if you have mutations of interest in the c notation (DNA), look up the corresponding p.notation.
Once you have your mutation of interest in protein notation, enter it in the entry field location directly above the green button ("Calculate everything for me!").
The required input could look like this: If you are interested in the mutation Methionine(M) at position 82 to Lysine(K)M82K
If you by any chance submit a wrong amino acid
(the amino acid you specified for the wildtype position is in fact not what you submitted, e.g FLNc position 82
corresponds to methionine, but you wrote S82K, which would correspond to serine),
AMIVA-F automatically corrects you and offers you to proceed calculations with the correct amino acid in in place.
-
After you entered the mutation of interest e.g M82K into the entry field specified above, click the green button ("Calculate everything for me!")
This button will then automatically grab the correct model structure where your amino acid is located and calculate all input parameters required to predict the pathogenicity of the mutation.
Usually this process is really fast, you will see all entry fields filled and you should normally just check if there is anything left blank.
The 2 last rows in the entryfield (Found posttranslational modification sites, and additional information) are there to inform you about potentially interesting sited in close proximity (8Angström cutoff) of the desired mutation spot.
If you are working by any chance on posttranslational modifications or you possess information about additional binding partners,
feel free to add them to the library files ( Posttranslational_modifications_and_binding_partners\Binding_partners_list.txt and Posttranslational_modifications_and_binding_partners\Posttranslational_modification_list.txt)
which will be taken into account when filling out the input parameters. -
Check if every entry field in the form is filled and every radiobutton is selected.
If everything seems fine, proceed by clicking the blue button ("Generate template file").
This will prepare a specific input parameter file which will then be placed into the correct directory and can be directly used for further prediction by AMIVA-F -
Click the red button ("Prediction on pathogenicity") and wait a couple of seconds.
In the background, AMIVA-F trains itself with 10x cross validation with additional stratification
(details can be seen later in the Trainingset info section of the neighbouring button).
More information can be found at the full tutorial inside the package.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file AMIVA-F-0.0.25.tar.gz
.
File metadata
- Download URL: AMIVA-F-0.0.25.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14c55912fad5258c64b8f78074a6b6523cf3f8a144bd0f505e2b1eec6955a27c |
|
MD5 | 82281d9661c99aa1f48a01dba1c57307 |
|
BLAKE2b-256 | b9007039d322efec691107c57c51391dd2f052032acbffed6fb28e885dd9b6f7 |
File details
Details for the file AMIVA_F-0.0.25-py3-none-any.whl
.
File metadata
- Download URL: AMIVA_F-0.0.25-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a8c9aff50eb73a75e2d6dd5159867f7ea26b2f3db4983f576af7138ed89c335 |
|
MD5 | 8e0ca57bdef00fee3ca353f9db2cba60 |
|
BLAKE2b-256 | 6cd7869a8ea0233dbf2ce58b3473ab5700976dba234e691475b05c2925adedc0 |