File: changer_of_K.py

package info (click to toggle)
spades 3.13.1+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 22,172 kB
  • sloc: cpp: 136,213; ansic: 48,218; python: 16,809; perl: 4,252; sh: 2,115; java: 890; makefile: 507; pascal: 348; xml: 303
file content (33 lines) | stat: -rwxr-xr-x 528 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/python3

import os
import shutil
import sys
import getopt
import glob

import spades_init

spades_init.init()
spades_home = spades_init.spades_home

import support
from process_cfg import *

def prepare_config(filename, K):
    subst_dict = dict()
    subst_dict["K"] = K
    substitute_params(filename, subst_dict)


if len(sys.argv) != 2:
    print ("Usage: " + sys.argv[0] + " K")
    exit(0)

config = "configs/debruijn/config.info"
K = sys.argv[1]
print ("Changing to K = " + K)
prepare_config(config, K)