Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: mapping data between files

by MidLifeXis (Monsignor)
on May 05, 2009 at 21:33 UTC ( [id://762087]=note: print w/replies, xml ) Need Help??


in reply to mapping data between files

It looks like you have a few steps to do to solve this.

  • identify the line from the sequence file, and split it into component pieces
  • Read the number of lines from the co-ordinate file and assign to each of the component pieces

The problem seems to be ill defined. For example, you refer to "entry number 1 but not all". Do you mean "entry number ONE but not all"? What happens in the case of "not all"? Is there a problem domain into which this problem fits? If so, there may be a module that reads these types of files already.

Update: This could also be afternoon fog. Is the information on the lines like >ONE indicating the name of a file to read?

--MidLifeXis

The tomes, scrolls etc are dusty because they reside in a dusty old house, not because they're unused. --hangon in this post

Replies are listed 'Best First'.
Re^2: mapping data between files
by Angharad (Pilgrim) on May 05, 2009 at 21:44 UTC
    Thanks for your quick response! >ONE etc does indeed indicate the name of a file to read

    For example - the 'ONE' co-ordinate file corresponds to the sequence IRLA in the sequence file

    So ... in the above test case you have one sequence file but 3 corresponding co-ordinate files

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found