Hi, I'm trying to fix an small undeterministic tab...
# nf-test
l
Hi, I'm trying to fix an small undeterministic table for
TAXPASTA/MERGE
. I tried to use
Copy code
path(process.out.merged_profiles[0][1])
                        .csv(sep: "\t")
                        .sortRows()
                        .sortColumns()
But the output is still unordered. Is there something wrong with my command ?
j
Depending on the input data, it could be that some mof the numbers might be a bit different
Do you have aPR
?
l
j
OPk yeah it's using kraken2
It might be just the numbers in the cells are different
the number of rows/columns probably is sufficient
l
The issue is more than on Conda the line order is correct but not on docker and singularity 😕
j
OH I see!
Do you have teh outputs of the two?
l
The current snapshot was generated with docker (not ordered) and on conda CI it is properly ordered.
j
Oh I see... so the
sortRows
isn't working consistently between nf-test conda/docker runs?!
That's bizarre
l
I guess it's more that
sortRows
doesn't work at all. The output is already ordered in conda and not in containers.
j
Understood
l
It seems to be a problem in nft-csv
Copy code
public TableWrapper sortRows() { 
     List<Column<?>> columns = table.columns(); 
     String[] columnNames = columns.stream().map(Column::name).toArray(String[]::new); 
     table.sortOn(columnNames); 
     return this; 
 }
this
is not updated to the new sorted table.
I've open a PR regarding this issue: https://github.com/lukfor/nft-csv/pull/7
j
🎉