Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated genetwork link and correlation return trait as numeric not as… #40

Merged
merged 3 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
[compat]
CSV = "0.10, 1"
DataFrames = "1"
HTTP = "0.9, 1"
JSON = "0.21, 1"
julia = "1"
2 changes: 2 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ makedocs(;
deploydocs(;
repo="github.com/senresearch/GeneNetworkAPI.jl",
devbranch="dev",
)
)
26 changes: 26 additions & 0 deletions docs/src/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,41 @@ GeneNetworkAPI.check_gn
GeneNetworkAPI.list_datasets
GeneNetworkAPI.list_groups
GeneNetworkAPI.list_species
GeneNetworkAPI.list_geno
```

## Get data and information

```@docs
GeneNetworkAPI.get_geno
GeneNetworkAPI.get_pheno
GeneNetworkAPI.get_omics
GeneNetworkAPI.info_dataset
GeneNetworkAPI.info_pheno

```
## Download data

```@docs
GeneNetworkAPI.download_geno
GeneNetworkAPI.download_pheno
GeneNetworkAPI.download_omics
```

## Display table

```@docs
GeneNetworkAPI.show_table
```

## Utils

```@docs
GeneNetworkAPI.make_rectangular
GeneNetworkAPI.has_error_500
GeneNetworkAPI.parse_geno
GeneNetworkAPI.genofile_location
GeneNetworkAPI.has_genofile_meta
```

## Run jobs on the server
Expand Down
4 changes: 2 additions & 2 deletions src/query.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ different instance of the server.

```jldoctest
julia> gn_url()
"https://gn2.genenetwork.org/api/v_pre1/"
"https://genenetwork.org/api/v_pre1/"
```
"""
function gn_url()
return url = "http://gn2.genenetwork.org/api/v_pre1/"
return url = "https://genenetwork.org/api/v_pre1/"
end

"""
Expand Down
2 changes: 1 addition & 1 deletion test/generate_ref.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,5 @@ dfCorrelation = GeneNetworkAPI.DataFrame(
# Symbol("#_strains") = [25.100133],
p_value = [0.00018929765647785504],
sample_r = [-0.8756580854229329],
trait = string.([12762])
trait = [12762]
)
2 changes: 1 addition & 1 deletion test/gnAPI_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ println("Get Gemma results test 9: ", @test (dfRslt1 == dfGemma));
######################

dfRslt = run_correlation("1427571_at","HC_M2_0606_P","BXDPublish");
dfRslt1 = GeneNetworkAPI.select(filter(row->row.trait == "12762", dfRslt), [2,3,4]);
dfRslt1 = GeneNetworkAPI.select(filter(row->row.trait == 12762, dfRslt), [2,3,4]);

println("Get correlation test 10: ", @test (dfRslt1 == dfCorrelation));

Expand Down
Loading