Bioinformatics/Global alignment: Difference between revisions

m
(New post.)
m (→‎{{header|Wren}}: Minor tidy)
 
(2 intermediate revisions by one other user not shown)
Line 274:
 
std::unordered_set<std::string> shortest;
shortest.insertemplace(std::reduce(list.begin(), list.end(), std::string("")));
 
uint64_t shortest_length;
Line 289:
if ( candidate.length() < shortest_length ) {
shortest.clear();
shortest.insertemplace(candidate);
shortest_length = candidate.length();
} else if ( candidate.length() == shortest_length ) {
shortest.insertemplace(candidate);
}
}
Line 623:
}
 
// Remove duplicate wordsstrings and wordsstrings which are substrings of other wordsstrings in the given list.
private static List<String> deduplicate(List<String> aList) {
List<String> unique = aList.stream().distinct().collect(Collectors.toList());
Line 666:
} else {
indexes[i] = 0;
i ++= 1;
}
}
Line 1,915:
{{libheader|Wren-str}}
{{libheader|Wren-math}}
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt
import "./seq" for Lst
import "./str" for Str
import "./math" for Int
 
/* Gets all permutations of a list of strings. */
9,477

edits