Open santiago-es opened 1 year ago
Hi @santiago-es. your usage seems correct. Can you please show me the error messages, from the supposed index off and the other error?
telomap m84085_231031_213744_s2.hifi_reads.bc1008.bam capture.fa barcodes.fa bam 16 work/
Input Error - usage: telomap reads.bam capture_oligo.fa barcodes.fa data_type no_cores working_directory
this is the command I used and error, with the files I created for the capture oligos and barcodes, attempting to run with 16 threads and using the directory ./work/ as a working directory. If you edit telomap for the above error message to appear if len(argv) != 7 instead of != 5, the error message becomes:
[13/11/2023 11:51:59] - Telomap started
Traceback (most recent call last):
File "/.miniconda/bin/telomap", line 118, in <module>
main()
File "/.miniconda/bin/telomap", line 33, in main
out = TeloMap(read_path, oligo_path, barcode_path, data_type, cores, tsv_header=True)
File "/.miniconda/lib/python3.9/site-packages/telomap/integrate.py", line 22, in __init__
self.barcodes = self.parse_fasta(barcode_path)
File "/.miniconda/lib/python3.9/site-packages/telomap/integrate.py", line 52, in parse_fasta
seq = next(f).strip()
StopIteration
Thanks for correcting the argv input error. I will make that change in the next version release. For the other error, can you please check if your barcode.fa file has the correct fasta format? Possible that you send it to me?
there's only two barcodes in my barcode file. the format of the file is in fasta format, like so:
>bc1008
SEQUENCE HERE
>bc1009
SEQUENCE HERE
I got the sequences from the PB chemistry docs
Do you mind sending this file here?
barcodes.txt capture.txt Sure. Github doesnt support uploading .fa files so I copied them into .txt but the contents should be identical.
Hi @santiago-es, thanks for the files. It looks like the problem lies with the last line of the barcodes.fa file which is blank.
There is an additional newline at the end of your barcodes.fa file.
>bc1008\nCGCAGCGCTCGACTGT\n>bc1009\nTCTGTCTCGCGTGTGT\n\n
I have introduced a quick fix in the latest commit, you should be able to run with the same files now, please clone and try again, thanks
Hi @cytham ! Thanks for those commits. Trying this again for this year and telomap ran as expected, but there was trouble piping to output. Got this error:
Traceback (most recent call last):
File "/home/artandi/data/.miniconda/bin/telomap", line 116, in
Looks like something might be mis-typed somewhere? This was the command I used to run:
telomap bc1008.bam capture.fa barcodes.fa pacbio-bam 16 work/
I've already fixed the barcodes.fa file (thanks for pointing out the phantom \n)
@santiago-es Sorry for missing this. I'm not sure how you got that error, maybe a typo in the older version. Could you try the latest version again? thanks
Hi there,
I've sequenced some samples with Pacbio following telomere enrichment as described in your paper and am trying to analyze the data.
I attempted: telomap [reads.fa] [capture_oligo.fa] [barcodes.fa] [data_type] [no_cores] [working_directory]
as listed in the README but this fails and produces the error message. The error message appears to be prompted by the number of arguments on the command line, but the indexing seems to be off by 1. I edited the indexing in my own install and it runs into another error, but could you clarify the appropriate usage of telomap?