We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Perl  -flat file  refGene.txt  i need to analyze this file in order:split in coloms and lines in order to make selection i need colums like C9, C10 and C15 last colum is an array with n elements

Malna2009
Malna2009 asked
on
Medium Priority
369 Views
Last Modified: 2012-05-06
I have the flat file refGene.txt like this and i need to analyze this file in order:- iit needs to be split in coloms and lines

                                    some of the colums like C9, C10 and C15 last colum is an array with n elements

refGeneExample-Algoritm-Logic.txt
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2015
Commented:
# I am trying to understand the description in that file, but I am getting confused,
#are you asking for something like this?

while( <DATA> ){
    next unless (@C=split)>=14;
    print join"_", "\u$C[3]",
    (split/,/,$C[8])[(grep $_>0,split/,/,$C[-1])[0]],
    (split/,/,$C[9])[3],
        "$C[4].fna\n";
}

__DATA__
LINE1  1643     NM_016459       chr5    +       138751155       138753504       138751352       1387534444138751155,138751608,138752048,138753267,                   138751509,138751719,138752173,138753504,     0MGC29506 cmpl    cmpl            -1,2,0,0,

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Oleber gave me the solution
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.