File: Mode3Assembly.py

package info (click to toggle)
shasta 0.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,636 kB
  • sloc: cpp: 82,262; python: 2,348; makefile: 222; sh: 143
file content (32 lines) | stat: -rw-r--r-- 750 bytes parent folder | download
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
#!/usr/bin/python3

import shasta
import argparse
import GetConfig

# Read the config file.
config = GetConfig.getConfig()

# Parse the command line arguments.
parser = argparse.ArgumentParser(description=
    'Run Mode 3 assembly starting from the marker graph.')
            
parser.add_argument(
    "--debug",
    dest="debug",
    action="store_true",
)    
        
arguments = parser.parse_args() 

# Open a performance log.
shasta.openPerformanceLog('Mode3Assembly.log')

# Create the Assembler object and access what we need.
options = shasta.AssemblerOptions('shasta.conf')
a = shasta.Assembler()
a.accessMarkers()

# Run Mode 3 assembly using existing Anchors.
a.mode3Reassembly(0, options.assemblyOptions.mode3Options, arguments.debug)