in reply to Re^2: merge multiple files based on a common column and each having 2k-3k columns
in thread merge multiple files based on a common column and each having 2k-3k columns

No, I can't write the script for you because (1) Perl Monks is not a free code-writing service, (2) you would not learn anything from having someone else do the work for you, and (3) you did not provide enough details about your input files (e.g. how are your columns delimited).

But, of course, many monks here, including myself, are willing to help if you show some effort at trying to do it.

  • Comment on Re^3: merge multiple files based on a common column and each having 2k-3k columns

Replies are listed 'Best First'.
Re^4: merge multiple files based on a common column and each having 2k-3k columns
by nbdas (Initiate) on Sep 06, 2018 at 10:56 UTC
    i have first column heading as "marker" and from 2nd column onwards genotypic id for 1000s of samples like geno-1, 2, ............ geno1x2..........................genonxn than do i have to mention "marker" as hash key and all geno ids as hash values in the script my @files = qw( input1.txt input2.txt inputn.txt ); %combinations = (’marker’ => ’geno-1’, ’marker’ => ’geno-2’, ’marker’ => ’geno-3’, ’marker’ => ’geno-nxn’,)