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
05fb8c57
Commit
05fb8c57
authored
Apr 28, 2022
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the location of normalization procedures for independent and epistatic models!
parent
11b750b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
computePred.R
computePred.R
+13
-6
example-gemme-script.sh
example/example-gemme-script.sh
+11
-0
No files found.
computePred.R
View file @
05fb8c57
...
...
@@ -75,8 +75,13 @@ nbGaps = N[1] - apply(nbSeqs,2,sum)
# output the conservation values
dat
=
rbind
(
trace
,
KL
=
res
[[
1
]][[
2
]],
SE
=
res
[[
1
]][[
1
]],
gap
=
nbGaps
/
N
[
1
],
KL60
=
res
[[
2
]][[
2
]],
SE60
=
res
[[
2
]][[
1
]],
KL80
=
res
[[
3
]][[
2
]],
SE80
=
res
[[
3
]][[
1
]])
write.table
(
dat
,
paste0
(
prot
,
"_conservation.txt"
))
# compute log-odd ratios between mutated and wt sequence counts
predInd
=
computePredNbSeqs
(
wt
,
nbSeqs
)
# output the sequence counts log-odd ratios
write.table
(
predInd
,
paste0
(
prot
,
"_pred_evolInd.txt"
))
# Do the normalization for the independent component here!
rownames
(
predInd
)
=
aa
if
(
simple
){
normPredInd
=
normalizePredWithNbSeqsZero
(
predInd
,
trace
,
wt
)
...
...
@@ -85,14 +90,20 @@ if(simple){
normPredInd
=
normalizePredWithNbSeqsZeroSelMult
(
predInd
,
trace
,
wt
,
list
(
pos
,
subsaa
))
names
(
normPredInd
)
=
rawMut
}
# output the sequence counts log-odd ratios
write.table
(
predInd
,
paste0
(
prot
,
"_pred_evolInd.txt"
))
# output the predicted mutational effects based on sequence counts (conservation at the bottom)
write.table
(
normPredInd
,
paste0
(
prot
,
"_normPred_evolInd.txt"
))
print
(
"done"
)
print
(
"running global epistatic model..."
)
pred
=
computePredSimple
(
ali
,
distTrace
,
wt
,
5
)
# output the evolutionary distances between the query and the closest variants
evolDist
=
pred
/
sum
(
trace
^
2
)
evolDist
[
is.na
(
evolDist
)]
=
1
write.table
(
evolDist
,
paste0
(
prot
,
"_pred_evolEpi.txt"
))
# Do the normalization for the epistatic component here!
rownames
(
pred
)
=
aa
if
(
simple
){
normPred
=
normalizePred
(
pred
,
trace
,
wt
)
...
...
@@ -101,10 +112,6 @@ if(simple){
normPred
=
normalizePredSelMult
(
pred
,
trace
,
wt
,
list
(
pos
,
subsaa
))
names
(
normPred
)
=
rawMut
}
# output the evolutionary distances between the query and the closest variants
evolDist
=
pred
/
sum
(
trace
^
2
)
evolDist
[
is.na
(
evolDist
)]
=
1
write.table
(
evolDist
,
paste0
(
prot
,
"_pred_evolEpi.txt"
))
# output the predicted mutational effects based on evolutionary distance (conservation at the bottom)
write.table
(
normPred
,
paste0
(
prot
,
"_normPred_evolEpi.txt"
))
print
(
"done"
)
...
...
example/example-gemme-script.sh
0 → 100755
View file @
05fb8c57
#!/bin/bash
if
[
"
$1
"
==
"clean"
]
then
echo
"Cleaning the folder."
rm
-rf
BLAT
*
rm
-f
default.conf caracTest.dat
else
echo
"Running GEMME with a user-provided alignment file."
python
$GEMME_PATH
/gemme.py aliBLAT.fasta
-r
input
-f
aliBLAT.fasta
fi
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