Commit 152c2c54 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

hmmscan converter now uses dbxref instead of accessions (fixes #18)

parent c921b071
......@@ -6,6 +6,7 @@ import argparse
parser = argparse.ArgumentParser(description='Convert hmmscan results to json documents')
parser.add_argument('--result', '-r', required=True, help='The run_hmmer result directory')
parser.add_argument('--output', '-o', required=True, help='The converted results json file')
parser.add_argument('--dbxref', '-d', required=True, help='The dbxref prefix that will be prepended to the accession or id')
args = parser.parse_args()
filename = args.result + "/domtblout.tsv"
......@@ -34,7 +35,7 @@ with open(filename) as f:
'target': {
'name': split[0],
'accession': split[1],
'dbxref': args.dbxref + ':' + split[1],
'length': split[2],
'score': float(split[13]),
'start': int(split[15]),
......@@ -18,3 +18,5 @@ analysis:
# result file from the analysis_script
script: ''
dbxref: 'PFAM'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment