Despite the documentation saying that CSV files are an acceptable input format this is not the case. Two senarios:
- Combination of .txt and .csv files (
-i and --other_gene_set) resulted in all compounds and KOs being mapped to the .txt file
- 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:
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.
Despite the documentation saying that CSV files are an acceptable input format this is not the case. Two senarios:
-iand--other_gene_set) resulted in all compounds and KOs being mapped to the .txt file-i) resulted in the following error: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:
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.