Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PRESCOTT
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mustafa Tekpinar
PRESCOTT
Commits
dc17b3f5
Commit
dc17b3f5
authored
Sep 27, 2023
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to install prescott.py
parent
de8d6564
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
11 deletions
+19
-11
Dockerfile
Dockerfile
+7
-6
example-prescott-script.sh
examples/example-prescott-script.sh
+3
-0
__init__.py
prescott/__init__.py
+1
-1
prescott.py
prescott/prescott.py
+6
-3
setup.py
setup.py
+2
-1
No files found.
Dockerfile
View file @
dc17b3f5
...
@@ -12,6 +12,7 @@ COPY ./JET2/ /usr/local/JET2
...
@@ -12,6 +12,7 @@ COPY ./JET2/ /usr/local/JET2
COPY
./naccess2.1.1 /usr/local/naccess2.1.1
COPY
./naccess2.1.1 /usr/local/naccess2.1.1
COPY
./PRESCOTT/prescott/escott.py ./PRESCOTT/prescott/escott.py
COPY
./PRESCOTT/prescott/escott.py ./PRESCOTT/prescott/escott.py
COPY
./PRESCOTT/prescott/prescott.py ./PRESCOTT/prescott/prescott.py
COPY
./PRESCOTT/prescott/alphabets ./PRESCOTT/prescott/alphabets
COPY
./PRESCOTT/prescott/alphabets ./PRESCOTT/prescott/alphabets
COPY
./PRESCOTT/prescott/__init__.py ./PRESCOTT/prescott/__init__.py
COPY
./PRESCOTT/prescott/__init__.py ./PRESCOTT/prescott/__init__.py
COPY
./PRESCOTT/setup.py ./PRESCOTT/setup.py
COPY
./PRESCOTT/setup.py ./PRESCOTT/setup.py
...
@@ -96,21 +97,21 @@ RUN pip3 install https://github.com/debbiemarkslab/EVcouplings/archive/develop.z
...
@@ -96,21 +97,21 @@ RUN pip3 install https://github.com/debbiemarkslab/EVcouplings/archive/develop.z
# If run command on M1 Mac with macOS Monterey, you can remove sudo
# If run command on M1 Mac with macOS Monterey, you can remove sudo
# Build command
# Build command
# sudo docker build -t tekpinar/prescott-docker:v1.
4
.0 .
# sudo docker build -t tekpinar/prescott-docker:v1.
5
.0 .
# sudo docker login
# sudo docker login
# sudo docker push tekpinar/prescott-docker:v1.
4
.0
# sudo docker push tekpinar/prescott-docker:v1.
5
.0
# Pull command on M1 Mac with macOS Monterey
# Pull command on M1 Mac with macOS Monterey
# sudo docker pull tekpinar/prescott-docker:v1.
4
.0
# sudo docker pull tekpinar/prescott-docker:v1.
5
.0
# Run commands
# Run commands
# sudo docker run -i -t -v $(pwd) --platform linux/amd64 tekpinar/prescott-docker:v1.
4
.0 /bin/bash
# sudo docker run -i -t -v $(pwd) --platform linux/amd64 tekpinar/prescott-docker:v1.
5
.0 /bin/bash
# Bind your current folder to a particular folder in docker.
# Bind your current folder to a particular folder in docker.
# In this way, you fall into the bash terminal of the docker image.
# In this way, you fall into the bash terminal of the docker image.
# docker run -ti --rm --mount type=bind,source=$PWD,target=/home/tekpinar/research/lcqb tekpinar/prescott-docker:v1.
4
.0
# docker run -ti --rm --mount type=bind,source=$PWD,target=/home/tekpinar/research/lcqb tekpinar/prescott-docker:v1.
5
.0
#If you want to use the docker image like an executable file:
#If you want to use the docker image like an executable file:
# Please note that you must have aliBLAT.fasta and blat-af2.pdb inside your current folder and run this command!
# Please note that you must have aliBLAT.fasta and blat-af2.pdb inside your current folder and run this command!
# sudo docker run --rm -v $PWD:/home/tekpinar/research/lcqb tekpinar/prescott-docker:v1.
4
.0 escott aliBLAT.fasta -f aliBLAT.fasta --pdbfile blat-af2.pdb
# sudo docker run --rm -v $PWD:/home/tekpinar/research/lcqb tekpinar/prescott-docker:v1.
5
.0 escott aliBLAT.fasta -f aliBLAT.fasta --pdbfile blat-af2.pdb
examples/example-prescott-script.sh
0 → 100755
View file @
dc17b3f5
#!/bin/bash
prescott
-e
../data/MLH1_normPred_evolCombi_singleline_1-ranksort.txt
-g
../data/gnomAD_v2.1.1_MLH1_HUMAN_ENSG00000076242.csv
prescott/__init__.py
View file @
dc17b3f5
...
@@ -8,4 +8,4 @@ Purpose : A Python program to predict mutational effects of proteins.
...
@@ -8,4 +8,4 @@ Purpose : A Python program to predict mutational effects of proteins.
__all__
=
[
'prescott'
]
__all__
=
[
'prescott'
]
__version__
=
'1.
4
.0'
__version__
=
'1.
5
.0'
prescott/prescott.py
View file @
dc17b3f5
...
@@ -141,7 +141,7 @@ def getGnomADOverallFrequency(infile, usePopMax="true"):
...
@@ -141,7 +141,7 @@ def getGnomADOverallFrequency(infile, usePopMax="true"):
dfMissense
[
'protein'
]
=
proteinNameList
dfMissense
[
'protein'
]
=
proteinNameList
return
(
dfMissense
)
return
(
dfMissense
)
if
__name__
==
"__main__"
:
def
main
()
:
# Adding the main parser
# Adding the main parser
main_parser
=
argparse
.
ArgumentParser
(
description
=
\
main_parser
=
argparse
.
ArgumentParser
(
description
=
\
"A Python toolkit to prepare, modify, visualize and analyze deep mutational scanning (DMS) data of proteins."
)
"A Python toolkit to prepare, modify, visualize and analyze deep mutational scanning (DMS) data of proteins."
)
...
@@ -208,7 +208,7 @@ if __name__ == "__main__":
...
@@ -208,7 +208,7 @@ if __name__ == "__main__":
print
(
"@> Name of the output file : {}"
.
format
(
args
.
outputfile
))
print
(
"@> Name of the output file : {}"
.
format
(
args
.
outputfile
))
# End of argument parsing!
# End of argument parsing!
mainPath
=
"/mnt/data/tekpinar/ESGEMME_vs_EVE_all_data"
#
mainPath = "/mnt/data/tekpinar/ESGEMME_vs_EVE_all_data"
# dataFolder = "/esgemme-v-1-4-0-max-two-components-eve-msas-entire-single-point-mutations"
# dataFolder = "/esgemme-v-1-4-0-max-two-components-eve-msas-entire-single-point-mutations"
# dataFolder = "/egemme-v-1-3-0-eve-msas-entire-single-point-mutations"
# dataFolder = "/egemme-v-1-3-0-eve-msas-entire-single-point-mutations"
# dataFolder = sys.argv[9]
# dataFolder = sys.argv[9]
...
@@ -270,7 +270,7 @@ if __name__ == "__main__":
...
@@ -270,7 +270,7 @@ if __name__ == "__main__":
myBigMergedDF
[
'labels'
]
=
np
.
nan
myBigMergedDF
[
'labels'
]
=
np
.
nan
myBigMergedDF
[
'position'
]
=
""
myBigMergedDF
[
'position'
]
=
""
useFrequencies
=
"true"
useFrequencies
=
args
.
usefrequencies
selectedPositionsList
=
[]
selectedPositionsList
=
[]
selectedValuesList
=
[]
selectedValuesList
=
[]
selectedMutantsList
=
[]
selectedMutantsList
=
[]
...
@@ -393,3 +393,6 @@ if __name__ == "__main__":
...
@@ -393,3 +393,6 @@ if __name__ == "__main__":
myBigMergedDF
.
to_csv
(
'myBigMergedDF-normalized-asm.csv'
,
index
=
None
)
myBigMergedDF
.
to_csv
(
'myBigMergedDF-normalized-asm.csv'
,
index
=
None
)
myBigMergedDF
.
to_csv
(
args
.
outputfile
,
columns
=
[
'mutant'
,
'PRESCOTT'
],
index
=
False
,
header
=
None
,
sep
=
' '
)
myBigMergedDF
.
to_csv
(
args
.
outputfile
,
columns
=
[
'mutant'
,
'PRESCOTT'
],
index
=
False
,
header
=
None
,
sep
=
' '
)
print
(
"@> AUC= {:.3f} {:.3f}"
.
format
(
AUC_ESCOTT
,
AUC_PRESCOTT
))
print
(
"@> AUC= {:.3f} {:.3f}"
.
format
(
AUC_ESCOTT
,
AUC_PRESCOTT
))
if
__name__
==
"__main__"
:
main
()
setup.py
View file @
dc17b3f5
...
@@ -59,7 +59,8 @@ setup(name='prescott',
...
@@ -59,7 +59,8 @@ setup(name='prescott',
# file where some variables must be fixed by install
# file where some variables must be fixed by install
entry_points
=
{
entry_points
=
{
'console_scripts'
:
[
'console_scripts'
:
[
'escott=prescott.escott:main'
'escott=prescott.escott:main'
,
'prescott=prescott.prescott:main'
]
]
},
},
include_package_data
=
True
,
include_package_data
=
True
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment