-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating 1.10 version to current and adding getMatches
- Loading branch information
Showing
8 changed files
with
60 additions
and
41 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "FastLink" | ||
uuid = "11f39cfd-5548-489f-be9a-f4ad0ff6eadc" | ||
authors = ["Jack R. Williams <[email protected]>"] | ||
version = "0.0.5" | ||
version = "0.0.7" | ||
|
||
[deps] | ||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module getmatches | ||
using DataFrames | ||
""" | ||
Function to extract matches from fastlink output. Specify an threshold for matches or use the default threshold specified in the configuration for the fastlink function. returns a `Vector{DataFrame}` that can be matched to the same indices in the patterns_w object subset by zeta_j >= threshold_match. | ||
""" | ||
function getMatches(FastLinkOutput::Dict{String, Any}, threshold_match::T) where T <: AbstractFloat | ||
(FastLinkOutput["resultsEM"]["patterns_w"].zeta_j .>= threshold_match) |> | ||
findall |> | ||
ids -> FastLinkOutput["ids"][ids] .|> | ||
x->DataFrame(x,FastLinkOutput["idvar"]) | ||
end | ||
function getMatches(FastLinkOutput::Dict{String, Any}) | ||
getMatches(FastLinkOutput,FastLinkOutput["resultsEM"]["threshold_match"]) | ||
end | ||
|
||
export getMatches | ||
end # module getMatches |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters