Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

naming columns broken with "group by" #1

Open
keithshep opened this Issue · 0 comments

1 participant

@keithshep
Owner

Note how these two versions of (nearly) the same command will give different results:

tabtocsv bowtie-out.txt | namecolumns - | \
    tssql '
        select
            col1,
            count(*),
            sum(if_then_else(col8 = "", 1, 0))
        from `-`
        group by col1 order by count(*) desc' > hits-per-probe.csv

tabtocsv bowtie-out.txt | namecolumns - | \
    tssql '
        select
            col1 as probeID,
            count(*) as matches,
            sum(if_then_else(col8 = "", 1, 0)) as perfect_matches
        from `-`
        group by probeID order by count(*) desc' > hits-per-probe.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.