// File: /workspace/github_cpp_makefile_star2_O3/soccin[P]BIC-RNAseq/tools/MergeFusion/StandardFusion.cpp
// Function: StandardFusion::parseChimerascan(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void StandardFusion::parseChimerascan(string line) //done
{
    vector<string> parsed_item;
    vector<string> breakpoint_reads;
    split(line, '\t', parsed_item);
    chr1 = parsed_item[0];
    start1 = atoi(parsed_item[1].c_str()) + 1;
    end1 = atoi(parsed_item[2].c_str()) + 1;
    chr2 = parsed_item[3];
    start2 = atoi(parsed_item[4].c_str()) + 1;
    end2 = atoi(parsed_item[5].c_str()) + 1;
    strand1 = parsed_item[8];
    strand2 = parsed_item[9];
    breakpoint1 = (strand1 == "+" ? end1 : start1);
    breakpoint2 = (strand2 == "+" ? start2 : end2);
    gene1 = parsed_item[12];
    gene2 = parsed_item[13];
    transcript1 = parsed_item[10];
    transcript2 = parsed_item[11];
    total_coverage = atoi(parsed_item[16].c_str());
    spanning_coverage = atoi(parsed_item[17].c_str());
    split(parsed_item[21], '>', breakpoint_reads, true);
    breakpoint_coverage = static_cast<int>(breakpoint_reads.size());
    caller_id = CHIMERASCAN;
    
    info.append("CHIMERA_CLUSTER_ID=");info.append(parsed_item[6]);
    info.append(";SCORE=");info.append(parsed_item[7]);
    info.append(";TYPE=");info.append(parsed_item[14]);
    info.append(";DISTANCE=");info.append(parsed_item[15]);
    info.append(";UNIQUE_ALIGNMENT_POSITIONS=");info.append(parsed_item[18]);
    info.append(";ISOFORM_FRACTION_5P=");info.append(parsed_item[19]);
    info.append(";ISOFORM_FRACTION_3P=");info.append(parsed_item[20]);
    info.append(";CHIMERA_IDS="); info.append(parsed_item[22]);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq -0x40(%rbp), %rdx
movaps %xmm0, (%rdx)
xorl %eax, %eax
movq %rax, 0x10(%rdx)
movq %rax, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movq %rsi, %rdi
movl $0x9, %esi
xorl %ecx, %ecx
callq 0xb49b
movq -0x40(%rbp), %rsi
leaq 0x8(%rbx), %rdi
callq 0x3130
movq -0x40(%rbp), %r14
movq 0x20(%r14), %rdi
callq 0x32d0
incl %eax
movl %eax, 0x48(%rbx)
movq 0x40(%r14), %rdi
callq 0x32d0
incl %eax
movl %eax, 0x50(%rbx)
addq $0x60, %r14
leaq 0x28(%rbx), %rdi
movq %r14, %rsi
callq 0x3130
movq -0x40(%rbp), %r14
movq 0x80(%r14), %rdi
callq 0x32d0
incl %eax
movl %eax, 0x4c(%rbx)
movq 0xa0(%r14), %rdi
callq 0x32d0
incl %eax
movl %eax, 0x54(%rbx)
addq $0x100, %r14            # imm = 0x100
leaq 0x60(%rbx), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x3130
movl $0x120, %esi            # imm = 0x120
addq -0x40(%rbp), %rsi
leaq 0x80(%rbx), %r14
movq %r14, %rdi
callq 0x3130
leaq 0x3a78(%rip), %r12      # 0xc68b
movq %r15, %rdi
movq %r12, %rsi
callq 0x30b0
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl 0x48(%rbx,%rcx,8), %eax
movl %eax, 0x58(%rbx)
movq %r14, %rdi
movq %r12, %rsi
callq 0x30b0
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movl 0x4c(%rbx,%rcx,8), %eax
movl %eax, 0x5c(%rbx)
movl $0x180, %esi            # imm = 0x180
addq -0x40(%rbp), %rsi
leaq 0xb0(%rbx), %rdi
callq 0x3130
movl $0x1a0, %esi            # imm = 0x1A0
addq -0x40(%rbp), %rsi
leaq 0xd0(%rbx), %rdi
callq 0x3130
movl $0x140, %esi            # imm = 0x140
addq -0x40(%rbp), %rsi
leaq 0xf0(%rbx), %rdi
callq 0x3130
movl $0x160, %esi            # imm = 0x160
addq -0x40(%rbp), %rsi
leaq 0x110(%rbx), %rdi
callq 0x3130
movq -0x40(%rbp), %r14
movq 0x200(%r14), %rdi
callq 0x32d0
movl %eax, 0xa0(%rbx)
movq 0x220(%r14), %rdi
callq 0x32d0
movl %eax, 0xa4(%rbx)
addq $0x2a0, %r14            # imm = 0x2A0
leaq -0x60(%rbp), %rdx
movq %r14, %rdi
movl $0x3e, %esi
movl $0x1, %ecx
callq 0xb49b
movq -0x58(%rbp), %rax
subq -0x60(%rbp), %rax
shrq $0x5, %rax
movl %eax, 0xa8(%rbx)
movl $0x0, (%rbx)
addq $0x130, %rbx            # imm = 0x130
leaq 0x3989(%rip), %rsi      # 0xc68d
movq %rbx, %rdi
callq 0x33a0
movq -0x40(%rbp), %rax
movq 0xc0(%rax), %rsi
movq 0xc8(%rax), %rdx
movq %rbx, %rdi
callq 0x30c0
leaq 0x3974(%rip), %rsi      # 0xc6a1
movq %rbx, %rdi
callq 0x33a0
movq -0x40(%rbp), %rax
movq 0xe0(%rax), %rsi
movq 0xe8(%rax), %rdx
movq %rbx, %rdi
callq 0x30c0
leaq 0x3953(%rip), %rsi      # 0xc6a9
movq %rbx, %rdi
callq 0x33a0
movq -0x40(%rbp), %rax
movq 0x1c0(%rax), %rsi
movq 0x1c8(%rax), %rdx
movq %rbx, %rdi
callq 0x30c0
leaq 0x3931(%rip), %rsi      # 0xc6b0
movq %rbx, %rdi
callq 0x33a0
movq -0x40(%rbp), %rax
movq 0x1e0(%rax), %rsi
movq 0x1e8(%rax), %rdx
movq %rbx, %rdi
callq 0x30c0
leaq 0x3913(%rip), %rsi      # 0xc6bb
movq %rbx, %rdi
callq 0x33a0
movq -0x40(%rbp), %rax
movq 0x240(%rax), %rsi
movq 0x248(%rax), %rdx
movq %rbx, %rdi
callq 0x30c0
leaq 0x3907(%rip), %rsi      # 0xc6d8
movq %rbx, %rdi
callq 0x33a0
movq -0x40(%rbp), %rax
movq 0x260(%rax), %rsi
movq 0x268(%rax), %rdx
movq %rbx, %rdi
callq 0x30c0
leaq 0x38f4(%rip), %rsi      # 0xc6ee
movq %rbx, %rdi
callq 0x33a0
movq -0x40(%rbp), %rax
movq 0x280(%rax), %rsi
movq 0x288(%rax), %rdx
movq %rbx, %rdi
callq 0x30c0
leaq 0x38e1(%rip), %rsi      # 0xc704
movq %rbx, %rdi
callq 0x33a0
movq -0x40(%rbp), %rax
movq 0x2c0(%rax), %rsi
movq 0x2c8(%rax), %rdx
movq %rbx, %rdi
callq 0x30c0
leaq -0x60(%rbp), %rdi
callq 0x5864
leaq -0x40(%rbp), %rdi
callq 0x5864
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x5864
leaq -0x40(%rbp), %rdi
callq 0x5864
movq %rbx, %rdi
callq 0x3340
nop