compbiocore / VariantVisualization.jl

Julia package powering VIVA, our tool for visualization of genomic variation data. Manual:
https://compbiocore.github.io/VariantVisualization.jl/stable/
Other
84 stars 13 forks source link

Exit record iteration when all significant variants found. Exit sig_list iteration when match is found. #24

Closed gtollefson closed 5 years ago

gtollefson commented 5 years ago

optimization 1 - most dramatic as it stops iterating through longer list (vcf records) if size(vcf_subarray,1) == size(sig_list,1) break end

optimization 1 - stops iterating through sig_list for vcf record match (nested in vcf record iteration) if (VCF.chrom(record) == chr) && (VCF.pos(record) == pos) push!(vcf_subarray,record) break end