in reply to Re^2: Adding missing values into a hash
in thread Adding missing values into a hash

Do you have other lines in the file apart from those like
##INFO=<ID=AA, and 1 AA=1;AB=2;AC=3 ? Blank lines for example.

poj

Replies are listed 'Best First'.
Re^4: Adding missing values into a hash
by Biopolete (Initiate) on Jun 20, 2014 at 08:16 UTC

    No, I don't have any other lines in the file :(

    I have the same problem if I use your complete script with:

    __DATA__

    ##INFO=<ID=AA,

    ##INFO=<ID=AB,

    ##INFO=<ID=AC,

    1 AA=1;AB=2;AC=3

    2 AA=2;AB=2

    3 AA=5;AB=1;AC=1

    I only obtain "NA" values in CVS file

      Check you have a tab character between between 1 and AA=1, 2 and AA=2, 3 and AA=5, not spaces

      poj