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:13:48 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
58c5fd7f582653477259aa5a02f19bea90693601
58c5fd7f
1 parent
247acbf3
Standalone script biorseo.py
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
biorseo.py
cppsrc/fa.cpp
test_on_RNAstrand.py
biorseo.py
100644 → 100755
View file @
58c5fd7
This diff is collapsed. Click to expand it.
cppsrc/fa.cpp
View file @
58c5fd7
...
...
@@ -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 @
58c5fd7
...
...
@@ -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,7 +77,7 @@ class MyPool(multiprocessing.pool.Pool):
kwargs
[
'context'
]
=
NoDaemonContext
()
super
(
MyPool
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
exit
()
def
execute_job
(
j
):
if
j
.
checkFunc_
is
not
None
:
...
...
Please
register
or
login
to post a comment