• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • 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

refGeneExample-Algoritm-Logic.txt
0
Malna2009
Asked:
Malna2009
1 Solution
 
ozoCommented:
# 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,
0
 
Malna2009Author Commented:
Oleber gave me the solution
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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