nullarbor icon indicating copy to clipboard operation
nullarbor copied to clipboard

Resistome .csv download has HTML entities in it

Open tseemann opened this issue 9 years ago • 4 comments
trafficstars

tseemann avatar Jun 11 '16 01:06 tseemann

The same is true for mlst.csv. But, I am handling it in my nullarbor_translate. Let me know if you change it, as it will break my code --- although, easily fixed.

andersgs avatar Sep 21 '16 22:09 andersgs

What is nullarbor_translate doing?

tseemann avatar Jul 09 '17 23:07 tseemann

@andersgs WARNING: i am now removing the final quality column from all tables. (It's a hack...)

  my $nuke_last_col = $matrix->[0][-1] eq 'Quality';  # remove the Quality column from CSV
  for my $row (@$matrix) {
    pop(@$row) if $nuke_last_col;

See 3710b624bb4f6d19dbc58dede6d245e3e0a56f5f

Still working on how to handle resistome.

tseemann avatar Jul 31 '18 09:07 tseemann

WHoops, this removes it from the tables as well. Reverting for now. It needs to be put as a parameter to $self->matrix_to_csv($matrix)

tseemann avatar Sep 09 '18 10:09 tseemann