Skip to content

Commit

Permalink
--pore takes rna004 for eventalign now
Browse files Browse the repository at this point in the history
  • Loading branch information
hasindu2008 committed Jan 27, 2024
1 parent c6ce1ea commit 5534c34
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/meth_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,15 @@ int meth_main(int argc, char* argv[], int8_t mode) {
yes_or_no(&opt, F5C_COLLAPSE_EVENTS, longindex, "yes", 1);
} else if (c==0 && longindex == 46){ //pore
opt.pore = optarg;
if(!(strcmp(opt.pore,"r9")==0 || strcmp(opt.pore,"r10")==0)){
ERROR("%s","Pore model should be r9 or r10");
if(!(strcmp(opt.pore,"r9")==0 || strcmp(opt.pore,"r10")==0 || strcmp(opt.pore,"rna004")==0)){
ERROR("%s","Pore model should be r9, r10 or rna004");
exit(EXIT_FAILURE);
}
if(strcmp(opt.pore,"r10")==0){
opt.flag |= F5C_R10;
} else if (strcmp(opt.pore,"rna004")==0){
opt.flag |= F5C_RNA;
opt.flag |= F5C_R10;
}
} else if (c == 0 && longindex == 48){ //specify the version of the sam output for eventalign (eventalign only)
opt.sam_out_version=atoi(optarg);
Expand Down

0 comments on commit 5534c34

Please sign in to comment.