Mercurial > repos > triasteran > ribogalaxy_umi_processing
diff UMI_riboseq_processing/UMI.py @ 2:6958515efa76 draft
Uploaded
author | triasteran |
---|---|
date | Mon, 20 Jun 2022 07:27:23 +0000 |
parents | 5d0d5933d370 |
children | d27375bc4a1c |
line wrap: on
line diff
--- a/UMI_riboseq_processing/UMI.py Sun Jun 19 12:44:06 2022 +0000 +++ b/UMI_riboseq_processing/UMI.py Mon Jun 20 07:27:23 2022 +0000 @@ -20,7 +20,7 @@ sep = lines[2] qual = lines[3] trimmed_seq = seq[2:-5]+"\n" # fooprint + barcode - UMI = seq[0:2]+seq[-5:] #7nt in total; 5'NN and last 3'NNNNN + UMI = seq[0:2]+seq[-5:].strip('\n') #7nt in total; 5'NN and last 3'NNNNN split_header = header.split(" ") new_header = split_header[0]+"_"+UMI+" "+split_header[1] if qual[-1:] == "\n":