have a good weekend... & the Dr. Wife too.
/*##########################################################################*/
/* BEWARE ONLY TESTED ON LINUX... DUMB & DIRTY CODE FOLLOWS */
/*##########################################################################*/
#include <stdio.h>
#include...
I should be perfectly clear here...
we are currently counting the whitespace
including the end-of-line characters. To
change this to only count amino acid postions...
comment out line #17
uncomment line #18
and uncomment lines #51-56
the printf statement added in my previous
post will now look...
line 18 is currently unprocessed & we're using the whitespace is in the pattern method. change line 17 to read...
char pat[256] = "R[ \t\n\r]*.[ \t\n\r]*R[ \t\n\r]*.[ \t\n\r]*.[ \t\n\r]*[ST]";
or rather just change the last [RS] to [ST].
the REG_ICASE flag should handle...
I'n not sure if you want a file position or an amino acid position in the peptide so I've given you both options. The amino acid postion option has been commented out & the file postion option is active.
/*##########################################################################*/
/* BEWARE...
nevj,
OK some success, good... & I'm learning what I need to... even better!
1) Realize that I'm taking you down a *nixie path. I know some Windows libraries but I'm severly out of practice. In particular, the libraies I use for file i/o may be *nixie only. I'll try & steer clear of this but...
Well, the proggie worked for me on a linux box. I can try on FreeBSD or OpenBSD but not Solaris. Sorry.
Let's give it a try.
OK I'm compiling with:
gcc -o ten ten.c
Let's reduce the possible source of errors & shrink this proggie a bit. We can add back functionality later. Try...
as I said I need to learn this stuff so here's a proggie I did for learnin' purposes. I may or may not be what you need.
/*##########################################################################*/
/* BEWARE ONLY TESTED ON UNIX... DUMB & DIRTY CODE FOLLOWS */...
or if the "|" char is sometimes there & sometimes not there...
while (my $line = <INFILE>){
chomp $line;
$line =~ s/\|$//; #replaces chop $line;
}
in the appendix of the instuction set reference (vol #2) from the intel web site.
http://developer.intel.com/design/Pentium4/manuals/
these are rather large pdf files but worth the download if you're serious about asm programming.
the instruction set has some oddities due to historical...
compounded when?? aww shucks rather than pretending I know all about interest... how about someone who does know what they're talking about
http://mathforum.org/dr.math/faq/faq.interest.html
if that doesn't help i'll try & clear things up more but before i do help further you have to post code...
Matt,
BM is *THE* method to use if you're doing exact string matching. However, it starts to lose it's edge when there are wildcards. If you're into that kind of thing have a look at the "agrep" algo or the "shift or" method. both can be adapted for low numbers of mismatches...
Sorry, It's just my "cute" way of refering to any of the myraid forms of unix: Linux, FreeBSD, Solaris Unix, etc.
Fair warning: after a quick look-see for regular expression libraries in C it appears that the unix/*nixie world & the Windows world for regualr expression libraries are a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.