thegenemyers / DALIGNER

Find all significant local alignments between reads
Other
139 stars 61 forks source link

Add warning to daligner if -d specified and dust file not found #11

Closed cancan101 closed 9 years ago

cancan101 commented 9 years ago

For example consider adding here: https://github.com/thegenemyers/DALIGNER/blob/709c02d74a1baea248a64eb0e8ea1cd7b5733d2b/daligner.c#L189:

diff --git a/daligner.c b/daligner.c
index 399218b..82b24b7 100644
--- a/daligner.c
+++ b/daligner.c
@@ -185,9 +185,11 @@ static HITS_DB *read_DB(char *name, int dust, int *isdam)
   if (status < 0)
     exit (1);

-  if (dust)
+  if (dust){
     dtrack = Load_Track(&block,"dust");
-  else
+    if(dtrack == NULL)
+        fprintf(stderr,"dust file not found\n");
+ } else
     dtrack = NULL;

   Trim_DB(&block);
thegenemyers commented 9 years ago

OK. -- Gene

On 2/11/15, 7:38 AM, Alex Rothberg wrote:

For example consider adding here: https://github.com/thegenemyers/DALIGNER/blob/709c02d74a1baea248a64eb0e8ea1cd7b5733d2b/daligner.c#L189:

diff --git a/daligner.c b/daligner.c index 399218b..82b24b7 100644 --- a/daligner.c +++ b/daligner.c @@ -185,9 +185,11 @@ static HITS_DB read_DB(char name, int dust, int *isdam) if (status < 0) exit (1);

  • if (dust)
  • if (dust){ dtrack = Load_Track(&block,"dust");
  • else
  • if(dtrack == NULL)
  • fprintf(stderr,"dust file not found\n");
  • } else dtrack = NULL;

    Trim_DB(&block);

— Reply to this email directly or view it on GitHub https://github.com/thegenemyers/DALIGNER/issues/11.

thegenemyers commented 9 years ago

-d generalized to -m to allow multiple mask tracks, and all are checked.