From 90bf01f974dfc81f3bdf62184d98b65cb47dc4a3 Mon Sep 17 00:00:00 2001 From: Remi Planel <rplanel@pasteur.fr> Date: Fri, 20 Mar 2020 12:01:10 +0100 Subject: [PATCH] Remove longest_perfect_match_length from dataframe --- crisprbact/predict.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crisprbact/predict.py b/crisprbact/predict.py index 4113aad..49ed322 100644 --- a/crisprbact/predict.py +++ b/crisprbact/predict.py @@ -95,8 +95,7 @@ def on_target_predict(seq, genome=None, seed_sizes=[8, 9, 10, 11, 12]): "pampos", "strand", "recid", - "max_matching_len", - "max_matching_seq", + "longest_perfect_match", "pam_seq", "features", ], @@ -113,11 +112,11 @@ def on_target_predict(seq, genome=None, seed_sizes=[8, 9, 10, 11, 12]): "off_target_pampos": off_t[2], "off_target_strand": off_t[3], "off_target_recid": off_t[4], - "off_target_longest_perfect_match": off_t[6], - "off_target_pam_seq": off_t[7], + "off_target_longest_perfect_match": off_t[5], + "off_target_pam_seq": off_t[6], "off_target_good_orientation": None, } - index_features = 8 + index_features = 7 # Loop through features associated to an off-target position if len(off_t[index_features]) > 0: # Loop for each feature -- GitLab