def it_handles_cut_at_end(): # end cut is 2nd protease df = _proteolyze(_pro_seq_df("TBKCDP"), protease_list) seqstrs = seqstrs_from_proteolyze(df) assert seqstrs == ["TBK", "CDP"] # end cut is 1st protease df = _proteolyze(_pro_seq_df("TBPCDK"), protease_list) seqstrs = seqstrs_from_proteolyze(df) assert seqstrs == ["TBP", "CDK"]
def it_cleaves_without_protease(): df = _proteolyze(_pro_seq_df("ABKCD"), None) seqstrs = seqstrs_from_proteolyze(df) assert seqstrs == ["ABKCD"]
def it_handles_no_cut(): df = _proteolyze(_pro_seq_df("TBCD"), protease_list) seqstrs = seqstrs_from_proteolyze(df) assert seqstrs == ["TBCD"]
def _before(): nonlocal df, seqstrs df = _proteolyze(_pro_seq_df("TBKCDPEF"), protease_list) seqstrs = seqstrs_from_proteolyze(df)
def it_handles_cut_at_end(): df = _proteolyze(_pro_seq_df("ABKCDK"), protease) seqstrs = seqstrs_from_proteolyze(df) assert seqstrs == ["ABK", "CDK"]
def _before(): nonlocal df, seqstrs df = _proteolyze(_pro_seq_df("ABKCD"), protease) seqstrs = seqstrs_from_proteolyze(df)