# HG changeset patch # User triasteran # Date 1655710043 0 # Node ID 6958515efa76aaef3ca8670feac6cce9aae81bda # Parent 5d0d5933d370d19251ca12aaa0f13c0f919fe22d Uploaded diff -r 5d0d5933d370 -r 6958515efa76 UMI_riboseq_processing/UMI.py --- 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": diff -r 5d0d5933d370 -r 6958515efa76 UMI_riboseq_processing/UMI_riboseq.xml --- a/UMI_riboseq_processing/UMI_riboseq.xml Sun Jun 19 12:44:06 2022 +0000 +++ b/UMI_riboseq_processing/UMI_riboseq.xml Mon Jun 20 07:27:23 2022 +0000 @@ -1,4 +1,4 @@ - + @@ -23,4 +23,4 @@ @misc{FedorovaAD2022, author = {Fedorova Alla}, year = {2022}, title = {UMI_for_riboseq}, publisher = {GitHub}, journal = {GitHub repository}, url = {https://github.com/triasteran/RiboGalaxy_with_ansible/blob/main/toolshed_tools/UMI_riboseq_tool/UMI.py}, } - \ No newline at end of file +