IUBio

ClustalW 1.74 output and GCG pretty

Tim Cutts tjrc1 at mole.bio.cam.ac.uk
Fri Jan 30 05:20:37 EST 1998


Some users of mine have found that GCG MSF files as output by clustalw
1.74 do not work well with pretty from GCG 9.1.  This is because the
weight values output by clustalw are very small.  Thus I have created
this tiny patch to clustalw 1.74 to scale up all the weights it
outputs in GCG files by a factor of 100.  Works for me!  If anyone can
think of any problems this might cause I'd like to hear them.

Tim.

--- interface.c.orig	Fri Jan 30 09:56:00 1998
+++ interface.c	Fri Jan 30 09:57:00 1998
@@ -3004,8 +3004,8 @@
 /*		for(j=0; j<max_names; j++) 
 			if(names[i][j] == ' ')  names[i][j] = '_';     */
 		fprintf(gcgout,
-			" Name: %s oo  Len:%5d  Check:%6ld  Weight:  %1.3f\n",
-			names[i],(pint)len,(long)all_checks[i],(float)seq_weight[i]/(float)INT_SCALE_FACTOR);
+			" Name: %s oo  Len:%5d  Check:%6ld  Weight:  %.1f\n",
+			names[i],(pint)len,(long)all_checks[i],(float)seq_weight[i]/(float)(INT_SCALE_FACTOR/100));
         }
 	fprintf(gcgout,"\n//\n");  
 




More information about the Info-gcg mailing list

Send comments to us at biosci-help [At] net.bio.net