xinehc / args_oap

ARGs-OAP: Online Analysis Pipeline for Antibiotic Resistance Genes Detection from Metagenomic Data Using an Integrated Structured ARG Database
MIT License
36 stars 11 forks source link

Error running custom database #38

Open iMay1314 opened 10 months ago

iMay1314 commented 10 months ago

I used the protein files provided by bacmet database to build a custom database of args_oap, extracted the GI_number of the protein database fasta file according to the tips of github, 2

and then used the annotation file to build structure.txt. 1

I have since changed the column names to level1, level2, level3. There was no problem in running stageone. The problem was stagetwo.

3 4

xinehc commented 10 months ago

Hi,

GI are automatically stored as integers so the two files cannot be merged. This one should fix it: https://github.com/xinehc/args_oap/commit/d465b844dfa1a2a304cb7d4364f32159c2227c59

Alternatively, add a fake string line (e.g. '-\t-\t-') at the end of your structure file should also work.

iMay1314 commented 10 months ago

Hi,

GI are automatically stored as integers so the two files cannot be merged. This one should fix it: d465b84

Alternatively, add a fake string line (e.g. '-\t-\t-') at the end of your structure file should also work. Do I need to add a fake string line (e.g. '-\t-\t-') to structure.txt?

xinehc commented 10 months ago

If you don't want to install the latest commit then yes.

I didn't test it but it should work.

iMay1314 commented 7 months ago

If you don't want to install the latest commit then yes.

I didn't test it but it should work.

It has been solved with your help. Thank you very much.