Skip to content

Commit

Permalink
account for longer UMI than compatible while preserving R1 for 5' che…
Browse files Browse the repository at this point in the history
…mistry
  • Loading branch information
TomKellyGenetics committed Feb 25, 2021
1 parent 4b44da8 commit 079fbca
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions launch_universc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2426,6 +2426,18 @@ else
echo " ${convFile} adjusted"
done
fi
# check if original UMI is longer than default
if [[ 0 -lt $umiadjust ]]; then
for convFile in "${convFiles[@]}"; do
echo " handling $convFile ..."
#compute length of adjusted barcode + original UMI
targetlength=`echo $((${barcode_default}+${umi_default}))`
#Remove n characters to the end of the sequence and quality score
sed -E "2~2s/(.{$targetlength})(.{$umiadjust})(.*)/\1\3/" $convFile > ${crIN}/.temp
mv ${crIN}/.temp $convFile
echo " ${convFile} adjusted"
done
fi
fi
##########

Expand Down

0 comments on commit 079fbca

Please sign in to comment.