Skip to content

Commit

Permalink
Changed the fasta loaded to load sequence fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Kalderimis committed Feb 29, 2012
1 parent edd8198 commit d243cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubydas/loader/fasta.rb
Expand Up @@ -23,7 +23,7 @@ def store filename
entry.seq.each_char do |c|
pos += 1
current_seq << c
if current_seq.length >= 1000
if current_seq.length >= 1000 || pos >= entry.length
sf = SequenceFragment.new(
:fragment => current_seq,
:start => pos - current_seq.length,
Expand Down

0 comments on commit d243cce

Please sign in to comment.