File: Snakefile

package info (click to toggle)
snakemake 7.32.4-8.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,836 kB
  • sloc: python: 32,846; javascript: 1,287; makefile: 247; sh: 163; ansic: 57; lisp: 9
file content (19 lines) | stat: -rw-r--r-- 650 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os.path
import sys

instances = [os.path.basename(s[:len(s)-4]) for s in os.listdir('mfa') if s.endswith('.mfa')]

rule all:
	input: ['fisher/%s.pairs.gz'%s for s in instances] + ['ph/%s.ph'%s for s in instances]

rule extract_mismatch_counts:
	input: 'mfa/{instance}.mfa'
	output: 'fisher/{instance}.pairs.gz'
	message: 'Extracting number mismatches for each pair of sequences from {input}'
	shell: 'sleep 2; touch {output}'

rule create_tree:
	input: 'mfa/{instance}.mfa'
	output: 'ph/{instance}.ph', 'ph/{instance}.ph.log'
	message: 'Running CLUSTALW to compute NJ tree from {input}'
	shell: "sleep 2; touch {output[0]}; touch {output[1]}"