Skip to content
Snippets Groups Projects
Verified Commit 4462494b authored by Mia Croiset's avatar Mia Croiset
Browse files

test change command cutsite

parent 713b5575
Branches
No related tags found
No related merge requests found
......@@ -63,13 +63,17 @@ def pairs2matrix(
)
pre_mat_file = mat_file + ".pre.pairs"
hio.sort_pairs(
pairs_file,
pre_mat_file,
keys=["frag1", "frag2"],
threads=threads,
tmp_dir=tmp_dir,
)
# hio.sort_pairs(
# pairs_file,
# pre_mat_file,
# keys=["frag1", "frag2"],
# threads=threads,
# tmp_dir=tmp_dir,
# )
cmd = 'grep -v ^# %s | sort -S 2G -k8,8n -k9,9n --parallel=1' % pairs_file
os.system(cmd '>>' prem_mat_file)
header_size = len(hio.get_pairs_header(pre_mat_file))
with open(pre_mat_file, "r") as pairs, open(mat_file, "w") as mat:
# Skip header lines
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment