Skip to content

Commit

Permalink
remove sequences below threshold (not above)
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikSchultheis committed Dec 4, 2018
1 parent 966761f commit 96efc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/reduce_bed.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ reduce_bed <- function(input, kmer = 10, motif = 10, output = "reduced.bed", thr

# remove sequences below minimum length
total_rows <- nrow(bed_table)
bed_table <- bed_table[nchar(sequence) < min_seq_length]
bed_table <- bed_table[nchar(sequence) > min_seq_length]
if (total_rows > nrow(bed_table)) {
message("Removed ", total_rows - nrow(bed_table), " sequence(s) below minimum length of ", min_seq_length)
}
Expand Down

0 comments on commit 96efc46

Please sign in to comment.