Closed camilogarciabotero closed 4 months ago
Other experiments:
sort!(orfs; by = orf -> getproperty(orf, :score), rev=true, alg=QuickSort, kwargs...)
sort!(orfs; by = orf -> getproperty(orf, :score), rev=true, alg=PartialQuickSort(k), kwargs...) # not stable
Maybe using the iscoding
method:
function findorfs(..., encoding::Bool = false,...)
return encoding ? [i for i in orfs if iscoding(sequence[i]; kwargs...)] : orfs
After https://github.com/camilogarciabotero/GeneFinder.jl/pull/26 and https://github.com/camilogarciabotero/GeneFinder.jl/pull/32 we can now have a more flexible way to use the
findorfs
with multiple ORF finder methods with or without scoring scheme. Now, we can levearege on that to makegetorfs
more complex by adding a scoring filter to get only the sequences that actually are above a scoring threshold. For instance theargmax
to theorf.score
field will help.We can also use a combination of sorting and filtering:
The function will gain a
min_score
kwarg:Still to define...