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
fe0d5632
Commit
fe0d5632
authored
May 25, 2023
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved prot_normPred_evolCombiTransposed.txt output.
parent
461e81ee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
esgemme.py
esgemme.py
+11
-4
example-esgemme-script.sh
examples/example-esgemme-script.sh
+1
-1
No files found.
esgemme.py
View file @
fe0d5632
...
...
@@ -1058,11 +1058,18 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
#legibility.
gemmeDF
=
pd
.
read_table
(
prot
+
"_normPred_evolCombi.txt"
,
sep
=
"
\
s+"
)
gemmeDFtrans
=
gemmeDF
.
T
print
(
gemmeDF
)
# gemmeDF.columns = gemmeDF.columns.str.upper()
# print(gemmeDF)
gemmeDFtrans
.
columns
=
gemmeDFtrans
.
columns
.
str
.
upper
()
# with open('./filename.txt', 'w') as fo:
# fo.write(gemmeDFtrans.__repr__())
aaAndPosition
=
[]
oldNamesList
=
gemmeDF
.
columns
.
tolist
()
for
i
in
range
(
len
(
list
(
seq
))):
aaAndPosition
.
append
(
list
(
seq
)[
i
]
+
str
(
i
+
1
))
# gemmeDFtrans = pd.DataFrame(gemmeDFtrans, index=aaAndPosition)
gemmeDFtrans
.
rename
(
index
=
dict
(
map
(
lambda
i
,
j
:
(
i
,
j
)
,
oldNamesList
,
aaAndPosition
)),
inplace
=
True
)
# gemmeDFtrans.set_axis(aaAndPosition)
# gemmeDFtrans.rename(index=aaAndPosition, inplace=True)
# gemmeDFtrans['pos'] = aaAndPosition
#print(df['pos'])
gemmeDFtrans
.
to_csv
(
prot
+
"_normPred_evolCombiTransposed.txt"
,
sep
=
'
\t
'
,
float_format
=
'
%.2
f'
,
na_rep
=
'NaN'
)
#sys.exit(-1)
...
...
examples/example-esgemme-script.sh
View file @
fe0d5632
...
...
@@ -52,6 +52,6 @@ then
else
echo
"Running EGEMME with a user-provided alignment file."
echo
"Since a pdb file is not provided, only evolutionary information will be used!"
python
$ESGEMME_PATH
/esgemme.py ../data/aliBLAT.fasta
-r
input
-f
../data/aliBLAT.fasta
python
3
$ESGEMME_PATH
/esgemme.py ../data/aliBLAT.fasta
-r
input
-f
../data/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