Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Little pattern problem...

by VSarkiss (Monsignor)
on Aug 22, 2003 at 17:42 UTC ( #285876=note: print w/replies, xml ) Need Help??

in reply to Little pattern problem...

I don't quite understand what you're trying to do, but I'll try to help in spite of that. ;-)

It sounds like you may not need to use regular expressions at all, just simple string equality. If parts of the input string are fixed (like the colon delimiters), and you need to see if a piece changes, you can split the input line, and just do a string compare (using eq, that is).

Unless I've completely misunderstood what you're trying to do, which is quite possible....

Replies are listed 'Best First'.
Re: Re: Little pattern problem...
by bioinformatics (Friar) on Aug 22, 2003 at 20:52 UTC
    Sorry for not explaining things better...I have a hard time doing that sometimes. What I'm trying to do is take the target name (ex. 100000_at) and use that as the object to pattern match against. The target name is the only thing that the data sets have in common (I want all the 10000_at, 10001_at sets etc. together). By pattern matching, I hope to be able to print out the interegation positions (where the probe sequences are found in the genome) and sequences (actg's in repetition)for each probe that belongs to a single target. The way the file is arranged, it would seem like I could just use a counter and have it chop up the data for every such-and-such number of lines, but there are apparently a few targets with a varying number of probes. Since that is the case, I have to separate the probe sets based on their relevant target name. I can then import the output file into excel and have a spreadsheet of all the targets, with one row dedicated to the "probes" (stands of dna that are attached to a glass slide) that match that target.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://285876]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2021-01-22 14:25 GMT
Find Nodes?
    Voting Booth?