Skip to content

CSV inputs don't yield results #23

@acolorado1

Description

@acolorado1

Despite the documentation saying that CSV files are an acceptable input format this is not the case. Two senarios:

  1. Combination of .txt and .csv files (-i and --other_gene_set) resulted in all compounds and KOs being mapped to the .txt file
  2. Only using .csv file (-i) resulted in the following error:
raise ValueError('KEGG has forbidden request after %s attempts for url %s , which returns a response status of %s' %
                     (attempts, url, response.status_code))

While I think that this is a relatively easy fix, it certainly took a while to troubleshoot.

What has worked for me are .txt files containing rows with either one compound or KO not surrounded by quotes. For example:

K00001
K00002
K00003

I have not tested the utilization of TSVs but at this point it seems unlikely that it would be an acceptable format. Additionally, all my CSVs had a column name (KO) therefore the removal of the column name might allow CSVs to work. Nevertheless, this should be tested and the documentation updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions