File: bx_tag_test.py

package info (click to toggle)
sra-sdk 2.10.9%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 38,576 kB
  • sloc: ansic: 211,129; cpp: 54,855; perl: 7,788; sh: 6,988; makefile: 5,174; python: 3,840; java: 2,363; yacc: 786; lex: 416; ruby: 329; lisp: 268; xml: 55
file content (27 lines) | stat: -rwxr-xr-x 521 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/python3
from sam import *

REF   = "NC_011752.1"
ALIAS = "c1"
CSRA1 = "X.CSRA"

def load( L ) :
    R1 = bam_load( L, CSRA1, "--make-spots-with-secondary -E0 -Q0" )
    print("bam-load = %d"%( R1 ))

def load_and_print( L ) :
    load( L )
    sam_dump( CSRA1 )


def test1() :
    A1 = make_prim( "A1", 0, REF, ALIAS, 17000, 20, "60M" )
    A2 = make_prim( "A2", 0, REF, ALIAS, 12500, 20, "50M" )
    A1.pair_with( A2 )

    A1.set_tags( "BX:Z:i_am_a_BX_tag" )
    
    load_and_print( [ A1, A2 ] )


test1()