• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 341
  • Last Modified:

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

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

1 Solution
# 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]],

LINE1  1643     NM_016459       chr5    +       138751155       138753504       138751352       1387534444138751155,138751608,138752048,138753267,                   138751509,138751719,138752173,138753504,     0MGC29506 cmpl    cmpl            -1,2,0,0,
Malna2009Author Commented:
Oleber gave me the solution
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now