ANARCI - 抗体番号付けツール - を確認しようとしています。 Python 2.6以降(2.7.13で動作)、HMMER3、Biopython(それに加えてNumpy)が必要です。私はこれらのそれぞれがうまくセットアップされており、ANARCI用のサンプルスクリプトの1つを実行すると、上記のエラーが発生します。ANARCI Python 2.7.13 - raise child_exception // OSError:[Errno 2]
RESTART: /path/anarci_API_example.py
Traceback (most recent call last):
File "/Users/BioAtla-Intern/Downloads/anarci-1.1/Example_scripts_and_sequences/anarci_API_example.py", line 12, in <module>
results = anarci(sequences, scheme="imgt", output=False)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/anarci/anarci.py", line 554, in anarci
alignments = run_hmmer(sequences, hmm_database=database, hmmerpath=hmmerpath, ncpu=ncpu, bit_score_threshold=bit_score_threshold)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/anarci/anarci.py", line 382, in run_hmmer
process = Popen(command, stdout=PIPE, stderr=PIPE )
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
このツールのヘルプや以前の質問は見つかりませんでした。サンプルファイルに興味がある人は、
# Import the anarci function.
from anarci import anarci
# Format the sequences that we want to number.
sequences = [("12e8:H","EVQLQQSGAEVVRSGASVKLSCTASGFNIKDYYIHWVKQRPEKGLEWIGWIDPEIGDTEYVPKFQGKATMTADTSSNTAYLQLSSLTSEDTAVYYCNAGHDYDRGRFPYWGQGTLVTVSAAKTTPPSVYPLAP"),
("12e8:L","DIVMTQSQKFMSTSVGDRVSITCKASQNVGTAVAWYQQKPGQSPKLMIYSASNRYTGVPDRFTGSGSGTDFTLTISNMQSEDLADYFCQQYSSYPLTFGAGTKLELKRADAAPTVSIFPPSSEQLTSGGASV"),
("scfv:A","DIQMTQSPSSLSASVGDRVTITCRTSGNIHNYLTWYQQKPGKAPQLLIYNAKTLADGVPSRFSGSGSGTQFTLTISSLQPEDFANYYCQHFWSLPFTFGQGTKVEIKRTGGGGSGGGGSGGGGSGGGGSEVQLVESGGGLVQPGGSLRLSCAASGFDFSRYDMSWVRQAPGKRLEWVAYISSGGGSTYFPDTVKGRFTISRDNAKNTLYLQMNSLRAEDTAVYYCARQNKKLTWFDYWGQGTLVTVSSHHHHHH"),
("lysozyme:A","KVFGRCELAAAMKRHGLDNYRGYSLGNWVCAAKFESNFNTQATNRNTDGSTDYGILQINSRWWCNDGRTPGSRNLCNIPCSALLSSDITASVNCAKKIVSDGNGMNAWVAWRNRCKGTDVQAWIRGCRL")]
# Hand the list of sequences to the anarci function. Number them with the IMGT scheme
results = anarci(sequences, scheme="imgt", output=False)
# Unpack the results. We get three lists
numbering, alignment_details, hit_tables = results
# Each has the same number of elements as the number of sequences submitted
assert len(numbering) == len(alignment_details) == len(hit_tables) == len(sequences)
print 'I am using the anarci function to number and get all the details about the following sequences'
print sequences
print '\n'
# Iterate over the sequences
for i in xrange(len(sequences)):
if numbering[i] is None:
print 'ANARCI did not number', sequences[i][0]
else:
print 'ANARCI numbered', sequences[i][0]
print 'It identified %d domain(s)'%len(numbering[i])
# Iterate over the domains
for j in xrange(len(numbering[i])):
domain_numbering, start_index, end_index = numbering[i][j]
print 'This is the IMGT numbering for the %d\'th domain:'%j, domain_numbering
print 'This is the bit of the sequence it corresponds to:', sequences[i][1][start_index:end_index+1]
print 'These are the details of the alignment:'
for (key,value) in alignment_details[i][j].iteritems():
print key, ':', value
print 'This is the summary of the hits that HMMER found'
for line in hit_tables[i]:
print line
print '\n','_'*40
print 'Do with this infomation as you wish'
print '\n','*'*40
# Want to just get a quick numbering without caring about the other details?
from anarci import number
seq = "EVQLQQSGAEVVRSGASVKLSCTASGFNIKDYYIHWVKQRPEKGLEWIGWIDPEIGDTEYVPKFQGKATMTADTSSNTAYLQLSSLTSEDTAVYYCNAGHDYDRGRFPYWGQGTLVTVSAAKTTPPSVYPLAP"
numbering, chain_type = number(seq, scheme = 'kabat')
print 'Alternatively we can simply number the first domain of a sequence with the number function'
print 'I gave it this sequence\n', seq
print 'ANARCI told me it was a', chain_type, 'chain'
print 'This is the first domain\'s Kabat numbering:'
print numbering
ANARCIはあまり知られていないようですので、助けてください。
スクリプトをどのように実行していますか?どのオペレーティングシステムで? Windows? Linux? –
OS X 10.11.6では、ANARCIはWindowsでは実行されません。私はPythonシェルを使ってそれを走らせた。 – MTJ
私はreadme.txtをちょっと読んでみましたが、この行に "imgt"を "IMGT"してみてください。anarci(sequences、scheme = "IMGT"、output = False) –