RAVEL Sébastien
RAVEL Sébastien
hello I want to use the option :hide-header: can you fix and valid merge request?
will this request be included?
the code works in a python console but snakemake raises an error: 
I use code reduce to: ```python from collections import defaultdict from pprint import pp config = defaultdict(defaultdict) output_dir="." config['params']['SMARTDENOVO'] = {} config['params']['SMARTDENOVO']['KMER_SIZE'] = 10 config['params']['SMARTDENOVO']['OPTIONS'] = "zmo" config['CIRCULAR'] = False...
> ``` > f"{output_dir}{{fastq}}/ASSEMBLERS/SMARTDENOVO/ASSEMBLER/SMART.{'zmo' if 'zmo' in config['params']['SMARTDENOVO']['OPTIONS'] else 'dmo'}.cns" > ^^^ ^^^ > ``` > > I suspect this line is not right since everything is contained in double...
this script work on python 3.12 https://github.com/snakemake/snakemake/issues/2657#issuecomment-1931449649
 the code on Snakefile: ```python string_test = "a line test for fstring" model = f'/path/file/{"zmo" if "fstring" in string_test else "dmo"}.txt' print(model) ```
@SichongP I search on snakemake code and found the probleme is the code evaluate: The parse_fstring() methode remove space like this: `model = f"/path/file/{'zmo'if'fstring'instring_testelse'dmo'}.txt"` So fail when you compile code...
I confirm probleme is parse_fstring() method !!! I modify like this and working !!! ``` python def parse_fstring(self, token: tokenize.TokenInfo): # only for python >= 3.12, since then python changed...
according to https://peps.python.org/pep-0701/ we cans used `RBRACE` or `LBRACE` but when I test tokenize haven't this....