Commit e777961d authored by mbruno's avatar mbruno
Browse files

add rule mv_otu_table

parent 00c18bcd
......@@ -83,6 +83,9 @@ def get_targets():
rpm = f'results/{pipeline}/{projet}/{marker}/'
if projet not in config['blacklist']['projet'] and run not in config['blacklist']['run']:
tsv = f'{rpm}otu_genbank_ecotag.tsv'
table = f'{rpm}table_motu.tsv'
if table not in files:
files.append(table)
if tsv not in files:
files.append(tsv)
if config['custom_baseref'] and marker in config['custom_ref']:
......
......@@ -17,3 +17,17 @@ rule table_assigned_sequences:
'''
obitab -o {input} > {output} 2> {log}
'''
rule mv_otu_table:
input:
table = rules.otu_table.output,
fasta = rules.otu_fasta.output
output:
Path('results', config['subfolders']['table_assignment'], '{projmark}/table_motu.tsv')
log:
Path('logs', config['subfolders']['table_assignment'], '{projmark}/table_motu.log')
shell:
'''
mv {input.table} {output}
echo 'move {input.table} --> {output}'
'''
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment