27af53b3f926b26cdca73f4bb48d71a5ade4c5ef
cline
  Mon Apr 11 14:04:54 2011 -0700
Increased the maximum accession length to accommodate txWalk-Rfam accessions.  Rfam accessions can be as long as 57 characters.  The txWalk combo adds about a dozen more characters
diff --git src/hg/lib/txCommon.c src/hg/lib/txCommon.c
index 421891b..f7ca748 100644
--- src/hg/lib/txCommon.c
+++ src/hg/lib/txCommon.c
@@ -7,37 +7,38 @@
 #include "txCommon.h"
 
 static char const rcsid[] = "$Id: txCommon.c,v 1.5 2008/09/17 18:10:14 kent Exp $";
 
 char *txAccFromTempName(char *tempName)
 /* Given name in this.that.acc.version format, return
  * just acc.version. */
 {
 char *s = tempName + strlen(tempName);
 int periodCount = 0;
 while (s > tempName && periodCount < 2)
     {
     char c = *(--s);
     if (c == '.')
         ++periodCount;
+
     }
 if (periodCount < 2)
     errAbort("Can't extract accession.ver from %s, expecting at least two periods",
     	tempName); 
 s += 1;
 int len = strlen(s);
-if ((len < 8 && !startsWith("CCDS", s) ) || len > 18)
+if ((len < 8 && !startsWith("CCDS", s) ) || len > 75)
     {
     errAbort("Accession seems a little too long or short in %s", tempName);
     }
 return s;
 }
 
 void txGeneAccFromId(int id, char acc[16])
 /* Convert ID to accession in uc123ABC format. */
 {
 if (id >= 17576000)
     errAbort("Out of accessions!");
 acc[8] = 0;
 acc[7] = id%26 + 'a';
 id /= 26;
 acc[6] = id%26 + 'a';