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
594c5761
Commit
594c5761
authored
Feb 14, 2023
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved getNbSeq function from gemmeAnal.py to sgemme.py.
parent
7b3f2711
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
+22
-10
gemmeAnal.py
gemmeAnal.py
+10
-10
sgemme.py
sgemme.py
+12
-0
No files found.
gemmeAnal.py
View file @
594c5761
...
...
@@ -42,17 +42,17 @@ import numpy as np
# return prot,seq,i-1
def
getNbSeq
(
filename
):
#TODO: Remove bash dependency and count the sequences within Python!
"""
# Get the number of sequences in a multi-fasta file
#
def getNbSeq(filename):
#
#TODO: Remove bash dependency and count the sequences within Python!
#
"""
#
# Get the number of sequences in a multi-fasta file
"""
if
filename
!=
''
:
proc
=
subprocess
.
Popen
(
"grep -c '^>' "
+
filename
,
stdout
=
subprocess
.
PIPE
,
shell
=
True
)
return
int
(
proc
.
stdout
.
read
())
else
:
return
0
#
"""
#
if filename!='':
#
proc=subprocess.Popen("grep -c '^>' "+filename,stdout=subprocess.PIPE,shell=True)
#
return int(proc.stdout.read())
#
else:
#
return 0
def
createPDB
(
prot
,
seq
):
"""
...
...
sgemme.py
View file @
594c5761
...
...
@@ -47,6 +47,18 @@ def extractQuerySeq(filename):
i
=
i
+
1
fOUT
.
close
()
return
prot
,
seq
,
i
-
1
def
getNbSeq
(
filename
):
#TODO: Remove bash dependency and count the sequences within Python!
"""
# Get the number of sequences in a multi-fasta file
"""
if
filename
!=
''
:
proc
=
subprocess
.
Popen
(
"grep -c '^>' "
+
filename
,
stdout
=
subprocess
.
PIPE
,
shell
=
True
)
return
int
(
proc
.
stdout
.
read
())
else
:
return
0
###############################################################################
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