Closed proukakis closed 7 years ago
I think the config file is OK now, but this happens when I run it. any help will be very welcome
primer3 was installed via brew
thanks christos
primerDesign christos$ python primerdesign.py /usr/local/Cellar/primer3/2.3.7/bin/PrimerDesign.cfg /Users/christos/Dropbox/research/NGS/MPS_C29CER/SV_primers1.txt
2017-04-03 18:37:57.159896
Traceback (most recent call last):
File "primerdesign.py", line 477, in
I will look into this issue. Can you please attach your config as well as the SV file.
many thanks, the config as created for me by a bioinformatician (will copy her in- she had got the code working a couple of years ago on Linux), and the SV file is attached. I should add that I am working on a mac (OS EL Capitan), not sure if this could be the problem.
making some progress... we have a newt config and simplified variant list xls, which seem to work, but now I get this
python primerdesign.py /usr/local/Cellar/primer3/2.3.7/bin/PrimerDesign.cfg /Users/christos/Dropbox/research/NGS/MPS_C29CER/SVprimers1.xls
2017-04-04 14:22:17.843446
Number of variants left: 1
Traceback (most recent call last):
File "primerdesign.py", line 477, in
hi again...
after some jiggling, still havent cracked it
python primerdesign.py /usr/local/Cellar/primer3/2.3.7/bin/PrimerDesign.cfg /Users/christos/Desktop/SV_primers1.csv /Users/christos/Desktop/output.txt
2017-04-04 17:24:56.191786
Traceback (most recent call last):
File "primerdesign.py", line 477, in
I read somewhere that this "value" needs the user name, so I did
python primerdesign.py christos /usr/local/Cellar/primer3/2.3.7/bin/PrimerDesign.cfg /Users/christos/Desktop/SV_primers1.csv /Users/christos/Desktop/output.txt
2017-04-04 17:25:48.909324
Traceback (most recent call last):
File "primerdesign.py", line 477, in
latest .csv test file for variants attached (config as before) SV_primers1.csv.zip
Hi,
thanks for the information and the files.
It seems that in your SV file the third column (chromosome of second break point) is empty. However, it should either be a chromosome identifier or .
Furthermore, it might be that the file has to be tabulator separated rather than comma separated.
Here is an example file: exampleVar.txt
Can you please try to call the primerDesign tool with that variants file:
python primerdesign.py /usr/local/Cellar/primer3/2.3.7/bin/PrimerDesign.cfg exampleVar.txt /Users/christos/Desktop/output.txt
(you don't need to specify your user name anywhere)
many thanks, had started with .txt files but thought that they were causing trouble
but maybe it just doesn't work on mac...
python primerdesign.py /usr/local/Cellar/primer3/2.3.7/bin/PrimerDesign.cfg /Users/christos/Desktop/exampleVar.txt /Users/christos/Desktop/output.txt
2017-04-05 11:55:50.910575
Number of variants left: 16
Traceback (most recent call last):
File "primerdesign.py", line 477, in
can you think of anything else to try? Is there any chance I might ask you, as a massive favour, to run a one-off design of ~10 sets if I send you a .txt file later? (I would be more than happy to acknowledge this if we ever publish something).
Don't worry if you cant help, not a problem, I'll try the old-fashioned way.
best christos
There seems to be a problem executing samtools
. However, I am not sure whether this is a problem with Mac OSX or with samtools.
Can you please try to execute /Volumes/SD/bwa0712/samtools
to see if this is working.
hi, so i hope I understand this - looks like you are right
by executing as you said - nothing happens
Christoss-MacBook-Pro:~ christos$ /Volumes/SD/bwa0712/samtools Christoss-MacBook-Pro:~ christos$
but is can be invoked simply from anywhere like this
Christoss-MacBook-Pro:~ christos$ samtools
Program: samtools (Tools for alignments in the SAM format) Version: 1.3 (using htslib 1.3)
Usage: samtools
Commands: -- Indexing dict create a sequence dictionary file faidx index/extract FASTA index index alignment
-- Editing calmd recalculate MD/NM tags and '=' bases fixmate fix mate information reheader replace BAM header rmdup remove PCR duplicates targetcut cut fosmid regions (for fosmid pool only) addreplacerg adds or replaces RG tags
-- File operations collate shuffle and group alignments by name cat concatenate BAMs merge merge sorted alignments mpileup multi-way pileup sort sort alignment file split splits a file by read group quickcheck quickly check if SAM/BAM/CRAM file appears intact fastq converts a BAM to a FASTQ fasta converts a BAM to a FASTA
-- Statistics bedcov read depth per BED region depth compute the depth flagstat simple stats idxstats BAM index stats phase phase heterozygotes stats generate stats (former bamcheck)
-- Viewing flags explain BAM flags tview text alignment viewer view SAM<->BAM<->CRAM conversion depad convert padded BAM to unpadded BAM
Ok. In this case, modify your config file accordingly (replace /Volumes/SD/bwa0712/samtools
by samtools
) and re-run the pipeline.
of course, makes total sense, will get the file sorted and try again, many thanks again
hi, we still can't get it- when I change the config as you say, it seems to start, but then stops
we tried running with sudo, and also sudo chmod +x primerdesign.py
now
python primerdesign.py /usr/local/Cellar/primer3/2.3.7/bin/PrimerDesign.cfg /Users/christos/Desktop/exampleVar.txt
2017-04-06 18:42:21.621108
Number of variants left: 16
Unable to open file /usr/local/Cellar/primer3/2.3.7/bin/stack.ds
2017-04-06 18:42:22.073035 Primers to test: 0
Traceback (most recent call last):
File "primerdesign.py", line 477, in
is this the problem? Unable to open file /usr/local/Cellar/primer3/2.3.7/bin/stack.ds i have no such file in my primer3 (installed via homebrew)
so, I solved one problem
python primerdesign.py /Users/christos/Desktop/PrimerDesign.cfg /Users/christos/Desktop/exampleVar.txt
2017-04-07 20:46:17.433498
Number of variants left: 16
Unable to open file /Volumes/SD/primer3-2.3.7/src/primer3_configstack.ds
2017-04-07 20:46:17.846387 Primers to test: 0
Traceback (most recent call last):
File "primerdesign.py", line 477, in
**I wondered if the path / name primer3_configstack.ds was wrong, so I copied the stack.ds from the primer_config directory into the parent src, and renamed it primer3_configstack.ds
this removed the error, but it came up with another file in the same directory, so i moved / renamed that - several files. Might have been simpler to edit the code, but no idea how!**
So now it progresses more, finds primers, but cant go all the way
python primerdesign.py /Users/christos/Desktop/PrimerDesign.cfg /Users/christos/Desktop/exampleVar.txt
2017-04-07 21:28:49.931580
Number of variants left: 16
2017-04-07 21:28:54.249571 Primers to test: 213
Traceback (most recent call last):
File "primerdesign.py", line 477, in
SO i dont know why it cant execute these processes- might it be a solvable permissions issue, or a more tricky problem related to the python on my mac, at which point i think i have to give up
I think i fixed it! It was failing the blast subprocess, so I added shell=True to the script
if seqidListFile == "": p1 = subprocess.Popen([blast, "-task", "blastn", "-db", genomeFile, "-evalue", str(eValue), "-num_threads", numThreads, "-outfmt", "6 std gaps nident", "-dust", "no", "-gapopen", "4", "-gapextend", "2", "-penalty", "-2", "-reward", "2", "-word_size", wordSize, "-max_target_seqs", "500"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, shell=True) else: p1 = subprocess.Popen([blast, "-task", "blastn", "-db", genomeFile, "-seqidlist", seqidListFile, "-evalue", str(eValue), "-num_threads", numThreads, "-outfmt", "6 std gaps nident", "-dust", "no", "-gapopen", "4", "-gapextend", "2", "-penalty", "-2", "-reward", "2", "-word_size", wordSize, "-max_target_seqs", "2"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, shell=True)
Is there still any help needed or can I close the issue?
Yes please close it thanks
The code was very useful
Sent from my iPhone
On 27 Apr 2017, at 4:57 pm, zichner notifications@github.com<mailto:notifications@github.com> wrote:
Is there still any help needed or can I close the issue?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/zichner/primerDesign/issues/1#issuecomment-297837189, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARocSCgPFV_1Foqj2DqGtRMbcqpkPmd_ks5r0QEngaJpZM4Mql-0.
Hello, I wonder if you could help me as I have limited computing skills. I presume the config file needs the various things specified in a tab-delimited text files and the primer parameters are optional, based on primer3. Is this right? if you can provide an example of a config file it would be very helpful. thanks christos c.proukakis@ucl.ac.uk