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
606b4597
Commit
606b4597
authored
Jul 15, 2022
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the default value for the wild type (namely, NA values) from 0.0 to 2.0.
parent
bd075e8c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
gemme.py
gemme.py
+1
-1
pred.R
pred.R
+3
-1
No files found.
gemme.py
View file @
606b4597
...
...
@@ -146,7 +146,7 @@ def parseGEMMEoutput(inputFile, verbose):
if
item
[
0
]
==
"
\"
"
:
aaColumn
.
append
(
item
)
elif
(
item
==
'NA'
):
tempList
.
append
(
0
.0000000
)
tempList
.
append
(
2
.0000000
)
else
:
tempList
.
append
(
float
(
item
))
matrixData
.
append
(
tempList
)
...
...
pred.R
View file @
606b4597
...
...
@@ -362,7 +362,7 @@ computePredSimple<-function(mat, distTrace, wt, thresh){
if
((
i
==
694
)
&
(
a
==
"v"
))
{
print
(
i
)
print
(
sel
)
#
print(distTrace[sel-1])
print
(
distTrace
[
sel
-1
])
print
(
sortedDist
)
}
...
...
@@ -393,6 +393,8 @@ normalizePred<-function(pred, trace, wt){
normPred
[,
i
]
=
pred
[,
i
]
/
max
(
pred
[
!
is.na
(
pred
)])
normPred
[
is.na
(
normPred
[,
i
]),
i
]
=
1
normPred
[,
i
]
=
normPred
[,
i
]
*
trace
[
i
]
# If the residue is the wild type, it is replaced by NA.
# As explained above, NA corresponds to 2.
normPred
[
aa
==
wt
[
i
],
i
]
=
NA
}
return
(
-
normPred
)
...
...
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