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
310fd718
Commit
310fd718
authored
Nov 06, 2023
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes mainly in prescott.py
parent
4efbe630
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
escott.py
prescott/escott.py
+0
-1
prescott.py
prescott/prescott.py
+9
-1
No files found.
prescott/escott.py
View file @
310fd718
# -*- coding: utf-8 -*-
# Copyright (c) 2018: Elodie Laine
# Copyright (c) 2022-2023: Mustafa Tekpinar
# This code is part of the prescott package and governed by its license.
# Please see the LICENSE.txt file included as part of this package.
...
...
prescott/prescott.py
View file @
310fd718
...
...
@@ -683,7 +683,14 @@ def main():
selectedValuesList
.
append
(
temp2
)
selectedPositionsList
.
append
(
row
[
'position'
])
selectedMutantsList
.
append
(
row
[
'mutant'
])
if
(
version
==
5
):
if
(
freq
>
freqCutoff
):
temp2
=
temp1
*
0.0
myBigMergedDF
.
at
[
index
,
'PRESCOTT'
]
=
temp2
if
(
label
==
0
or
label
==
1
):
selectedValuesList
.
append
(
temp2
)
selectedPositionsList
.
append
(
row
[
'position'
])
selectedMutantsList
.
append
(
row
[
'mutant'
])
# myBigMergedDF.dropna(subset = ['labels'], inplace=True)
clinvarLabeledDF
=
myBigMergedDF
.
loc
[(
myBigMergedDF
[
'labels'
]
==
0
)
|
(
myBigMergedDF
[
'labels'
]
==
1
)]
...
...
@@ -737,6 +744,7 @@ def main():
myBigMergedDF
.
to_csv
(
outfile
+
'-details.csv'
,
index
=
None
)
myBigMergedDF
.
to_csv
(
outfile
+
'.txt'
,
columns
=
[
'mutant'
,
'PRESCOTT'
],
index
=
False
,
header
=
None
,
sep
=
' '
)
if
(
os
.
path
.
exists
(
protein
+
'_singleline.txt'
)):
os
.
remove
(
protein
+
'_singleline.txt'
)
if
__name__
==
"__main__"
:
...
...
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