MuratYildirimoglu

Doing Some Biology Using Powershell

May 12th, 2021
19
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $RNAVirus="AUG UUU GUU UUU CUU GUU UUA UUG CCA CUA GUC UCU AGU CAG UGU GUU"
  2.  
  3. $RNAVaccine="AUG UUC GUG UUC CUG GUG CUG CUG CCU CUG GUG UCC AGC CAG UGU GUU"
  4.  
  5. $length=$RNAVirus.Length
  6.  
  7. $result=@{}
  8.  
  9. $resultantstring=""
  10.  
  11. for ($i=0;$i -lt $length;$i++) {
  12.  
  13. if ($RNAVirus[$i] -eq $RNAVaccine[$i]) {
  14.  
  15. $result[$i]=" "
  16.  
  17. }
  18.  
  19. else {
  20.  
  21. $result[$i]="!"
  22.  
  23. }
  24.  
  25. }
  26.  
  27. $RNAVirus
  28.  
  29. $RNAVaccine
  30.  
  31. for ($i=0;$i -lt $length;$i++) {
  32.  
  33. $resultantstring=$resultantstring+$result[$i]
  34.  
  35. }
  36.  
  37. $resultantstring
RAW Paste Data