Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Louis BECQUEY
/
biorseo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Network
Create a new issue
Builds
Commits
Authored by
Louis BECQUEY
2019-06-08 12:26:42 +0200
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
0a4f545c556aa4b1a9b96ea10cf49719c3aa84d8
0a4f545c
2 parents
6b06f1ed
58c5fd7f
yet another merge commit
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletions
biorseo.py
cppsrc/fa.cpp
test_on_RNAstrand.py
biorseo.py
100644 → 100755
View file @
0a4f545
This diff is collapsed. Click to expand it.
cppsrc/fa.cpp
View file @
0a4f545
...
...
@@ -22,7 +22,8 @@ typedef unsigned int uint;
unsigned
int
Fasta
::
load
(
std
::
list
<
Fasta
>&
data
,
const
char
*
file
){
std
::
string
line
,
name
,
seq
,
str
;
std
::
ifstream
ifs
(
file
);
std
::
ifstream
ifs
;
ifs
.
open
(
file
,
std
::
ios
::
in
);
while
(
std
::
getline
(
ifs
,
line
))
{
if
(
line
[
0
]
==
'>'
)
{
// header
if
(
!
name
.
empty
())
{
...
...
test_on_RNAstrand.py
View file @
0a4f545
...
...
@@ -69,6 +69,7 @@ class NoDaemonProcess(multiprocessing.Process):
class
NoDaemonContext
(
type
(
multiprocessing
.
get_context
())):
Process
=
NoDaemonProcess
print
(
multiprocessing
)
# We sub-class multiprocessing.pool.Pool instead of multiprocessing.Pool
# because the latter is only a wrapper function, not a proper class.
class
MyPool
(
multiprocessing
.
pool
.
Pool
):
...
...
@@ -76,6 +77,7 @@ class MyPool(multiprocessing.pool.Pool):
kwargs
[
'context'
]
=
NoDaemonContext
()
super
(
MyPool
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
def
execute_job
(
j
):
if
j
.
checkFunc_
is
not
None
:
if
j
.
checkFunc_
(
*
j
.
checkArgs_
):
...
...
Please
register
or
login
to post a comment