Closed tkosciol closed 7 years ago
Either I don't understand the problem, or I am not able to reproduce it properly. The following execution
(microProt) barnacle x86_64 ~/MicroProt/microprot/microprot/scripts>python split_search.py -o testme -e 0.1 -l 40 /projects/microprot/benchmarking/snakemake_test/03-search_cm/NZ_GG666849.1_2_251-330.out /projects/microprot/benchmarking/snakemake_test/02-split_pdb/2/NZ_GG666849.1_2_251-330.fasta
Leads to the creation of two files: testme.match
which is empty and testme.non_match
with the content:
>NZ_GG666849.1_2_251-330_1-80 # 798 # 2885 # -1 # ID=1_2;partial=00;start_type=TTG;rbs_motif=AGxAGG/AGGxGG;rbs_spacer=5-10bp;gc_cont=0.499
IGIQGDTYSEDEDYPELPRTANGRLSSYILVNHKEQVHVYNQIATKLGLQKESGEVVMLPSQFINRFSLRNEHGRGIPDQ
Can you elaborate on how you produced the unwanted behaviour and what exactly it is?
wow... ok, it seems that you got the correct behavior. You understand my problem correctly. Let me try to reproduce my error once again
I have the feeling that - if you specify --subseq_fp - no files are produced
I double checked. No, those files get produced.
I messed up. Indeed,
cd /projects/microprot/benchmarking/snakemake_test
python /projects/microprot/microprot/scripts/split_search.py 03-search_cm/NZ_GG666849.1_2_251-330.out 02-split_pdb/2/NZ_GG666849.1_2_251-330.fasta -o 04-split_cm/x -e 0.1 -l 40
works just fine.
The reason why my example didn't work is that I just gave folder path (-o 04-split_cm/
), not folder and out_root.
I was also a bit surprised, that no files where generated in directory -o root/04-split_cm
, but there where files root/04-split_cm.match
and root/04-split_cm.nonmatch
.
Should we change the behaviour of our function, if even the developer get's confused?
probably a good idea! :)
I was also a bit surprised, that no files where generated in directory -o root/04-split_cm
, but there where files root/04-split_cm.match
and root/04-split_cm.nonmatch
.
Should we change the behaviour of our function, if even the developer get's confused?
resolved by #44
split_search.py
produces no output, i.e. 0match
andnon_match
files for this outfile:I used parameters:
split_search.py -e 0.1 -l 40
expected behavior: there are nomatch
sequences, so the entire input sequence goes tonon_match
, because it's longer than 40 residues