INNER CODE UNIT · Python
left_pointer
hillerlab/TOGA · CESAR_wrapper.py:526
left_pointer = 3 - right_pointer
# apply right-side pointer
if right_pointer != 0:
exon_seq_rfix = (
exon_seq_lfix[:-right_pointer] + exon_seq_lfix[-right_pointer:].lower()
)
else: # save as it was
exon_seq_rfix = exon_seq_lfix
# save prepared exon into special dict
cesar_input_exons[k] = exon_seq_rfix
return cesar_input_exons
def get_chain(chain_file, chain_id):
"""Return chain string according the parameters passed."""
chain = None # to calm IDE down
if chain_file.endswith(".bst"):
# we have bdb file; extract with BDB extractor