tracks/powershell/exercises/hamming/HammingDifference.ps1 in trackler-2.2.1.169 vs tracks/powershell/exercises/hamming/HammingDifference.ps1 in trackler-2.2.1.170

- old
+ new

@@ -1,27 +1,54 @@ function Get-HammingDifference([string]$strand1, [string]$strand2) { + <# + .SYNOPSIS + Calculate the Hamming difference between two DNA strands. + + .DESCRIPTION + By counting the number of differences between two homologous DNA strands + taken from different genomes with a common ancestor, we get a measure of + the minimum number of point mutations that could have occurred on the + evolutionary path between the two strands. + + This is called the 'Hamming distance'. + + It is found by comparing two DNA strands and counting how many of the + nucleotides are different from their equivalent in the other string. + + .PARAMETER strand1 + The first DNA strand + + .PARAMETER strand2 + The second DNA strand + + .EXAMPLE + Get-HammingDifference -strand1 "GAGCCTACTAACGGGAT" -strand2 "CATCGTAATGACGGCCT" + + This will return a difference of 7. + #> + Throw "Exercise not implemented" }