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

Finished most tests. Fixed siglist filter functions. #8

Merged
merged 6 commits into from
Nov 5, 2018

Conversation

gtollefson
Copy link
Collaborator

Fixed siglist filter function and wrote most tests. Still working on last 1/3 of tests.

Copy link
Contributor

@fernandogelin fernandogelin left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#using CSV

Copy link
Contributor

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

@@ -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])
Copy link
Contributor

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.

@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
#=
Copy link
Contributor

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
Copy link
Contributor

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.

gtollefson and others added 5 commits November 5, 2018 14:20
…list filter functions to iterate over VCF.Reader object first then siglist to make faster. Allowed inputing vcf filename as path to filename.
@fernandogelin fernandogelin merged commit b816a26 into master Nov 5, 2018
@fernandogelin fernandogelin deleted the solve_memory_allocation_issue branch November 5, 2018 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants