Skip to content
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
5 changes: 4 additions & 1 deletion example/example_qtl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@
"# We can get the genotype matrix using the following command:\n",
"geno = reduce(hcat, data.geno.val);\n",
"# For computing reasons, we need to convert the geno matrix in Float64\n",
"geno_processed = convert(Array{Float64}, geno);"
"geno_processed = geno .- 1.0 |>\n",
" x -> replace(x, missing => 0.5) |>\n",
"\n",
"# geno_processed = convert(Matrix{Float64}, geno_processed);\n"
]
},
{
Expand Down
8 changes: 6 additions & 2 deletions example/example_qtl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# extension: .jl
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.16.2
# jupytext_version: 1.16.4
# kernelspec:
# display_name: Julia 1.10.4
# language: julia
Expand Down Expand Up @@ -62,7 +62,11 @@ pheno = data.pheno.val;
# We can get the genotype matrix using the following command:
geno = reduce(hcat, data.geno.val);
# For computing reasons, we need to convert the geno matrix in Float64
geno_processed = convert(Array{Float64}, geno);
geno_processed = geno .- 1.0 |>
x -> replace(x, missing => 0.5) |>

# geno_processed = convert(Matrix{Float64}, geno_processed);

# -

# #### Preprocessing
Expand Down
11 changes: 9 additions & 2 deletions src/BigRiverQTL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ module BigRiverQTL
######
# IO #
######
include("io/io_utils.jl")
include("io/io_helpers.jl")
export get_control_file, encode_genotype

include("io/export_to_type.jl")
export get_geneticstudydata
export get_gmap, get_alleles, get_chromosome, get_crossinfo, get_crosstype
Expand All @@ -73,7 +74,7 @@ module BigRiverQTL
#########
# Plots #
#########
include("plots/plots_utils.jl")
include("plots/plots_helpers.jl")
export gmap2df, pmap2df

include("plots/plots_qtl.jl")
Expand All @@ -85,4 +86,10 @@ module BigRiverQTL
include("plots/plots_eqtl.jl")
export plot_eQTL

#########
# Utils #
#########
include("utils/wrangling_utils.jl")
export get_geno_completecases, summary_missing, select_sample, select_marker

end
Loading
Loading