Skip to content

Commit

Permalink
Add remove_dups option to gDCA (undocumented)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobaldassi committed May 13, 2014
1 parent 27f88a1 commit 652b009
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/GaussDCA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ function gDCA(filename::String;
theta = :auto,
max_gap_fraction::Real = 0.9,
score::Symbol = :frob,
min_separation::Integer = 5)
min_separation::Integer = 5,
remove_dups::Bool = false)


check_arguments(filename, pseudocount, theta, max_gap_fraction, score, min_separation)

use_threading(true)

Z = read_fasta_alignment(filename, max_gap_fraction)
if remove_dups
Z, _ = remove_duplicate_seqs(Z)
end
N, M = size(Z)
q = int(maximum(Z))
q > 32 && error("parameter q=$q is too big (max 31 is allowed)")
Expand Down

0 comments on commit 652b009

Please sign in to comment.