Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
xiaowei zhan
RVTESTS
Commits
c6499773
Commit
c6499773
authored
Sep 06, 2017
by
zhanxw
Committed by
zhanxw
Sep 14, 2017
Browse files
Update combineKinship.py
parent
bd6ef066
Changes
1
Hide whitespace changes
Inline
Side-by-side
misc/combineKinship.py
View file @
c6499773
#!/usr/bin/env python
import
sys
,
os
,
re
try
:
from
XiaoweiLib
import
myopen
except
:
sys
.
path
=
[
re
.
sub
(
r
'^/home/zhanxw/'
,
'/net/fantasia/home/zhanxw/'
,
x
)
for
x
in
sys
.
path
]
sys
.
path
.
append
(
'/net/nfsb/fantasia/home/zhanxw/mylib/Python/'
)
from
XiaoweiLib
import
myopen
# convenient functions
def
myopen
(
fn
):
import
gzip
f
=
gzip
.
open
(
fn
)
try
:
f
.
read
(
2
)
f
.
close
()
return
gzip
.
open
(
fn
)
except
:
f
.
close
()
return
open
(
fn
)
def
usage
():
print
(
"%s -o prefix in1.kinship in2.kinship ..."
%
sys
.
argv
[
0
]
)
...
...
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