Skip to content

Commit

Permalink
Merge branch 'demo' of github.com:vasudeva8/htslib into demo
Browse files Browse the repository at this point in the history
  • Loading branch information
vasudeva8 committed Jun 2, 2023
1 parent 24905a7 commit b6737c9
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion samples/add_header.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int main(int argc, char *argv[])
goto end;
}
inname = argv[1];

if (!(infile = sam_open(inname, "r"))) {
printf("Could not open %s\n", inname);
goto end;
Expand Down
2 changes: 1 addition & 1 deletion samples/index_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ int main(int argc, char *argv[])
goto end;
}
ret = EXIT_SUCCESS;

end:
//cleanup
if (in_samhdr) {
Expand Down
2 changes: 1 addition & 1 deletion samples/read_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ int main(int argc, char *argv[])
}
printf("\n");
}
}
}
}
if (ret_r < -1) {
//read error
Expand Down
4 changes: 2 additions & 2 deletions samples/read_header.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[])
samFile *infile = NULL;
sam_hdr_t *in_samhdr = NULL;
kstring_t data = KS_INITIALIZE;

//read_header infile header tag
if (argc < 3 || argc > 6) {
print_usage(stderr);
Expand All @@ -76,7 +76,7 @@ int main(int argc, char *argv[])
}
else if (header[0] == 'P' && header[1] == 'G') {
id = "ID";
}
}
else if (header[0] == 'C' && header[1] == 'O') {
id = "";
}
Expand Down
2 changes: 1 addition & 1 deletion samples/split.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int main(int argc, char *argv[])
samFile *infile = NULL, *outfile1 = NULL, *outfile2 = NULL;
sam_hdr_t *in_samhdr = NULL;
bam1_t *bamdata = NULL;

if (argc != 3) {
print_usage(stdout);
goto end;
Expand Down
2 changes: 1 addition & 1 deletion samples/split2.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int main(int argc, char *argv[])
samFile *infile = NULL, *outfile1 = NULL, *outfile2 = NULL;
sam_hdr_t *in_samhdr = NULL;
bam1_t *bamdata = NULL;

if (argc != 3) {
print_usage(stdout);
goto end;
Expand Down
2 changes: 1 addition & 1 deletion samples/split_thread1.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int main(int argc, char *argv[])
samFile *infile = NULL, *outfile1 = NULL, *outfile2 = NULL;
sam_hdr_t *in_samhdr = NULL;
bam1_t *bamdata = NULL;

if (argc != 3) {
print_usage(stdout);
goto end;
Expand Down
2 changes: 1 addition & 1 deletion samples/split_thread2.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int main(int argc, char *argv[])
sam_hdr_t *in_samhdr = NULL;
bam1_t *bamdata = NULL;
htsThreadPool tpool = {NULL, 0};

if (argc != 3) {
print_usage(stdout);
goto end;
Expand Down

0 comments on commit b6737c9

Please sign in to comment.