Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Have cutN report N:s also at beginning of sequence #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions seqtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,10 +1041,8 @@ int stk_cutN(int argc, char *argv[])
while ((l = kseq_read(ks)) >= 0) {
int k = 0, begin = 0, end = 0;
while (find_next_cut(ks, k, &begin, &end) >= 0) {
if (begin != 0) {
if (gap_only) printf("%s\t%d\t%d\n", ks->name.s, begin, end);
else print_seq(stdout, ks, k, begin);
}
if (gap_only) printf("%s\t%d\t%d\n", ks->name.s, begin, end);
else print_seq(stdout, ks, k, begin);
k = end;
}
if (!gap_only) print_seq(stdout, ks, k, l);
Expand Down