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
96910f1f
Commit
96910f1f
authored
Feb 16, 2023
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved createPDB function in gemmeAnal.py to sgemme.py.
parent
594c5761
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
18 deletions
+38
-18
gemmeAnal.py
gemmeAnal.py
+18
-18
sgemme.py
sgemme.py
+20
-0
No files found.
gemmeAnal.py
View file @
96910f1f
...
...
@@ -54,24 +54,24 @@ import numpy as np
# else:
# return 0
def
createPDB
(
prot
,
seq
):
"""
If there is not a real PDB file for a given sequence,
create a fake PDB containing only dummy CA atoms.
"""
d
=
{
'C'
:
'CYS'
,
'D'
:
'ASP'
,
'S'
:
'SER'
,
'Q'
:
'GLN'
,
'K'
:
'LYS'
,
'I'
:
'ILE'
,
'P'
:
'PRO'
,
'T'
:
'THR'
,
'F'
:
'PHE'
,
'N'
:
'ASN'
,
'G'
:
'GLY'
,
'H'
:
'HIS'
,
'L'
:
'LEU'
,
'R'
:
'ARG'
,
'W'
:
'TRP'
,
'A'
:
'ALA'
,
'V'
:
'VAL'
,
'E'
:
'GLU'
,
'Y'
:
'TYR'
,
'M'
:
'MET'
}
fOUT
=
open
(
prot
+
'.pdb'
,
'w'
)
i
=
1
for
let
in
seq
:
if
(
let
!=
'-'
):
fOUT
.
write
(
'ATOM
%7
d CA
%
s A
%4
d 43.524 70.381 46.465 1.00 0.0
\n
'
%
(
i
,
d
[
let
.
upper
()],
i
))
i
+=
1
#
def createPDB(prot,seq):
#
"""
#
If there is not a real PDB file for a given sequence,
#
create a fake PDB containing only dummy CA atoms.
#
"""
#
d = {'C': 'CYS', 'D': 'ASP', 'S': 'SER', 'Q': 'GLN', 'K': 'LYS',
#
'I': 'ILE', 'P': 'PRO', 'T': 'THR', 'F': 'PHE', 'N': 'ASN',
#
'G': 'GLY', 'H': 'HIS', 'L': 'LEU', 'R': 'ARG', 'W': 'TRP',
#
'A': 'ALA', 'V': 'VAL', 'E': 'GLU', 'Y': 'TYR', 'M': 'MET'}
#
fOUT = open(prot+'.pdb','w')
#
i = 1
#
for let in seq:
#
if(let != '-'):
#
fOUT.write('ATOM%7d CA %s A%4d 43.524 70.381 46.465 1.00 0.0\n'%(i,d[let.upper()],i))
#
i += 1
fOUT
.
close
()
#
fOUT.close()
def
editConfJET
(
N
):
"""
...
...
@@ -121,7 +121,7 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl):
n: int
Number of JET2 iterations.
N: int
Default
2
0000
Default
4
0000
nl: int
Number of lines after > character in the query sequences file.
It is obtained in extractQuerySeq() function.
...
...
sgemme.py
View file @
96910f1f
...
...
@@ -59,6 +59,26 @@ def getNbSeq(filename):
return
int
(
proc
.
stdout
.
read
())
else
:
return
0
def
createPDB
(
prot
,
seq
):
"""
If there is not a real PDB file for a given sequence,
create a fake PDB containing only dummy CA atoms.
"""
d
=
{
'C'
:
'CYS'
,
'D'
:
'ASP'
,
'S'
:
'SER'
,
'Q'
:
'GLN'
,
'K'
:
'LYS'
,
'I'
:
'ILE'
,
'P'
:
'PRO'
,
'T'
:
'THR'
,
'F'
:
'PHE'
,
'N'
:
'ASN'
,
'G'
:
'GLY'
,
'H'
:
'HIS'
,
'L'
:
'LEU'
,
'R'
:
'ARG'
,
'W'
:
'TRP'
,
'A'
:
'ALA'
,
'V'
:
'VAL'
,
'E'
:
'GLU'
,
'Y'
:
'TYR'
,
'M'
:
'MET'
}
fOUT
=
open
(
prot
+
'.pdb'
,
'w'
)
i
=
1
for
let
in
seq
:
if
(
let
!=
'-'
):
fOUT
.
write
(
'ATOM
%7
d CA
%
s A
%4
d 43.524 70.381 46.465 1.00 0.0
\n
'
%
(
i
,
d
[
let
.
upper
()],
i
))
i
+=
1
fOUT
.
close
()
###############################################################################
def
rankSortProteinData
(
dataArray
,
inverted
=
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