-
Notifications
You must be signed in to change notification settings - Fork 13
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
Finished most tests. Fixed siglist filter functions. #8
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @gtollefson, please take a look at the comments here and address the issues before I can merge.
src/ViVa.jl
Outdated
@@ -4,7 +4,7 @@ using DataFrames #use CSV.jl ? depwarnings | |||
using PlotlyJS | |||
using Rsvg | |||
using Blink | |||
using CSV | |||
#using CSV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#using CSV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you're not using CSV, just remove that line
test/new_vcf_utils.jl
Outdated
@@ -26,189 +26,167 @@ sample_names = get_sample_names(reader) | |||
@test df[3,1] == 2 | |||
end | |||
|
|||
#functions for variant filters | |||
|
|||
@testset "io_chromosome_range_vcf_filter" begin | |||
sub = io_chromosome_range_vcf_filter("chr4:0-400000000",reader) | |||
println(sub[1:2]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove print statements from tests and add @test
macros.
test/new_vcf_utils.jl
Outdated
@testset "io_chromosome_range_vcf_filter" begin | ||
sub = io_chromosome_range_vcf_filter("chr4:0-400000000",reader) | ||
println(sub[1:2]) | ||
println(size(sub,2)) | ||
end | ||
|
||
@testset "io_sig_list_vcf_filter" begin | ||
#= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this commented out?
#functions for converting vcf record array to numerical array | ||
@testset "combined_all_genotype_array_functions" begin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the next few test sets have no test, only print statements. Make sure all test sets are actually testing something. Also, it looks like there are nested test sets here, is this necessary. Try to use indentation to match begin and end statements.
…list filter functions to iterate over VCF.Reader object first then siglist to make faster. Allowed inputing vcf filename as path to filename.
Fixed siglist filter function and wrote most tests. Still working on last 1/3 of tests.