CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [FishMonger] Merges 2 text files under few conditions : Edit Log



Thalakos
Novice

Apr 5, 2013, 9:44 AM


Views: 892
Re: [FishMonger] Merges 2 text files under few conditions

Thank you so much the script works great.



Do you guys know how to modify that script so to have a blank like when the id in file_a.txt is not present in file_b.txt so to not loose that information?

I mean something like that:


Code
hsa-let-7a	KRAS , HMGA2 , integrin beta(3) , caspase-3 , PRDM1/Blimp-1 , HMGA2 , IGF-II , HMGA2 , HMGA2 , RAS , BCL2 , RAS , MYC , CDC25A , CDK6 , NF2 , c-myc , RAS , RAS , NIRF  
hsa-let-7a KRAS , HMGA2 , integrin beta(3) , caspase-3 , PRDM1/Blimp-1 , HMGA2 , IGF-II , HMGA2 , HMGA2 , RAS , BCL2 , RAS , MYC , CDC25A , CDK6 , NF2 , c-myc , RAS , RAS , NIRF
hsa-let-7a KRAS , HMGA2 , integrin beta(3) , caspase-3 , PRDM1/Blimp-1 , HMGA2 , IGF-II , HMGA2 , HMGA2 , RAS , BCL2 , RAS , MYC , CDC25A , CDK6 , NF2 , c-myc , RAS , RAS , NIRF
hsa-present-only-in-file_a.txt (blank line)


I asked that because I cant' loose that info. So to have at the end the same list in file_A.txt with associated the genes taken from file_B or a blank line when in file b there isn't any association.
Hope to have been clear!

Thanks in advance,
Giorgio


(This post was edited by Thalakos on Apr 5, 2013, 9:48 AM)


Edit Log:
Post edited by Thalakos (Novice) on Apr 5, 2013, 9:48 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives