Skip to content

Commit

Permalink
add assert "NNNNN"
Browse files Browse the repository at this point in the history
  • Loading branch information
yuukiiwa authored Sep 16, 2021
1 parent d4aadab commit 0976da5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xpore/scripts/dataprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ def preprocess_tx(tx_id,data_dict,out_paths,locks):

try:
assert len(set(reference_kmer_array)) == 1
assert list(set(reference_kmer_array))[0].count('N') == 0 ##to weed out the mapped kmers from tx_seq that contain 'N', which is not in diffmod's model_kmer
except:
asserted = False
break
Expand Down

0 comments on commit 0976da5

Please sign in to comment.